wt.method
Interface POMHandlerIfc

All Known Implementing Classes:
POMHandler

public interface POMHandlerIfc

PomHandlerIfc is used to interface to a POM (Persistent Object Manager) implementation from classes that may not be loaded by the same class loader which loads the POM implementation.

Supported API: false


Field Summary
static String versionID
           
 
Method Summary
 void freeConnection(Object connection)
          Free a datastore connection to be available for reuse.
 Object getConnection()
          Get an available connection to a datastore.
 Object getPom()
          Get the POM associated with this handler.
 int getTotalConnections()
          Get total number of connections that are currently open.
 

Field Detail

versionID

public static final String versionID
See Also:
Constant Field Values
Method Detail

getPom

public Object getPom()
              throws Exception
Get the POM associated with this handler.

Supported API: false

Returns:
the new POM instance.
Throws:
Exception - Occurs if the handler cannot construct a persistent object manager.

getConnection

public Object getConnection()
                     throws Exception
Get an available connection to a datastore. If there are no available connections, this method may create a new connection or block waiting for an existing connection to become available.

Supported API: false

Returns:
the datastore connection
Throws:
Exception - Occurs if the persistent object manager cannot connect to a datastore.

freeConnection

public void freeConnection(Object connection)
Free a datastore connection to be available for reuse.

Supported API: false

Parameters:
connection - the datastore connection

getTotalConnections

public int getTotalConnections()
Get total number of connections that are currently open.

Supported API: false

Returns:
the number of open connections