Class 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
    • Constructor Detail

      • ProjectRecordsBulkWithConnectionUpdater

        public ProjectRecordsBulkWithConnectionUpdater​(IEntityContext ec,
                                                       IConnectionCreator connectionCreator,
                                                       Datatable datatable,
                                                       IProjectRecordsParameters params)
        Creates a new ProjectRecordsBulkWithConnectionUpdater instance.
        Parameters:
        ec - entity context to read project and form record data
        connectionCreator - database connection
        datatable - datatable
        params - 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 occurs
        liquibase.exception.PreconditionFailedException - if the table still exists after dropping it
        liquibase.exception.DatabaseException - if database connection cannot be established
        liquibase.exception.PreconditionErrorException - if precondition cannot be checked
        FcPersistenceException - if no connection can be established