Interface IDatentabelleDao

    • Method Detail

      • reindexDatatableInSystemDatabase

        void reindexDatatableInSystemDatabase​(IEntityContext ec,
                                              Projekt project)
        Reindexes the datatables in the system database.
        Parameters:
        ec - entity context
        project - project
      • reindexDatatableInExternalDatabase

        void reindexDatatableInExternalDatabase​(IEntityContext ec,
                                                Projekt project)
        Reindexes the datatables in the external databases.
        Parameters:
        ec - entity context
        project - project
      • migrateOldDatatable

        void migrateOldDatatable​(IEntityContext ec,
                                 Projekt project)
        Migrates an old datatable to the new data model.
        Parameters:
        ec - entity context
        project - project
      • migrateOldPostfachTable

        void migrateOldPostfachTable​(IEntityContext ec,
                                     Projekt project)
        Migrates an old Postfach table to a datatable.
        Parameters:
        ec - entity context
        project - project
      • copyDatatables

        void copyDatatables​(IEntityContext ec,
                            Projekt source,
                            Projekt target)
        Copies all datatables. The datatable in the system database is being renamed, whereas the external datatables are being reused.
        Parameters:
        ec - entity context
        source - source project
        target - target project
      • copyDatatablesForTemplate

        void copyDatatablesForTemplate​(IEntityContext ec,
                                       Projekt source,
                                       Projekt target)
        Copies datatables between project and template, without creating the database tables.
        Parameters:
        ec - entity context
        source - project
        target - template
      • recreateDataTableWithConnection

        void recreateDataTableWithConnection​(Connection connection,
                                             Projekt project,
                                             Datatable datatable)
                                      throws SQLException,
                                             liquibase.exception.PreconditionFailedException,
                                             liquibase.exception.DatabaseException,
                                             liquibase.exception.PreconditionErrorException
        Recreates a datatable using a database connection.
        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