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:
AutoCloseable
,Connection
,Wrapper
,CastDataProvider
,JdbcConnectionBackwardsCompat
- Enclosing class:
JdbcXAConnection
A pooled connection.
-
Field Summary
FieldsFields 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
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
-
Constructor Summary
Constructors -
Method Summary
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.sql.Connection
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
-
Field Details
-
isClosed
private boolean isClosed
-
-
Constructor Details
-
PooledJdbcConnection
-
-
Method Details
-
close
Description copied from class:JdbcConnection
Closes 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceConnection
- Overrides:
close
in classJdbcConnection
- Throws:
SQLException
-
isClosed
Description copied from class:JdbcConnection
Returns true if this connection has been closed.- Specified by:
isClosed
in interfaceConnection
- Overrides:
isClosed
in classJdbcConnection
- Returns:
- true if close was called
- Throws:
SQLException
-
checkClosed
protected void checkClosed()Description copied from class:JdbcConnection
INTERNAL. Check if this connection is closed.- Overrides:
checkClosed
in classJdbcConnection
-