Package org.jppf.persistence
Class AbstractDatabasePersistence.ConnectionWrapper
java.lang.Object
org.jppf.persistence.AbstractDatabasePersistence.ConnectionWrapper
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- AbstractDatabasePersistence<I>
protected static class AbstractDatabasePersistence.ConnectionWrapper
extends Object
implements AutoCloseable
A wrapper for a connection and some of its characteristics.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConnectionWrapper(Connection connection, boolean autocommit, int isolation) -
Method Summary
-
Constructor Details
-
ConnectionWrapper
protected ConnectionWrapper(Connection connection, boolean autocommit, int isolation) throws Exception - Parameters:
connection- the connection.autocommit- the connection's autocommit flag to set.isolation- the connection's transaction isolation level to set.- Throws:
Exception- if any error occurs.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
getConnection
- Returns:
- the connection.
-