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 void
commit()
boolean
equals(Object o)
int
hashCode()
void
rollback()
void
rollback(Savepoint savepoint)
void
setAutoCommit(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:
commit
in interfaceConnection
- Overrides:
commit
in classPGPooledConnectionDelegator
- Throws:
SQLException
-
rollback
public void rollback() throws SQLException
- Specified by:
rollback
in interfaceConnection
- Overrides:
rollback
in classPGPooledConnectionDelegator
- Throws:
SQLException
-
rollback
public void rollback(Savepoint savepoint) throws SQLException
- Specified by:
rollback
in interfaceConnection
- Overrides:
rollback
in classPGPooledConnectionDelegator
- Throws:
SQLException
-
setAutoCommit
public void setAutoCommit(boolean autoCommit) throws SQLException
- Specified by:
setAutoCommit
in interfaceConnection
- Overrides:
setAutoCommit
in classPGPooledConnectionDelegator
- Throws:
SQLException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classPGPooledConnectionDelegator
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classPGPooledConnectionDelegator
-
-