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

protected class AbstractJDBCSavepointManager.ConnectionSavepoint extends OpenJPASavepoint
A savepoint which provides access to the current transactional connection.
See Also:
  • Constructor Details

    • ConnectionSavepoint

      public ConnectionSavepoint(Broker broker, String name, boolean copy)
  • Method Details

    • getDataStoreSavepoint

      public Object getDataStoreSavepoint()
      Return the stored savepoint object
    • setDataStoreSavepoint

      public void setDataStoreSavepoint(Object savepoint)
      Set the implementation specific savepoint object
    • getConnection

      public Connection getConnection()
      Return the current Connection for this savepoint.
    • rollback

      public Collection rollback(Collection previous)
      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 class OpenJPASavepoint
      Parameters:
      previous - previous savepoints set in the transaction
    • save

      public void save(Collection states)
      Description copied from class: OpenJPASavepoint
      Set this savepoint, saving any state for the passed-in OpenJPAStateManagers as necessary.
      Overrides:
      save in class OpenJPASavepoint