Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://aoindustries.com/contact
public class PostgresqlConnectionWrapper extends ConnectionWrapper
Connection and caches the transaction level, intended to avoid unnecessary round-trips imposed by
PostgreSQL Connection.getTransactionIsolation() and Connection.setTransactionIsolation(int).TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Modifier and Type | Method and Description |
|---|---|
int |
getTransactionIsolation() |
protected Connection |
getWrappedConnection()
Gets the connection that is wrapped.
|
void |
setTransactionIsolation(int level) |
abort, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTypeMap, getWarnings, isClosed, 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, setTypeMap, unwrappublic void setTransactionIsolation(int level)
throws SQLException
setTransactionIsolation in interface ConnectionsetTransactionIsolation in class ConnectionWrapperSQLExceptionpublic int getTransactionIsolation()
throws SQLException
getTransactionIsolation in interface ConnectiongetTransactionIsolation in class ConnectionWrapperSQLExceptionprotected Connection getWrappedConnection()
ConnectionWrappergetWrappedConnection in class ConnectionWrapperCopyright © 2000–2019 AO Industries, Inc.. All rights reserved.