public class OpenJPASavepoint extends Object implements Serializable
Constructor and Description |
---|
OpenJPASavepoint(Broker broker,
String name,
boolean copy)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Broker |
getBroker()
Return the Broker associated with this savepoint.
|
boolean |
getCopyFieldState()
Whether this savepoint copies the field values of retained instances.
|
String |
getName()
Return the name for this savepoint.
|
protected Map<StateManagerImpl,org.apache.openjpa.kernel.SavepointFieldManager> |
getStates()
Return the map of states to savepoint data.
|
void |
release(boolean user)
Release this savepoint and any associated resources.
|
Collection<org.apache.openjpa.kernel.SavepointFieldManager> |
rollback(Collection<OpenJPASavepoint> previous)
Handle the rolled back state, returning saved data.
|
void |
save(Collection<StateManagerImpl> states)
Set this savepoint, saving any state for the passed-in
OpenJPAStateManager s as necessary. |
public Broker getBroker()
public String getName()
public boolean getCopyFieldState()
protected Map<StateManagerImpl,org.apache.openjpa.kernel.SavepointFieldManager> getStates()
public void save(Collection<StateManagerImpl> states)
OpenJPAStateManager
s as necessary.public void release(boolean user)
user
- if true, user initiated, otherwise a side effect of
another savepoint's release/rollbackpublic Collection<org.apache.openjpa.kernel.SavepointFieldManager> rollback(Collection<OpenJPASavepoint> previous)
previous
- previous savepoints set in the transactionCopyright © 2006–2019 Apache Software Foundation. All rights reserved.