public abstract class AbstractJDBCSavepointManager extends Object implements SavepointManager, Configurable
SavepointManager
implementation that
delegates to the subclass for savepoint operations on the active
Connection
. This implementation issues a flush and relies
on the driver/db to restore back to the flushed state.Modifier and Type | Class and Description |
---|---|
protected class |
AbstractJDBCSavepointManager.ConnectionSavepoint
A savepoint which provides access to the current transactional
connection.
|
Constructor and Description |
---|
AbstractJDBCSavepointManager() |
Modifier and Type | Method and Description |
---|---|
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object.
|
boolean |
getRestoreFieldState()
Return whether to retain in-memory copies of field values for restore
on rollback.
|
OpenJPASavepoint |
newSavepoint(String name,
Broker broker)
Return a new savepoint for the given name, which may be null.
|
protected abstract void |
rollbackDataStore(AbstractJDBCSavepointManager.ConnectionSavepoint savepoint)
Rollback the datastore savepoint.
|
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties.
|
protected abstract void |
setDataStore(AbstractJDBCSavepointManager.ConnectionSavepoint savepoint)
Set the datastore savepoint.
|
void |
setRestoreFieldState(boolean restore)
Set whether to retain in-memory copies of field values for restore
on rollback.
|
void |
startConfiguration()
Invoked before bean property configuration is begun on this object.
|
boolean |
supportsIncrementalFlush()
Return whether the savepoints generated by this manager
can handle incremental flushes to the datastore.
|
public void startConfiguration()
Configurable
startConfiguration
in interface Configurable
public void setConfiguration(Configuration conf)
Configurable
setConfiguration
in interface Configurable
public void endConfiguration()
Configurable
endConfiguration
in interface Configurable
public boolean getRestoreFieldState()
public void setRestoreFieldState(boolean restore)
OpenJPAConfiguration.getRestoreState()
.public OpenJPASavepoint newSavepoint(String name, Broker broker)
SavepointManager
newSavepoint
in interface SavepointManager
public boolean supportsIncrementalFlush()
SavepointManager
supportsIncrementalFlush
in interface SavepointManager
protected abstract void rollbackDataStore(AbstractJDBCSavepointManager.ConnectionSavepoint savepoint)
protected abstract void setDataStore(AbstractJDBCSavepointManager.ConnectionSavepoint savepoint)
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.