Package com.mchange.v2.c3p0.impl
Class NewPooledConnection
java.lang.Object
com.mchange.v2.c3p0.impl.NewPooledConnection
- All Implemented Interfaces:
com.mchange.v1.util.ClosableResource,PooledConnection
-
Constructor Summary
ConstructorsConstructorDescriptionNewPooledConnection(Connection con, ConnectionTester connectionTester, int connectionIsValidTimeout, boolean autoCommitOnClose, boolean forceIgnoreUnresolvedTransactions, boolean cancelAutomaticallyClosedStatements, String preferredTestQuery, ConnectionCustomizer cc, String pdsIdt) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidclose()If scache is non-null, callers must ALREADY have marked the Connection in use before calling this method!voidcloseAll()Callers must ALREADY have marked the Connection in use before calling this method!intvoidvoidmarkCloseOnCompletionSet(Object pstmt) voidmarkCursorNameSet(Object pstmt) voidmarkFetchDirectionUpdatedFrom(Object pstmt, int from) voidmarkFetchSizeUpdatedFrom(Object pstmt, int from) voidmarkMaxFieldSizeUpdatedFrom(Object pstmt, int from) voidmarkMaxRowsUpdatedFrom(Object pstmt, long from) voidmarkQueryTimeoutUpdatedFrom(Object pstmt, int from) voidvoidvoidvoid
-
Constructor Details
-
NewPooledConnection
public NewPooledConnection(Connection con, ConnectionTester connectionTester, int connectionIsValidTimeout, boolean autoCommitOnClose, boolean forceIgnoreUnresolvedTransactions, boolean cancelAutomaticallyClosedStatements, String preferredTestQuery, ConnectionCustomizer cc, String pdsIdt) throws SQLException - Throws:
SQLException
-
-
Method Details
-
getConnection
- Throws:
SQLException
-
getConnectionStatus
public int getConnectionStatus() -
closeAll
Callers must ALREADY have marked the Connection in use before calling this method!- Throws:
SQLException
-
close
If scache is non-null, callers must ALREADY have marked the Connection in use before calling this method!- Throws:
SQLException
-
addConnectionEventListener
-
removeConnectionEventListener
-
printConnectionListeners
public void printConnectionListeners() -
addStatementEventListener
-
removeStatementEventListener
-
printStatementListeners
public void printStatementListeners() -
initStatementCache
-
getStatementCache
-
markCursorNameSet
-
markCloseOnCompletionSet
-
markQueryTimeoutUpdatedFrom
-
markFetchDirectionUpdatedFrom
-
markFetchSizeUpdatedFrom
-
markMaxFieldSizeUpdatedFrom
-
markMaxRowsUpdatedFrom
-