|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory
public abstract class BaseWrapperManagedConnectionFactory
BaseWrapperManagedConnectionFactory
Field Summary | |
---|---|
protected String |
checkValidConnectionSQL
The variable checkValidConnectionSQL holds an sql
statement that may be executed whenever a managed connection is
removed from the pool, to check that it is still valid. |
protected ValidConnectionChecker |
connectionChecker
The instance of the valid connection checker |
protected Properties |
connectionProps
|
protected boolean |
doQueryTimeout
|
protected boolean |
isTransactionQueryTimeout
|
protected org.jboss.logging.Logger |
log
|
protected String |
newConnectionSQL
The variable newConnectionSQL holds an SQL
statement which if not null is executed when a new Connection is
obtained for a new ManagedConnection. |
protected String |
password
|
protected int |
preparedStatementCacheSize
|
protected int |
queryTimeout
|
protected boolean |
sharePS
Whether to cached share prepared statements |
static String |
TRACK_STATEMENTS_FALSE
|
static int |
TRACK_STATEMENTS_FALSE_INT
|
static String |
TRACK_STATEMENTS_NOWARN
|
static int |
TRACK_STATEMENTS_NOWARN_INT
|
static String |
TRACK_STATEMENTS_TRUE
|
static int |
TRACK_STATEMENTS_TRUE_INT
|
protected int |
trackStatements
|
protected int |
transactionIsolation
|
protected String |
userName
|
protected String |
validConnectionCheckerClassName
The classname used to check whether a connection is valid |
Constructor Summary | |
---|---|
BaseWrapperManagedConnectionFactory()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.resource.spi.ManagedConnectionFactory |
---|
createManagedConnection, equals, hashCode, matchManagedConnections |
Field Detail |
---|
public static final int TRACK_STATEMENTS_FALSE_INT
public static final int TRACK_STATEMENTS_TRUE_INT
public static final int TRACK_STATEMENTS_NOWARN_INT
public static final String TRACK_STATEMENTS_FALSE
public static final String TRACK_STATEMENTS_TRUE
public static final String TRACK_STATEMENTS_NOWARN
protected final org.jboss.logging.Logger log
protected String userName
protected String password
protected final Properties connectionProps
protected int transactionIsolation
protected int preparedStatementCacheSize
protected boolean doQueryTimeout
protected String newConnectionSQL
newConnectionSQL
holds an SQL
statement which if not null is executed when a new Connection is
obtained for a new ManagedConnection.
protected String checkValidConnectionSQL
checkValidConnectionSQL
holds an sql
statement that may be executed whenever a managed connection is
removed from the pool, to check that it is still valid. This
requires setting up an mbean to execute it when notified by the
ConnectionManager.
protected String validConnectionCheckerClassName
protected ValidConnectionChecker connectionChecker
protected int trackStatements
protected boolean sharePS
protected boolean isTransactionQueryTimeout
protected int queryTimeout
Constructor Detail |
---|
public BaseWrapperManagedConnectionFactory()
Method Detail |
---|
public PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public void setLogWriter(PrintWriter param1) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public Object createConnectionFactory(javax.resource.spi.ConnectionManager cm) throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public Object createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public String getUserName()
public void setUserName(String userName)
public String getPassword()
public void setPassword(String password)
public int getPreparedStatementCacheSize()
public void setPreparedStatementCacheSize(int size)
public boolean getSharePreparedStatements()
public void setSharePreparedStatements(boolean sharePS)
public String getTransactionIsolation()
public void setTransactionIsolation(String transactionIsolation)
public String getNewConnectionSQL()
public void setNewConnectionSQL(String newConnectionSQL)
public String getCheckValidConnectionSQL()
public void setCheckValidConnectionSQL(String checkValidConnectionSQL)
public String getTrackStatements()
public void setTrackStatements(String value)
public String getExceptionSorterClassName()
public void setExceptionSorterClassName(String exceptionSorterClassName)
public String getValidConnectionCheckerClassName()
public void setValidConnectionCheckerClassName(String value)
public boolean isTransactionQueryTimeout()
public void setTransactionQueryTimeout(boolean value)
public int getQueryTimeout()
public void setQueryTimeout(int timeout)
protected Properties getConnectionProperties(Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
Note that the set is used to match connections to datasources as well as to create new managed connections.
In fact, we have a problem here. Theoretically, there is a possible name collision between config properties and "user"/"password".
javax.resource.ResourceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |