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 boolean
isClosed
-
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 void
checkClosed()
INTERNAL.void
close()
Closes this connection.boolean
isClosed()
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.SQLException
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 interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.sql.Connection
- Overrides:
close
in classJdbcConnection
- Throws:
java.sql.SQLException
-
isClosed
public boolean isClosed() throws java.sql.SQLException
Description copied from class:JdbcConnection
Returns true if this connection has been closed.- Specified by:
isClosed
in interfacejava.sql.Connection
- Overrides:
isClosed
in classJdbcConnection
- Returns:
- true if close was called
- Throws:
java.sql.SQLException
-
checkClosed
protected void checkClosed()
Description copied from class:JdbcConnection
INTERNAL. Check if this connection is closed.- Overrides:
checkClosed
in classJdbcConnection
-
-