public class ManagedFactoryImpl extends java.lang.Object implements ManagedConnectionFactory, ValidatingManagedConnectionFactory
Modifier and Type | Field and Description |
---|---|
protected static java.util.logging.Logger |
log |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createConnectionFactory()
Creates the data source the user sees.
|
java.lang.Object |
createConnectionFactory(ConnectionManager connManager)
Creates the data source the user sees.
|
ManagedConnection |
createManagedConnection(javax.security.auth.Subject subject,
ConnectionRequestInfo requestInfo)
Creates the underlying managed connection.
|
DBPoolImpl |
getDBPool()
Returns the DB pool.
|
java.util.Set |
getInvalidConnections(java.util.Set connSet)
Returns any invalid connections.
|
java.io.PrintWriter |
getLogWriter()
Gets the log writer for the ManagedConnectionFactory.
|
ResourceAdapter |
getResourceAdapter() |
java.lang.String |
getURL()
Returns the primary URL
|
ManagedConnection |
matchManagedConnections(java.util.Set connSet,
javax.security.auth.Subject subject,
ConnectionRequestInfo requestInfo)
Creates the underlying managed connection.
|
void |
setLogWriter(java.io.PrintWriter out)
Sets the log writer for the ManagedConnectionFactory.
|
void |
setResourceAdapter(ResourceAdapter adapter) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode
public DBPoolImpl getDBPool()
public java.lang.String getURL()
public java.lang.Object createConnectionFactory(ConnectionManager connManager) throws ResourceException
createConnectionFactory
in interface ManagedConnectionFactory
ResourceException
public java.lang.Object createConnectionFactory() throws ResourceException
createConnectionFactory
in interface ManagedConnectionFactory
ResourceException
public ManagedConnection createManagedConnection(javax.security.auth.Subject subject, ConnectionRequestInfo requestInfo) throws ResourceException
createManagedConnection
in interface ManagedConnectionFactory
ResourceException
public ManagedConnection matchManagedConnections(java.util.Set connSet, javax.security.auth.Subject subject, ConnectionRequestInfo requestInfo) throws ResourceException
matchManagedConnections
in interface ManagedConnectionFactory
ResourceException
public java.util.Set getInvalidConnections(java.util.Set connSet) throws ResourceException
getInvalidConnections
in interface ValidatingManagedConnectionFactory
ResourceException
public void setLogWriter(java.io.PrintWriter out) throws ResourceException
ManagedConnectionFactory
setLogWriter
in interface ManagedConnectionFactory
ResourceException
public java.io.PrintWriter getLogWriter() throws ResourceException
ManagedConnectionFactory
getLogWriter
in interface ManagedConnectionFactory
ResourceException
public ResourceAdapter getResourceAdapter()
public void setResourceAdapter(ResourceAdapter adapter)
public java.lang.String toString()
toString
in class java.lang.Object