|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ManagedConnectionFactory
A ManagedConnectionFactory is a factory for the creation of ManagedConnection objects and ConnectionFactory objects. It provides methods which can be used to match ManagedConnetions.
Method Summary | |
---|---|
Object |
createConnectionFactory()
Creates a connection factory instance. |
Object |
createConnectionFactory(ConnectionManager cxManager)
Creates a connection factory instance. |
ManagedConnection |
createManagedConnection(Subject subject,
ConnectionRequestInfo cxRequestInfo)
Creates a new ManagedConnection |
boolean |
equals(Object other)
Tests object for equality |
PrintWriter |
getLogWriter()
Gets the logwriter for this instance. |
int |
hashCode()
Generates a hashCode for this object |
ManagedConnection |
matchManagedConnections(Set connectionSet,
Subject subject,
ConnectionRequestInfo cxRequestInfo)
Returns a matching connection from the set. |
void |
setLogWriter(PrintWriter out)
Sets the logwriter for this instance. |
Method Detail |
---|
Object createConnectionFactory() throws ResourceException
ResourceException
- for a generic error
ResourceAdapterInternalException
- for an internal error in the
resource adapterObject createConnectionFactory(ConnectionManager cxManager) throws ResourceException
cxManager
- the connection manager
ResourceException
- for a generic error
ResourceAdapterInternalException
- for an internal error in the
resource adapterManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException
subject
- the subjectcxRequestInfo
- the connection request info
ResourceException
- for a generic error
ResourceAllocationException
- for an error allocting resources
ResourceAdapterInternalException
- for an internal error in the
resource adapter
SecurityException
- for a security problem
EISSystemException
- for an error from the EISManagedConnection matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException
connectionSet
- the connection setsubject
- the subjectcxRequestInfo
- the connection request info
ResourceException
- for a generic error
ResourceAdapterInternalException
- for an internal error in the
resource adapter
SecurityException
- for a security problem
NotSupportedException
- if not supportedPrintWriter getLogWriter() throws ResourceException
ResourceException
- for a generic errorvoid setLogWriter(PrintWriter out) throws ResourceException
out
- the log writer
ResourceException
- for a generic error
ResourceAdapterInternalException
- for an internal error in the
resource adapterboolean equals(Object other)
equals
in class Object
other
- the other object
int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |