Package org.h2.jdbcx
Class JdbcXAConnection.PooledJdbcConnection
- java.lang.Object
-
- org.h2.message.TraceObject
-
- org.h2.jdbc.JdbcConnection
-
- org.h2.jdbcx.JdbcXAConnection.PooledJdbcConnection
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.sql.Connection,java.sql.Wrapper,CastDataProvider,JdbcConnectionBackwardsCompat
- Enclosing class:
- JdbcXAConnection
final class JdbcXAConnection.PooledJdbcConnection extends JdbcConnection
A pooled connection.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanisClosed-
Fields inherited from class org.h2.message.TraceObject
ARRAY, BLOB, CALLABLE_STATEMENT, CLOB, CONNECTION, DATA_SOURCE, DATABASE_META_DATA, PARAMETER_META_DATA, PREPARED_STATEMENT, RESULT_SET, RESULT_SET_META_DATA, SAVEPOINT, SQLXML, STATEMENT, trace, XA_DATA_SOURCE, XID
-
-
Constructor Summary
Constructors Constructor Description PooledJdbcConnection(JdbcConnection conn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckClosed()INTERNAL.voidclose()Closes this connection.booleanisClosed()Returns true if this connection has been closed.-
Methods inherited from class org.h2.jdbc.JdbcConnection
abort, clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, currentTimestamp, currentTimeZone, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getJavaObjectSerializer, getMetaData, getMode, getNetworkTimeout, getSchema, getSession, getStaticSettings, getTransactionIsolation, getTypeMap, getWarnings, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, toString, unwrap, zeroBasedEnums
-
Methods inherited from class org.h2.message.TraceObject
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupported
-
-
-
-
Constructor Detail
-
PooledJdbcConnection
public PooledJdbcConnection(JdbcConnection conn)
-
-
Method Detail
-
close
public void close() throws java.sql.SQLExceptionDescription copied from class:JdbcConnectionCloses this connection. All open statements, prepared statements and result sets that where created by this connection become invalid after calling this method. If there is an uncommitted transaction, it will be rolled back.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.sql.Connection- Overrides:
closein classJdbcConnection- Throws:
java.sql.SQLException
-
isClosed
public boolean isClosed() throws java.sql.SQLExceptionDescription copied from class:JdbcConnectionReturns true if this connection has been closed.- Specified by:
isClosedin interfacejava.sql.Connection- Overrides:
isClosedin classJdbcConnection- Returns:
- true if close was called
- Throws:
java.sql.SQLException
-
checkClosed
protected void checkClosed()
Description copied from class:JdbcConnectionINTERNAL. Check if this connection is closed.- Overrides:
checkClosedin classJdbcConnection
-
-