org.kuali.rice.core.database
Class PreparedStatementCachingConnection

java.lang.Object
  extended by org.apache.commons.dbcp.AbandonedTrace
      extended by org.apache.commons.dbcp.DelegatingConnection
          extended by org.apache.commons.dbcp.PoolingConnection
              extended by org.kuali.rice.core.database.PreparedStatementCachingConnection
All Implemented Interfaces:
Connection, Wrapper, org.apache.commons.pool.KeyedPoolableObjectFactory

public class PreparedStatementCachingConnection
extends org.apache.commons.dbcp.PoolingConnection

A subclass of Apache DBCP's PoolingConnection class. This class generates a unique toString value for each instance of this class, because XApool relies on such behavior

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
private  String stringRepresentation
           
 
Fields inherited from class org.apache.commons.dbcp.PoolingConnection
_pstmtPool
 
Fields inherited from class org.apache.commons.dbcp.DelegatingConnection
_closed, _conn
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
PreparedStatementCachingConnection(Connection conn, org.apache.commons.pool.KeyedObjectPool preparedStatementCache)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class org.apache.commons.dbcp.PoolingConnection
activateObject, close, createKey, createKey, destroyObject, makeObject, normalizeSQL, passivateObject, prepareStatement, prepareStatement, validateObject
 
Methods inherited from class org.apache.commons.dbcp.DelegatingConnection
activate, checkOpen, clearWarnings, commit, createStatement, createStatement, createStatement, equals, getAutoCommit, getCatalog, getDelegate, getHoldability, getInnermostDelegate, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, handleException, hashCode, isClosed, isReadOnly, nativeSQL, passivate, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setDelegate, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap
 
Methods inherited from class org.apache.commons.dbcp.AbandonedTrace
addTrace, clearTrace, getConfig, getLastUsed, getTrace, printStackTrace, removeTrace, setLastUsed, setLastUsed, setStackTrace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.sql.Connection
clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Field Detail

stringRepresentation

private String stringRepresentation
Constructor Detail

PreparedStatementCachingConnection

public PreparedStatementCachingConnection(Connection conn,
                                          org.apache.commons.pool.KeyedObjectPool preparedStatementCache)
Method Detail

toString

public String toString()
Overrides:
toString in class org.apache.commons.dbcp.PoolingConnection


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.