|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.jonas.ee.jdbc.ManagedConnectionFactoryImpl
public abstract class ManagedConnectionFactoryImpl
| Field Summary | |
|---|---|
static int |
JDBC_CHECK_CONNECTION
|
static int |
JDBC_KEEP_ALIVE
|
static int |
JDBC_NO_TEST
Constants for use with JDBC connection level |
static int |
JDBC_SEND_STATEMENT
|
protected static java.lang.String |
LOGGER_FACTORY
|
org.objectweb.util.monolog.api.Logger |
trace
|
| Constructor Summary | |
|---|---|
ManagedConnectionFactoryImpl()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
createConnectionFactory()
|
java.lang.Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cxMgr)
|
abstract javax.resource.spi.ManagedConnection |
createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxReq)
|
abstract boolean |
equals(java.lang.Object obj)
|
protected static java.lang.Object |
getDataSource(ManagedConnectionFactoryImpl mcf,
javax.resource.spi.security.PasswordCredential pc,
org.objectweb.util.monolog.api.Logger trace)
|
java.lang.String |
getDbSpecificMethods()
|
java.lang.String |
getDsClass()
|
java.util.Set |
getInvalidConnections(java.util.Set connectionSet)
This method returns a set of invalid ManagedConnection objects chosen from a specified set of ManagedConnection objects. |
java.lang.String |
getIsolationLevel()
|
int |
getJdbcConnLevel()
|
java.lang.String |
getJdbcConnTestStmt()
|
void |
getLogger(java.lang.String _logTopic)
|
java.lang.String |
getLoginTimeout()
|
java.lang.String |
getLogTopic()
|
java.io.PrintWriter |
getLogWriter()
|
java.lang.String |
getMapperName()
|
java.lang.String |
getPassword()
|
protected static javax.resource.spi.security.PasswordCredential |
getPasswordCredential(javax.resource.spi.ManagedConnectionFactory mcf,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo info,
java.io.PrintWriter out)
Returns the Password credential |
java.lang.String |
getUser()
|
int |
hashCode()
|
javax.resource.spi.ManagedConnection |
matchManagedConnections(java.util.Set connectionSet,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxReq)
|
void |
setDbSpecificMethods(java.lang.String val)
|
void |
setDsClass(java.lang.String val)
|
void |
setIsolationLevel(java.lang.String val)
|
void |
setJdbcConnLevel(int lev)
Set the level of checking on jdbc Connections |
void |
setJdbcConnTestStmt(java.lang.String stmt)
Set the tesqt statement to use, in case of check level 2 or 3. |
void |
setLoginTimeout(java.lang.String val)
|
void |
setLogTopic(java.lang.String val)
|
void |
setLogWriter(java.io.PrintWriter _pw)
|
void |
setMapperName(java.lang.String val)
|
void |
setPassword(java.lang.String val)
|
void |
setUser(java.lang.String val)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String LOGGER_FACTORY
public org.objectweb.util.monolog.api.Logger trace
public static final int JDBC_NO_TEST
public static final int JDBC_CHECK_CONNECTION
public static final int JDBC_SEND_STATEMENT
public static final int JDBC_KEEP_ALIVE
| Constructor Detail |
|---|
public ManagedConnectionFactoryImpl()
| Method Detail |
|---|
public abstract javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxReq)
throws javax.resource.ResourceException
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceExceptionpublic abstract boolean equals(java.lang.Object obj)
equals in interface javax.resource.spi.ManagedConnectionFactoryequals in class java.lang.Object
public java.lang.Object createConnectionFactory()
throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException
public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager cxMgr)
throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException
public void getLogger(java.lang.String _logTopic)
throws java.lang.Exception
java.lang.Exception
public java.io.PrintWriter getLogWriter()
throws javax.resource.ResourceException
getLogWriter in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceExceptionpublic int hashCode()
hashCode in interface javax.resource.spi.ManagedConnectionFactoryhashCode in class java.lang.Object
public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxReq)
throws javax.resource.ResourceException
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException
public void setLogWriter(java.io.PrintWriter _pw)
throws javax.resource.ResourceException
setLogWriter in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceExceptionpublic java.lang.String getDbSpecificMethods()
public void setDbSpecificMethods(java.lang.String val)
public java.lang.String getDsClass()
public void setDsClass(java.lang.String val)
public java.lang.String getIsolationLevel()
public void setIsolationLevel(java.lang.String val)
public java.lang.String getLoginTimeout()
public void setLoginTimeout(java.lang.String val)
public java.lang.String getLogTopic()
public void setLogTopic(java.lang.String val)
public java.lang.String getMapperName()
public void setMapperName(java.lang.String val)
public java.lang.String getPassword()
public void setPassword(java.lang.String val)
public java.lang.String getUser()
public void setUser(java.lang.String val)
public void setJdbcConnLevel(int lev)
lev - 0=no check, 1=ckeck open, 2=try stm, 3=keep alivepublic int getJdbcConnLevel()
public void setJdbcConnTestStmt(java.lang.String stmt)
public java.lang.String getJdbcConnTestStmt()
public java.util.Set getInvalidConnections(java.util.Set connectionSet)
throws javax.resource.ResourceException
getInvalidConnections in interface javax.resource.spi.ValidatingManagedConnectionFactoryset - of ManagedConnection to test
javax.resource.ResourceException - The operation failed
protected static javax.resource.spi.security.PasswordCredential getPasswordCredential(javax.resource.spi.ManagedConnectionFactory mcf,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo info,
java.io.PrintWriter out)
throws javax.resource.ResourceException
mcf - ManagedConnectionFactory currently being usedsubject - Subject associated with this callinfo - ConnectionRequestInfo
javax.resource.ResourceException
protected static java.lang.Object getDataSource(ManagedConnectionFactoryImpl mcf,
javax.resource.spi.security.PasswordCredential pc,
org.objectweb.util.monolog.api.Logger trace)
throws javax.resource.ResourceException
javax.resource.ResourceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||