|
|||||||||
| 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 String |
LOGGER_FACTORY
|
org.objectweb.util.monolog.api.Logger |
trace
|
| Constructor Summary | |
|---|---|
ManagedConnectionFactoryImpl()
|
|
| Method Summary | |
|---|---|
Object |
createConnectionFactory()
|
Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cxMgr)
|
abstract javax.resource.spi.ManagedConnection |
createManagedConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cxReq)
|
abstract boolean |
equals(Object obj)
|
protected static Object |
getDataSource(ManagedConnectionFactoryImpl mcf,
javax.resource.spi.security.PasswordCredential pc,
org.objectweb.util.monolog.api.Logger trace)
|
String |
getDbSpecificMethods()
|
String |
getDsClass()
|
Set |
getInvalidConnections(Set connectionSet)
This method returns a set of invalid ManagedConnection objects chosen from a specified set of ManagedConnection objects. |
String |
getIsolationLevel()
|
int |
getJdbcConnLevel()
|
String |
getJdbcConnTestStmt()
|
void |
getLogger(String _logTopic)
|
String |
getLoginTimeout()
|
String |
getLogTopic()
|
PrintWriter |
getLogWriter()
|
String |
getMapperName()
|
String |
getPassword()
|
protected static javax.resource.spi.security.PasswordCredential |
getPasswordCredential(javax.resource.spi.ManagedConnectionFactory mcf,
Subject subject,
javax.resource.spi.ConnectionRequestInfo info,
PrintWriter out)
Returns the Password credential |
String |
getUser()
|
int |
hashCode()
|
javax.resource.spi.ManagedConnection |
matchManagedConnections(Set connectionSet,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cxReq)
|
void |
setDbSpecificMethods(String val)
|
void |
setDsClass(String val)
|
void |
setIsolationLevel(String val)
|
void |
setJdbcConnLevel(int lev)
Set the level of checking on jdbc Connections |
void |
setJdbcConnTestStmt(String stmt)
Set the tesqt statement to use, in case of check level 2 or 3. |
void |
setLoginTimeout(String val)
|
void |
setLogTopic(String val)
|
void |
setLogWriter(PrintWriter _pw)
|
void |
setMapperName(String val)
|
void |
setPassword(String val)
|
void |
setUser(String val)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final 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(Subject subject,
javax.resource.spi.ConnectionRequestInfo cxReq)
throws javax.resource.ResourceException
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceExceptionpublic abstract boolean equals(Object obj)
equals in interface javax.resource.spi.ManagedConnectionFactoryequals in class Object
public Object createConnectionFactory()
throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException
public Object createConnectionFactory(javax.resource.spi.ConnectionManager cxMgr)
throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException
public void getLogger(String _logTopic)
throws Exception
Exception
public 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 Object
public javax.resource.spi.ManagedConnection matchManagedConnections(Set connectionSet,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cxReq)
throws javax.resource.ResourceException
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException
public void setLogWriter(PrintWriter _pw)
throws javax.resource.ResourceException
setLogWriter in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceExceptionpublic String getDbSpecificMethods()
public void setDbSpecificMethods(String val)
public String getDsClass()
public void setDsClass(String val)
public String getIsolationLevel()
public void setIsolationLevel(String val)
public String getLoginTimeout()
public void setLoginTimeout(String val)
public String getLogTopic()
public void setLogTopic(String val)
public String getMapperName()
public void setMapperName(String val)
public String getPassword()
public void setPassword(String val)
public String getUser()
public void setUser(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(String stmt)
public String getJdbcConnTestStmt()
public Set getInvalidConnections(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,
Subject subject,
javax.resource.spi.ConnectionRequestInfo info,
PrintWriter out)
throws javax.resource.ResourceException
mcf - ManagedConnectionFactory currently being usedsubject - Subject associated with this callinfo - ConnectionRequestInfo
javax.resource.ResourceException
protected static 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 | ||||||||