T - The type of objects for which transactions are registered.public class TxDbUpdateManager<T>
extends de.aristaflow.adept2.base.dbaccess.updatemanager.DbUpdateManager
| Modifier and Type | Field and Description |
|---|---|
protected TxManager<T> |
txManager
The transaction manager which is used to commit transactions.
|
| Constructor and Description |
|---|
TxDbUpdateManager(java.lang.Class<?> serviceInterface,
TxManager<T> txManager,
LogService logService)
Constructs a new
DbSchemaUpdateManager. |
| Modifier and Type | Method and Description |
|---|---|
void |
performUpdates(T o,
ExtendedConnection con)
Performs all available updates from the current version the
latest version. |
public TxDbUpdateManager(java.lang.Class<?> serviceInterface,
TxManager<T> txManager,
LogService logService)
DbSchemaUpdateManager.serviceInterface - The name of this class
Class.getSimpleName() will be used as service name.txManager - The transaction manager which is used to commit
transactions.logService - The log service to retrieve the logger for the DB
updates.public void performUpdates(T o, ExtendedConnection con) throws de.aristaflow.adept2.base.dbaccess.updatemanager.UpdateException
latest version.o - The object for which the designated connection has been retrieved
from our TxManager.con - The connection to use for performing the updates. This has to be
a connection retrieved from our TxManager.de.aristaflow.adept2.base.dbaccess.updatemanager.UpdateException - if the update fails