Package com.impossibl.postgres.jdbc.xa
Class PGXAConnectionDelegator
- java.lang.Object
-
- com.impossibl.postgres.jdbc.PGPooledConnectionDelegator
-
- com.impossibl.postgres.jdbc.xa.PGXAConnectionDelegator
-
- All Implemented Interfaces:
PGConnection,AutoCloseable,Connection,Wrapper
public class PGXAConnectionDelegator extends PGPooledConnectionDelegator
Connection handle for PGXAConnection
-
-
Field Summary
-
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
-
-
Constructor Summary
Constructors Constructor Description PGXAConnectionDelegator(PGXAConnection owner, PGConnection delegator)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit()booleanequals(Object o)inthashCode()voidrollback()voidrollback(Savepoint savepoint)voidsetAutoCommit(boolean autoCommit)-
Methods inherited from class com.impossibl.postgres.jdbc.PGPooledConnectionDelegator
abort, addNotificationListener, addNotificationListener, addNotificationListener, clearWarnings, close, copyFrom, copyTo, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDefaultFetchSize, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isServerMinimumVersion, isStrictMode, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, removeNotificationListener, removeNotificationListener, resolveType, setCatalog, setClientInfo, setClientInfo, setDefaultFetchSize, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setStrictMode, setTransactionIsolation, setTypeMap, unwrap
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.sql.Connection
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
-
-
-
-
Constructor Detail
-
PGXAConnectionDelegator
public PGXAConnectionDelegator(PGXAConnection owner, PGConnection delegator)
Constructor- Parameters:
owner- The ownerdelegator- The delegator
-
-
Method Detail
-
commit
public void commit() throws SQLException- Specified by:
commitin interfaceConnection- Overrides:
commitin classPGPooledConnectionDelegator- Throws:
SQLException
-
rollback
public void rollback() throws SQLException- Specified by:
rollbackin interfaceConnection- Overrides:
rollbackin classPGPooledConnectionDelegator- Throws:
SQLException
-
rollback
public void rollback(Savepoint savepoint) throws SQLException
- Specified by:
rollbackin interfaceConnection- Overrides:
rollbackin classPGPooledConnectionDelegator- Throws:
SQLException
-
setAutoCommit
public void setAutoCommit(boolean autoCommit) throws SQLException- Specified by:
setAutoCommitin interfaceConnection- Overrides:
setAutoCommitin classPGPooledConnectionDelegator- Throws:
SQLException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPGPooledConnectionDelegator
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classPGPooledConnectionDelegator
-
-