Class InMemorySavepointManager

java.lang.Object
org.apache.openjpa.kernel.InMemorySavepointManager
All Implemented Interfaces:
SavepointManager
Direct Known Subclasses:
AuditManager

public class InMemorySavepointManager extends Object implements SavepointManager
A SavepointManager implementation which stores all data in memory.
Since:
0.3.4
Author:
Steve Kim
  • Constructor Details

    • InMemorySavepointManager

      public InMemorySavepointManager()
  • Method Details

    • getPreFlush

      public boolean getPreFlush()
      Return whether to call Broker.preFlush() when a savepoint is set. While this will allow for tracking of newly embedded fields, it has the side effect of going through pre-flush operations.
    • setPreFlush

      public void setPreFlush(boolean preFlush)
      Set whether to call Broker.preFlush() when a savepoint is set. While this will allow for tracking of newly embedded fields, it has the side effect of going through pre-flush operations.
    • newSavepoint

      public OpenJPASavepoint newSavepoint(String name, Broker broker)
      Description copied from interface: SavepointManager
      Return a new savepoint for the given name, which may be null.
      Specified by:
      newSavepoint in interface SavepointManager
    • supportsIncrementalFlush

      public boolean supportsIncrementalFlush()
      Description copied from interface: SavepointManager
      Return whether the savepoints generated by this manager can handle incremental flushes to the datastore.
      Specified by:
      supportsIncrementalFlush in interface SavepointManager