Class DatentabelleDao

    • Constructor Detail

      • DatentabelleDao

        public DatentabelleDao()
    • Method Detail

      • insertValuesToTables

        public void insertValuesToTables​(IEntityContext ec,
                                         Vorgang vorgang)
        Diese Methode dient dazu, EingabeWerte aus einem Vorgang in die Projekt-Postfach-Tabelle bzw. Projekt-Datentabelle zu schreiben. Die Tabelleninformationen werden aus dem im Vorgang referenzierten Projekt entnommen.
        Specified by:
        insertValuesToTables in interface IDatentabelleDao
        Parameters:
        ec - EntityContext der für die Datenbankarbeiten genutzt wird
        vorgang - dessen Werte anhand des aktuellen FormEingang in die Tabelle geschrieben werden sollen.
      • recreateDataTableWithConnection

        public void recreateDataTableWithConnection​(Connection connection,
                                                    Projekt project,
                                                    Datatable datatable)
                                             throws SQLException,
                                                    liquibase.exception.PreconditionFailedException,
                                                    liquibase.exception.DatabaseException,
                                                    liquibase.exception.PreconditionErrorException
        Description copied from interface: IDatentabelleDao
        Recreates a datatable using a database connection.
        Specified by:
        recreateDataTableWithConnection in interface IDatentabelleDao
        Parameters:
        connection - database connection
        project - project
        datatable - datatable
        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
      • reindexDataTable

        @Deprecated
        public void reindexDataTable​(IEntityContext ec,
                                     Projekt projekt)
                              throws Exception
        Deprecated.
        Description copied from interface: IDatentabelleDao
        Reindexes the project-specific data table for the given project. Clears the table, recalculates the data from the saved form record data, and updates the table with that data.
        Specified by:
        reindexDataTable in interface IDatentabelleDao
        Parameters:
        ec - Entity context to use for accessing the database.
        projekt - The project with the data table to update.
        Throws:
        Exception - When the table could not be reindexed.
      • reindexPostfachTable

        @Deprecated
        public void reindexPostfachTable​(IEntityContext ec,
                                         Projekt projekt)
                                  throws Exception
        Deprecated.
        Description copied from interface: IDatentabelleDao
        Reindexes the project-specific inbox table for the given project. Clears the table, recalculates the data from the saved form record data, and updates the table with that data.
        Specified by:
        reindexPostfachTable in interface IDatentabelleDao
        Parameters:
        ec - Entity context to use for accessing the database.
        projekt - The project with the inbox table to update.
        Throws:
        Exception - When the table could not be reindexed.
      • copyDatatables

        public void copyDatatables​(IEntityContext ec,
                                   Projekt source,
                                   Projekt target)
        Description copied from interface: IDatentabelleDao
        Copies all datatables. The datatable in the system database is being renamed, whereas the external datatables are being reused.
        Specified by:
        copyDatatables in interface IDatentabelleDao
        Parameters:
        ec - entity context
        source - source project
        target - target project