Package org.apache.openjpa.jdbc.kernel
Class AbstractJDBCSavepointManager.ConnectionSavepoint
java.lang.Object
org.apache.openjpa.kernel.OpenJPASavepoint
org.apache.openjpa.jdbc.kernel.AbstractJDBCSavepointManager.ConnectionSavepoint
- All Implemented Interfaces:
Serializable
- Enclosing class:
- AbstractJDBCSavepointManager
A savepoint which provides access to the current transactional
connection.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the currentConnection
for this savepoint.Return the stored savepoint objectrollback
(Collection previous) Handle the rolled back state, returning saved data.void
save
(Collection states) Set this savepoint, saving any state for the passed-inOpenJPAStateManager
s as necessary.void
setDataStoreSavepoint
(Object savepoint) Set the implementation specific savepoint objectMethods inherited from class org.apache.openjpa.kernel.OpenJPASavepoint
getBroker, getCopyFieldState, getName, getStates, release
-
Constructor Details
-
ConnectionSavepoint
-
-
Method Details
-
getDataStoreSavepoint
Return the stored savepoint object -
setDataStoreSavepoint
Set the implementation specific savepoint object -
getConnection
Return the currentConnection
for this savepoint. -
rollback
Description copied from class:OpenJPASavepoint
Handle the rolled back state, returning saved data. Subclasses should return the collection returned from this method.- Overrides:
rollback
in classOpenJPASavepoint
- Parameters:
previous
- previous savepoints set in the transaction
-
save
Description copied from class:OpenJPASavepoint
Set this savepoint, saving any state for the passed-inOpenJPAStateManager
s as necessary.- Overrides:
save
in classOpenJPASavepoint
-