protected class AbstractJDBCSavepointManager.ConnectionSavepoint extends OpenJPASavepoint
Constructor and Description |
---|
ConnectionSavepoint(Broker broker,
String name,
boolean copy) |
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection()
Return the current
Connection for this savepoint. |
Object |
getDataStoreSavepoint()
Return the stored savepoint object
|
Collection |
rollback(Collection previous)
Handle the rolled back state, returning saved data.
|
void |
save(Collection states)
Set this savepoint, saving any state for the passed-in
OpenJPAStateManager s as necessary. |
void |
setDataStoreSavepoint(Object savepoint)
Set the implementation specific savepoint object
|
getBroker, getCopyFieldState, getName, getStates, release
public Object getDataStoreSavepoint()
public void setDataStoreSavepoint(Object savepoint)
public Connection getConnection()
Connection
for this savepoint.public Collection rollback(Collection previous)
OpenJPASavepoint
rollback
in class OpenJPASavepoint
previous
- previous savepoints set in the transactionpublic void save(Collection states)
OpenJPASavepoint
OpenJPAStateManager
s as necessary.save
in class OpenJPASavepoint
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.