Package de.xima.fc.dao.impl.updater
Class ProjectRecordsBulkWithConnectionUpdater
- java.lang.Object
-
- de.xima.fc.dao.impl.updater.ProjectRecordsBulkWithConnectionUpdater
-
public class ProjectRecordsBulkWithConnectionUpdater extends Object
Performs a bulk update of form records based on a database connection and a datatable.- Since:
- 8.6.0
- Author:
- Hannes John
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProjectRecordsBulkWithConnectionUpdater.UpdateResultResult of the bulk operation.
-
Constructor Summary
Constructors Constructor Description ProjectRecordsBulkWithConnectionUpdater(IEntityContext ec, IConnectionCreator connectionCreator, Datatable datatable, IProjectRecordsParameters params)Creates a newProjectRecordsBulkWithConnectionUpdaterinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectRecordsBulkWithConnectionUpdater.UpdateResultperform()Performs the update.
-
-
-
Constructor Detail
-
ProjectRecordsBulkWithConnectionUpdater
public ProjectRecordsBulkWithConnectionUpdater(IEntityContext ec, IConnectionCreator connectionCreator, Datatable datatable, IProjectRecordsParameters params)
Creates a newProjectRecordsBulkWithConnectionUpdaterinstance.- Parameters:
ec- entity context to read project and form record dataconnectionCreator- database connectiondatatable- datatableparams- parameters
-
-
Method Detail
-
perform
public ProjectRecordsBulkWithConnectionUpdater.UpdateResult perform() throws SQLException, liquibase.exception.PreconditionFailedException, liquibase.exception.DatabaseException, liquibase.exception.PreconditionErrorException, FcPersistenceException
Performs the update.- Returns:
- result of the update operation
- Throws:
SQLException- if an error during database operation occursliquibase.exception.PreconditionFailedException- if the table still exists after dropping itliquibase.exception.DatabaseException- if database connection cannot be establishedliquibase.exception.PreconditionErrorException- if precondition cannot be checkedFcPersistenceException- if no connection can be established
-
-