|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory
BaseWrapperManagedConnectionFactory.java Created: Fri Apr 19 13:33:08 2002
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 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
|
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()
|
Method Summary | |
Object |
createConnectionFactory()
|
Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cm)
|
String |
getCheckValidConnectionSQL()
Get the CheckValidConnectionSQL value. |
protected Properties |
getConnectionProperties(Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Gets full set of connection properties, i.e. |
String |
getExceptionSorterClassName()
Get the ExceptionSorterClassname value. |
PrintWriter |
getLogWriter()
|
String |
getNewConnectionSQL()
Get the NewConnectionSQL value. |
String |
getPassword()
Get the value of password. |
int |
getPreparedStatementCacheSize()
|
String |
getTrackStatements()
Whether to track statements |
String |
getTransactionIsolation()
Gets the TransactionIsolation attribute of the JDBCManagedConnectionFactory object |
boolean |
getTxQueryTimeout()
|
String |
getUserName()
Get the value of userName. |
String |
getValidConnectionCheckerClassName()
Get the valid connection checker class name |
void |
setCheckValidConnectionSQL(String checkValidConnectionSQL)
Set the CheckValidConnectionSQL value. |
void |
setExceptionSorterClassName(String exceptionSorterClassName)
Set the ExceptionSorterClassname value. |
void |
setLogWriter(PrintWriter param1)
|
void |
setNewConnectionSQL(String newConnectionSQL)
Set the NewConnectionSQL value. |
void |
setPassword(String password)
Set the value of password. |
void |
setPreparedStatementCacheSize(int size)
|
void |
setTrackStatements(String value)
Set the track statements value. |
void |
setTransactionIsolation(String transactionIsolation)
Sets the TransactionIsolation attribute of the JDBCManagedConnectionFactory object |
void |
setTxQueryTimeout(boolean qt)
|
void |
setUserName(String userName)
Set the value of userName. |
void |
setValidConnectionCheckerClassName(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 |
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
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
param1
- javax.resource.ResourceException
- public Object createConnectionFactory(javax.resource.spi.ConnectionManager cm) throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
cm
- 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)
userName
- Value to assign to userName.public String getPassword()
public void setPassword(String password)
password
- Value to assign to password.public int getPreparedStatementCacheSize()
public void setPreparedStatementCacheSize(int size)
public boolean getTxQueryTimeout()
public void setTxQueryTimeout(boolean qt)
public String getTransactionIsolation()
public void setTransactionIsolation(String transactionIsolation)
transactionIsolation
- The new TransactionIsolation valuepublic String getNewConnectionSQL()
public void setNewConnectionSQL(String newConnectionSQL)
newConnectionSQL
- The new NewConnectionSQL value.public String getCheckValidConnectionSQL()
public void setCheckValidConnectionSQL(String checkValidConnectionSQL)
checkValidConnectionSQL
- The new CheckValidConnectionSQL value.public String getTrackStatements()
public void setTrackStatements(String value)
value
- true to track statements.public String getExceptionSorterClassName()
public void setExceptionSorterClassName(String exceptionSorterClassName)
exceptionSorterClassName
- The new ExceptionSorterClassName value.public String getValidConnectionCheckerClassName()
public void setValidConnectionCheckerClassName(String value)
value
- the class nameprotected 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 |