org.objectweb.jonas.jdbc
Class ManagedConnectionFactoryImpl
java.lang.Object
org.objectweb.jonas.jdbc.ManagedConnectionFactoryImpl
- All Implemented Interfaces:
- javax.resource.spi.ManagedConnectionFactory, java.io.Serializable, javax.resource.spi.ValidatingManagedConnectionFactory
- Direct Known Subclasses:
- ConnectionPoolMCFImpl, DataSourceMCFImpl, DriverManagerMCFImpl, XAMCFImpl
- public abstract class ManagedConnectionFactoryImpl
- extends java.lang.Object
- implements javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ValidatingManagedConnectionFactory, java.io.Serializable
- Author:
- Eric hardesty
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
LOGGER_FACTORY
protected static final java.lang.String LOGGER_FACTORY
- See Also:
- Constant Field Values
trace
public org.objectweb.util.monolog.api.Logger trace
JDBC_NO_TEST
public static final int JDBC_NO_TEST
- Constants for use with JDBC connection level
- See Also:
- Constant Field Values
JDBC_CHECK_CONNECTION
public static final int JDBC_CHECK_CONNECTION
- See Also:
- Constant Field Values
JDBC_SEND_STATEMENT
public static final int JDBC_SEND_STATEMENT
- See Also:
- Constant Field Values
JDBC_KEEP_ALIVE
public static final int JDBC_KEEP_ALIVE
- See Also:
- Constant Field Values
ManagedConnectionFactoryImpl
public ManagedConnectionFactoryImpl()
createManagedConnection
public abstract javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxReq)
throws javax.resource.ResourceException
- Specified by:
createManagedConnection
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
equals
public abstract boolean equals(java.lang.Object obj)
- Specified by:
equals
in interface javax.resource.spi.ManagedConnectionFactory
createConnectionFactory
public java.lang.Object createConnectionFactory()
throws javax.resource.ResourceException
- Specified by:
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
createConnectionFactory
public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager cxMgr)
throws javax.resource.ResourceException
- Specified by:
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
getLogger
public void getLogger(java.lang.String _logTopic)
throws java.lang.Exception
- Throws:
java.lang.Exception
getLogWriter
public java.io.PrintWriter getLogWriter()
throws javax.resource.ResourceException
- Specified by:
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
hashCode
public int hashCode()
- Specified by:
hashCode
in interface javax.resource.spi.ManagedConnectionFactory
matchManagedConnections
public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxReq)
throws javax.resource.ResourceException
- Specified by:
matchManagedConnections
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
setLogWriter
public void setLogWriter(java.io.PrintWriter _pw)
throws javax.resource.ResourceException
- Specified by:
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
getDbSpecificMethods
public java.lang.String getDbSpecificMethods()
setDbSpecificMethods
public void setDbSpecificMethods(java.lang.String val)
getDsClass
public java.lang.String getDsClass()
setDsClass
public void setDsClass(java.lang.String val)
getIsolationLevel
public java.lang.String getIsolationLevel()
setIsolationLevel
public void setIsolationLevel(java.lang.String val)
getLoginTimeout
public java.lang.String getLoginTimeout()
setLoginTimeout
public void setLoginTimeout(java.lang.String val)
getLogTopic
public java.lang.String getLogTopic()
setLogTopic
public void setLogTopic(java.lang.String val)
getMapperName
public java.lang.String getMapperName()
setMapperName
public void setMapperName(java.lang.String val)
getPassword
public java.lang.String getPassword()
setPassword
public void setPassword(java.lang.String val)
getUser
public java.lang.String getUser()
setUser
public void setUser(java.lang.String val)
setJdbcConnLevel
public void setJdbcConnLevel(int lev)
- Set the level of checking on jdbc Connections
- Parameters:
lev
- 0=no check, 1=ckeck open, 2=try stm, 3=keep alive
getJdbcConnLevel
public int getJdbcConnLevel()
setJdbcConnTestStmt
public void setJdbcConnTestStmt(java.lang.String stmt)
- Set the tesqt statement to use, in case of check level 2 or 3.
getJdbcConnTestStmt
public java.lang.String getJdbcConnTestStmt()
getInvalidConnections
public java.util.Set getInvalidConnections(java.util.Set connectionSet)
throws javax.resource.ResourceException
- This method returns a set of invalid ManagedConnection objects chosen from
a specified set of ManagedConnection objects.
- Specified by:
getInvalidConnections
in interface javax.resource.spi.ValidatingManagedConnectionFactory
- Returns:
- Set of invalid Connections from the given set
- Throws:
javax.resource.ResourceException
- The operation failed