|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public Object createConnectionFactory() throws ResourceException
ResourceException
- for a generic error
ResourceAdapterInternalException
- for an internal error in the
resource adapterpublic Object createConnectionFactory(ConnectionManager cxManager) throws ResourceException
cxManager
- the connection manager
ResourceException
- for a generic error
ResourceAdapterInternalException
- for an internal error in the
resource adapterpublic ManagedConnection 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 EISpublic ManagedConnection 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 supportedpublic PrintWriter getLogWriter() throws ResourceException
ResourceException
- for a generic errorpublic void setLogWriter(PrintWriter out) throws ResourceException
out
- the log writer
ResourceException
- for a generic error
ResourceAdapterInternalException
- for an internal error in the
resource adapterpublic boolean equals(Object other)
other
- the other object
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |