3.10.4.2. Configuring Savepoints
OpenJPA uses the
org.apache.openjpa.kernel.SavepointManagerplugin to handle preserving the savepoint state.
OpenJPA includes the following SavepointManager plugins:
-
in-mem: The default. This is an alias for the org.apache.openjpa.kernel.InMemorySavepointManager. This plugin stores all state, including field values, in memory. Due to this behavior, each set savepoint is designed for small to medium transactional object counts. -
jdbc: This is an alias for the org.apache.openjpa.jdbc.kernel.JDBC3SavepointManager. This plugin requiresJDBC 3andjava.sql.Savepointsupport to operate. Note that this plugin implements savepoints by issuing a flush to the database.