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
ASavepointManagerimplementation 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 booleangetPreFlush()Return whether to callBroker.preFlush()when a savepoint is set.OpenJPASavepointnewSavepoint(java.lang.String name, Broker broker)Return a new savepoint for the given name, which may be null.voidsetPreFlush(boolean preFlush)Set whether to callBroker.preFlush()when a savepoint is set.booleansupportsIncrementalFlush()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:SavepointManagerReturn a new savepoint for the given name, which may be null.- Specified by:
newSavepointin interfaceSavepointManager
-
supportsIncrementalFlush
public boolean supportsIncrementalFlush()
Description copied from interface:SavepointManagerReturn whether the savepoints generated by this manager can handle incremental flushes to the datastore.- Specified by:
supportsIncrementalFlushin interfaceSavepointManager
-
-