|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory
BaseWrapperManagedConnectionFactory.java Created: Fri Apr 19 13:33:08 2002
Field Summary | |
protected java.lang.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 (src) |
connectionChecker
The instance of the valid connection checker |
protected java.util.Properties |
connectionProps
|
protected boolean |
doQueryTimeout
|
protected Logger (src) |
log
|
protected java.lang.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 java.lang.String |
password
|
protected int |
preparedStatementCacheSize
|
protected boolean |
sharePS
Whether to cached share prepared statements |
static java.lang.String |
TRACK_STATEMENTS_FALSE
|
static int |
TRACK_STATEMENTS_FALSE_INT
|
static java.lang.String |
TRACK_STATEMENTS_NOWARN
|
static int |
TRACK_STATEMENTS_NOWARN_INT
|
static java.lang.String |
TRACK_STATEMENTS_TRUE
|
static int |
TRACK_STATEMENTS_TRUE_INT
|
protected int |
trackStatements
|
protected int |
transactionIsolation
|
protected java.lang.String |
userName
|
protected java.lang.String |
validConnectionCheckerClassName
The classname used to check whether a connection is valid |
Constructor Summary | |
BaseWrapperManagedConnectionFactory()
|
Method Summary | |
java.lang.Object |
createConnectionFactory()
Creates a connection factory instance. |
java.lang.Object |
createConnectionFactory(ConnectionManager (src) cm)
Creates a connection factory instance. |
java.lang.String |
getCheckValidConnectionSQL()
Get the CheckValidConnectionSQL value. |
protected java.util.Properties |
getConnectionProperties(javax.security.auth.Subject subject,
ConnectionRequestInfo (src) cri)
Gets full set of connection properties, i.e. |
java.lang.String |
getExceptionSorterClassName()
Get the ExceptionSorterClassname value. |
java.io.PrintWriter |
getLogWriter()
Gets the logwriter for this instance. |
java.lang.String |
getNewConnectionSQL()
Get the NewConnectionSQL value. |
java.lang.String |
getPassword()
Get the value of password. |
int |
getPreparedStatementCacheSize()
|
boolean |
getSharePreparedStatements()
|
java.lang.String |
getTrackStatements()
Whether to track statements |
java.lang.String |
getTransactionIsolation()
Gets the TransactionIsolation attribute of the JDBCManagedConnectionFactory object |
boolean |
getTxQueryTimeout()
|
java.lang.String |
getUserName()
Get the value of userName. |
java.lang.String |
getValidConnectionCheckerClassName()
Get the valid connection checker class name |
void |
setCheckValidConnectionSQL(java.lang.String checkValidConnectionSQL)
Set the CheckValidConnectionSQL value. |
void |
setExceptionSorterClassName(java.lang.String exceptionSorterClassName)
Set the ExceptionSorterClassname value. |
void |
setLogWriter(java.io.PrintWriter param1)
Sets the logwriter for this instance. |
void |
setNewConnectionSQL(java.lang.String newConnectionSQL)
Set the NewConnectionSQL value. |
void |
setPassword(java.lang.String password)
Set the value of password. |
void |
setPreparedStatementCacheSize(int size)
|
void |
setSharePreparedStatements(boolean sharePS)
|
void |
setTrackStatements(java.lang.String value)
Set the track statements value. |
void |
setTransactionIsolation(java.lang.String transactionIsolation)
Sets the TransactionIsolation attribute of the JDBCManagedConnectionFactory object |
void |
setTxQueryTimeout(boolean qt)
|
void |
setUserName(java.lang.String userName)
Set the value of userName. |
void |
setValidConnectionCheckerClassName(java.lang.String value)
Set the valid connection checker class name |
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 (src) |
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 java.lang.String TRACK_STATEMENTS_FALSE
public static final java.lang.String TRACK_STATEMENTS_TRUE
public static final java.lang.String TRACK_STATEMENTS_NOWARN
protected final Logger (src) log
protected java.lang.String userName
protected java.lang.String password
protected final java.util.Properties connectionProps
protected int transactionIsolation
protected int preparedStatementCacheSize
protected boolean doQueryTimeout
protected java.lang.String newConnectionSQL
newConnectionSQL
holds an SQL
statement which if not null is executed when a new Connection is
obtained for a new ManagedConnection.
protected java.lang.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 java.lang.String validConnectionCheckerClassName
protected ValidConnectionChecker (src) connectionChecker
protected int trackStatements
protected boolean sharePS
Constructor Detail |
public BaseWrapperManagedConnectionFactory()
Method Detail |
public java.io.PrintWriter getLogWriter() throws ResourceException (src)
ManagedConnectionFactory (src)
getLogWriter
in interface ManagedConnectionFactory (src)
ResourceException (src)
- public void setLogWriter(java.io.PrintWriter param1) throws ResourceException (src)
ManagedConnectionFactory (src)
setLogWriter
in interface ManagedConnectionFactory (src)
param1
- ResourceException (src)
- public java.lang.Object createConnectionFactory(ConnectionManager (src) cm) throws ResourceException (src)
ManagedConnectionFactory (src)
createConnectionFactory
in interface ManagedConnectionFactory (src)
cm
- ResourceException (src)
- public java.lang.Object createConnectionFactory() throws ResourceException (src)
ManagedConnectionFactory (src)
createConnectionFactory
in interface ManagedConnectionFactory (src)
ResourceException (src)
- public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
userName
- Value to assign to userName.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- Value to assign to password.public int getPreparedStatementCacheSize()
public void setPreparedStatementCacheSize(int size)
public boolean getSharePreparedStatements()
public void setSharePreparedStatements(boolean sharePS)
public boolean getTxQueryTimeout()
public void setTxQueryTimeout(boolean qt)
public java.lang.String getTransactionIsolation()
public void setTransactionIsolation(java.lang.String transactionIsolation)
transactionIsolation
- The new TransactionIsolation valuepublic java.lang.String getNewConnectionSQL()
public void setNewConnectionSQL(java.lang.String newConnectionSQL)
newConnectionSQL
- The new NewConnectionSQL value.public java.lang.String getCheckValidConnectionSQL()
public void setCheckValidConnectionSQL(java.lang.String checkValidConnectionSQL)
checkValidConnectionSQL
- The new CheckValidConnectionSQL value.public java.lang.String getTrackStatements()
public void setTrackStatements(java.lang.String value)
value
- true to track statements.public java.lang.String getExceptionSorterClassName()
public void setExceptionSorterClassName(java.lang.String exceptionSorterClassName)
exceptionSorterClassName
- The new ExceptionSorterClassName value.public java.lang.String getValidConnectionCheckerClassName()
public void setValidConnectionCheckerClassName(java.lang.String value)
value
- the class nameprotected java.util.Properties getConnectionProperties(javax.security.auth.Subject subject, ConnectionRequestInfo (src) cri) throws ResourceException (src)
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".
ResourceException (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |