Class TxDbUpdateManager<T>
- java.lang.Object
-
- de.aristaflow.adept2.base.dbaccess.updatemanager.DbUpdateManager
-
- de.aristaflow.adept2.core.transactionmanager.TxDbUpdateManager<T>
-
- Type Parameters:
T- The type of objects for which transactions are registered.
public class TxDbUpdateManager<T> extends de.aristaflow.adept2.base.dbaccess.updatemanager.DbUpdateManagerSimple (transient) manager for the definition and execution of updates to the database schema.- Author:
- Patrick Schmidt, Ulrich Kreher
-
-
Constructor Summary
Constructors Constructor Description TxDbUpdateManager(Class<?> serviceInterface, TxManager<T> txManager, LogService logService)Constructs a newDbSchemaUpdateManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidperformUpdates(T o, ExtendedConnection con)Performs all available updates from the current version thelatest version.
-
-
-
Constructor Detail
-
TxDbUpdateManager
public TxDbUpdateManager(Class<?> serviceInterface, TxManager<T> txManager, LogService logService)
Constructs a newDbSchemaUpdateManager.- Parameters:
serviceInterface- The name of this classClass.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.
-
-
Method Detail
-
performUpdates
public void performUpdates(T o, ExtendedConnection con) throws de.aristaflow.adept2.base.dbaccess.updatemanager.UpdateException
Performs all available updates from the current version thelatest version.- Parameters:
o- The object for which the designated connection has been retrieved from ourTxManager.con- The connection to use for performing the updates. This has to be a connection retrieved from ourTxManager.- Throws:
de.aristaflow.adept2.base.dbaccess.updatemanager.UpdateException- if the update fails
-
-