Package org.apache.openjpa.kernel
Class InMemorySavepointManager
java.lang.Object
org.apache.openjpa.kernel.InMemorySavepointManager
- All Implemented Interfaces:
SavepointManager
- Direct Known Subclasses:
AuditManager
A
SavepointManager
implementation which stores all data in memory.- Since:
- 0.3.4
- Author:
- Steve Kim
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return whether to callBroker.preFlush()
when a savepoint is set.newSavepoint
(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
Return whether the savepoints generated by this manager can handle incremental flushes to the datastore.
-
Constructor Details
-
InMemorySavepointManager
public InMemorySavepointManager()
-
-
Method Details
-
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
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
-