Package org.apache.openjpa.kernel
Class InMemorySavepointManager
- java.lang.Object
-
- org.apache.openjpa.kernel.InMemorySavepointManager
-
- All Implemented Interfaces:
SavepointManager
- Direct Known Subclasses:
AuditManager
public class InMemorySavepointManager extends java.lang.Object implements SavepointManager
ASavepointManager
implementation which stores all data in memory.- Since:
- 0.3.4
- Author:
- Steve Kim
-
-
Constructor Summary
Constructors Constructor Description InMemorySavepointManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getPreFlush()
Return whether to callBroker.preFlush()
when a savepoint is set.OpenJPASavepoint
newSavepoint(java.lang.String name, Broker broker)
Return a new savepoint for the given name, which may be null.void
setPreFlush(boolean preFlush)
Set whether to callBroker.preFlush()
when a savepoint is set.boolean
supportsIncrementalFlush()
Return whether the savepoints generated by this manager can handle incremental flushes to the datastore.
-
-
-
Method Detail
-
getPreFlush
public boolean getPreFlush()
Return whether to callBroker.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 callBroker.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(java.lang.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 interfaceSavepointManager
-
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 interfaceSavepointManager
-
-