| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.kernel.OpenJPASavepoint
public class OpenJPASavepoint
Represents a savepoint where operations afterwards can be rolled back and restored to this point
| Constructor Summary | |
|---|---|
OpenJPASavepoint(Broker broker,
                 String name,
                 boolean copy)
Constructor.  | 
|
| Method Summary | |
|---|---|
 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 | 
getStates()
Return the map of states to savepoint data.  | 
 void | 
release(boolean user)
Release this savepoint and any associated resources.  | 
 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 OpenJPAStateManagers as necessary. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public OpenJPASavepoint(Broker broker,
                        String name,
                        boolean copy)
| Method Detail | 
|---|
public Broker getBroker()
public String getName()
public boolean getCopyFieldState()
protected Map getStates()
public void save(Collection states)
OpenJPAStateManagers as necessary.
public void release(boolean user)
user - if true, user initiated, otherwise a side effect of
 another savepoint's release/rollbackpublic Collection rollback(Collection previous)
previous - previous savepoints set in the transaction
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||