|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.enhydra.jdbc.util.JdbcUtil org.enhydra.jdbc.core.CoreDataSource org.enhydra.jdbc.standard.StandardDataSource org.enhydra.jdbc.standard.StandardConnectionPoolDataSource org.enhydra.jdbc.standard.StandardXADataSource org.kuali.rice.core.database.RiceXADataSource
public class RiceXADataSource
This is a description of what this class does - wliang don't forget to fill this in. Portions of this code were copied from Apache DBCP 1.2.1
Field Summary |
---|
Fields inherited from class org.enhydra.jdbc.standard.StandardXADataSource |
---|
connectionCount, deadLockMaxWait, deadLockRetryWait, DEFAULT_DEADLOCKMAXWAIT, DEFAULT_DEADLOCKRETRYWAIT, DEFAULT_MAX_CON, DEFAULT_MIN_CON, maxCon, minCon, transactionManager |
Fields inherited from class org.enhydra.jdbc.standard.StandardConnectionPoolDataSource |
---|
DEFAULT_PREPAREDSTMTCACHESIZE |
Fields inherited from class org.enhydra.jdbc.core.CoreDataSource |
---|
logWriter, password, user |
Fields inherited from class org.enhydra.jdbc.util.JdbcUtil |
---|
log |
Constructor Summary | |
---|---|
RiceXADataSource()
|
Method Summary | |
---|---|
protected org.apache.commons.pool.KeyedObjectPoolFactory |
createStatementPoolFactory()
|
Connection |
getConnection(String arg0,
String arg1)
|
org.enhydra.jdbc.standard.StandardXAStatefulConnection |
getFreeConnection()
|
int |
getPreparedStatementCacheSize()
|
void |
setPreparedStatementCacheSize(int preparedStmtCacheSize)
|
void |
setPreparedStmtCacheSize(int preparedStmtCacheSize)
This method calls setPreparedStatementCacheSize(int) instead of setting this property. |
protected PreparedStatementCachingConnection |
wrapConnection(Connection realConnection)
|
Methods inherited from class org.enhydra.jdbc.standard.StandardXADataSource |
---|
closeFreeConnection, dump, freeConnection, getAllConnections, getConnectionCount, getDeadLockMaxWait, getDeadLockRetryWait, getMaxCon, getMinCon, getTransactionManager, getXAConnection, getXAConnection, getXidConnections, getXidCount, processToWait, setDeadLockMaxWait, setDeadLockRetryWait, setDriverName, setMaxCon, setMinCon, setPassword, setTransactionManager, setUrl, setUser, toString |
Methods inherited from class org.enhydra.jdbc.standard.StandardConnectionPoolDataSource |
---|
getMasterPrepStmtCache, getPooledConnection, getPooledConnection, getPreparedStmtCacheSize |
Methods inherited from class org.enhydra.jdbc.standard.StandardDataSource |
---|
equals, getConnection, getDriverName, getObjectInstance, getReference, getTransactionIsolation, getUrl, hashCode, setTransactionIsolation |
Methods inherited from class org.enhydra.jdbc.core.CoreDataSource |
---|
getDescription, getLoginTimeout, getLogWriter, getPassword, getThreadFactory, getUser, isDebug, isVerbose, setDebug, setDescription, setLoginTimeout, setLogWriter, setThreadFactory, setVerbose, shutdown |
Methods inherited from class org.enhydra.jdbc.util.JdbcUtil |
---|
setLogger |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.sql.CommonDataSource |
---|
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Methods inherited from interface java.sql.Wrapper |
---|
isWrapperFor, unwrap |
Constructor Detail |
---|
public RiceXADataSource()
Method Detail |
---|
public Connection getConnection(String arg0, String arg1) throws SQLException
getConnection
in interface DataSource
getConnection
in class org.enhydra.jdbc.standard.StandardDataSource
SQLException
public org.enhydra.jdbc.standard.StandardXAStatefulConnection getFreeConnection() throws SQLException
getFreeConnection
in class org.enhydra.jdbc.standard.StandardXADataSource
SQLException
public int getPreparedStatementCacheSize()
public void setPreparedStatementCacheSize(int preparedStmtCacheSize)
public void setPreparedStmtCacheSize(int preparedStmtCacheSize)
setPreparedStatementCacheSize(int)
instead of setting this property.
The reason 2 properties exist is because preparedStmtCacheSize is used by XAPool to enable PreparedStatement caching, but
its implementation seems to cause max cursors to be exceeded under oracle. Therefore, this class defines a new property, preparedStatementCacheSize,
that will instead be used to turn on caching
setPreparedStmtCacheSize
in class org.enhydra.jdbc.standard.StandardConnectionPoolDataSource
StandardConnectionPoolDataSource.setPreparedStmtCacheSize(int)
protected org.apache.commons.pool.KeyedObjectPoolFactory createStatementPoolFactory()
protected PreparedStatementCachingConnection wrapConnection(Connection realConnection)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |