|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.kernel.application.container.lightweight.AbstractConnectionManager
public abstract class AbstractConnectionManager
Abstract Connection Manager
| Constructor Summary | |
|---|---|
protected |
AbstractConnectionManager(Set credentials)
Constructor |
protected |
AbstractConnectionManager(Set credentials,
Class connectionClass)
Constructor |
protected |
AbstractConnectionManager(Set credentials,
String connectionClass)
Constructor |
| Method Summary | |
|---|---|
Object |
allocateConnection(ManagedConnectionFactory managedConnectionFactory,
ConnectionRequestInfo connectionRequestInfo)
|
protected ManagedConnection |
allocateManagedConnection(Subject subject,
ManagedConnectionFactory managedConnectionFactory,
ConnectionRequestInfo connectionRequestInfo)
Allocate a managed connection |
protected ManagedConnection |
allocateMangedConnection(Set managedConnections,
Subject subject,
ManagedConnectionFactory managedConnectionFactory,
ConnectionRequestInfo connectionRequestInfo)
Allocate a managed connection |
protected Object |
createConnection()
Create a new connection instance |
protected Set |
getManagedConnections()
This method must be overriden by a sub-class unless its own allocateConnection implementation does not need it. |
protected Subject |
getSubject()
Establish and return the subject |
protected static ResourceException |
toResourceException(Exception cause,
String message)
Convert an exception to a resource exception |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractConnectionManager(Set credentials)
credentials -
ResourceException
protected AbstractConnectionManager(Set credentials,
Class connectionClass)
credentials - connectionClass -
ResourceException
protected AbstractConnectionManager(Set credentials,
String connectionClass)
throws ResourceException
credentials - connectionClass -
ResourceException| Method Detail |
|---|
protected static ResourceException toResourceException(Exception cause,
String message)
cause - message -
protected Object createConnection()
throws ResourceException
ResourceExceptionprotected Subject getSubject()
protected Set getManagedConnections()
throws ResourceException
ResourceException
protected ManagedConnection allocateManagedConnection(Subject subject,
ManagedConnectionFactory managedConnectionFactory,
ConnectionRequestInfo connectionRequestInfo)
throws ResourceException
subject - managedConnectionFactory - connectionRequestInfo -
ResourceException
protected ManagedConnection allocateMangedConnection(Set managedConnections,
Subject subject,
ManagedConnectionFactory managedConnectionFactory,
ConnectionRequestInfo connectionRequestInfo)
throws ResourceException
managedConnections - set of managed conectionsmanagedConnectionPool - pool of unused managed connectionssubject - managedConnectionFactory - connectionRequestInfo -
ResourceException
public Object allocateConnection(ManagedConnectionFactory managedConnectionFactory,
ConnectionRequestInfo connectionRequestInfo)
throws ResourceException
allocateConnection in interface ConnectionManagerResourceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||