com.stratelia.silverpeas.portlet.model
Class PortletSchemaPool

java.lang.Object
  extended by com.stratelia.webactiv.util.SchemaPool
      extended by com.stratelia.silverpeas.portlet.model.PortletSchemaPool

public class PortletSchemaPool
extends SchemaPool

The PortletSchemaPool class manages a pool of PortletSchema shared by all the client (admin classes). All the public methods are static and the calls are deferred to a singleton.


Method Summary
static PortletSchema getPortletSchema()
          Returns an Shema.
protected  Schema newSchema()
           
static void releaseConnections()
           
static void releasePortletSchema(PortletSchema s)
          Release an Scheme previously returned by the pool.
 
Methods inherited from class com.stratelia.webactiv.util.SchemaPool
getInstance, release, releaseSchemas
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPortletSchema

public static PortletSchema getPortletSchema()
                                      throws UtilException
Returns an Shema. The returned schema must be released after use.

Throws:
UtilException

releasePortletSchema

public static void releasePortletSchema(PortletSchema s)
Release an Scheme previously returned by the pool.


releaseConnections

public static void releaseConnections()

newSchema

protected Schema newSchema()
                    throws UtilException
Specified by:
newSchema in class SchemaPool
Throws:
UtilException


Copyright © 2016 Silverpeas. All Rights Reserved.