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
,java.lang.AutoCloseable
,java.sql.Connection
,java.sql.Wrapper
public class PGXAConnectionDelegator extends PGPooledConnectionDelegator
Connection handle for PGXAConnection
-
-
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(java.lang.Object o)
int
hashCode()
void
rollback()
void
rollback(java.sql.Savepoint savepoint)
void
setAutoCommit(boolean autoCommit)
-
Methods inherited from class com.impossibl.postgres.jdbc.PGPooledConnectionDelegator
abort, addNotificationListener, addNotificationListener, addNotificationListener, clearWarnings, close, 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
-
-
-
-
Constructor Detail
-
PGXAConnectionDelegator
public PGXAConnectionDelegator(PGXAConnection owner, PGConnection delegator)
Constructor- Parameters:
owner
- The ownerdelegator
- The delegator
-
-
Method Detail
-
commit
public void commit() throws java.sql.SQLException
- Specified by:
commit
in interfacejava.sql.Connection
- Overrides:
commit
in classPGPooledConnectionDelegator
- Throws:
java.sql.SQLException
-
rollback
public void rollback() throws java.sql.SQLException
- Specified by:
rollback
in interfacejava.sql.Connection
- Overrides:
rollback
in classPGPooledConnectionDelegator
- Throws:
java.sql.SQLException
-
rollback
public void rollback(java.sql.Savepoint savepoint) throws java.sql.SQLException
- Specified by:
rollback
in interfacejava.sql.Connection
- Overrides:
rollback
in classPGPooledConnectionDelegator
- Throws:
java.sql.SQLException
-
setAutoCommit
public void setAutoCommit(boolean autoCommit) throws java.sql.SQLException
- Specified by:
setAutoCommit
in interfacejava.sql.Connection
- Overrides:
setAutoCommit
in classPGPooledConnectionDelegator
- Throws:
java.sql.SQLException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classPGPooledConnectionDelegator
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classPGPooledConnectionDelegator
-
-