| 
 | ||||||||||
| 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,
                 java.lang.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. | 
|  java.lang.String | getName()Return the name for this savepoint. | 
| protected  java.util.Map | getStates()Return the map of states to savepoint data. | 
|  void | release(boolean user)Release this savepoint and any associated resources. | 
|  java.util.Collection | rollback(java.util.Collection previous)Handle the rolled back state, returning saved data. | 
|  void | save(java.util.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,
                        java.lang.String name,
                        boolean copy)
| Method Detail | 
|---|
public Broker getBroker()
public java.lang.String getName()
public boolean getCopyFieldState()
protected java.util.Map getStates()
public void save(java.util.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 java.util.Collection rollback(java.util.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 | |||||||||