Package de.xima.fc.dao.interfaces
Interface IDatentabelleDao
-
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<Datatable,Long,IEntityContext>,IGenericDao<Datatable>
- All Known Implementing Classes:
DatentabelleDao
public interface IDatentabelleDao extends IGenericDao<Datatable>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidcopyDatatables(IEntityContext ec, Projekt source, Projekt target)Copies all datatables.voidcopyDatatablesForTemplate(IEntityContext ec, Projekt source, Projekt target)Copies datatables between project and template, without creating the database tables.voidinsertValuesToTables(IEntityContext ec, Vorgang vorgang)voidmigrateOldDatatable(IEntityContext ec, Projekt project)Migrates an old datatable to the new data model.voidmigrateOldPostfachTable(IEntityContext ec, Projekt project)Migrates an old Postfach table to a datatable.voidrecreateDataTable(IEntityContext ec, Projekt projekt, EProjectSpecificDBTable tableType)voidrecreateDataTableWithConnection(Connection connection, Projekt project, Datatable datatable)Recreates a datatable using a database connection.voidreindexDataTable(IEntityContext ec, Projekt projekt)voidreindexDatatableInExternalDatabase(IEntityContext ec, Projekt project)Reindexes the datatables in the external databases.voidreindexDatatableInSystemDatabase(IEntityContext ec, Projekt project)Reindexes the datatables in the system database.voidreindexPostfachTable(IEntityContext ec, Projekt projekt)-
Methods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
Methods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
count, createOrUpdate, findAll, findSingle, getEntityRefs, read
-
-
-
-
Method Detail
-
reindexDataTable
@Deprecated void reindexDataTable(IEntityContext ec, Projekt projekt) throws Exception
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.- 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 void reindexPostfachTable(IEntityContext ec, Projekt projekt) throws Exception
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.- 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.
-
reindexDatatableInSystemDatabase
void reindexDatatableInSystemDatabase(IEntityContext ec, Projekt project)
Reindexes the datatables in the system database.- Parameters:
ec- entity contextproject- project
-
reindexDatatableInExternalDatabase
void reindexDatatableInExternalDatabase(IEntityContext ec, Projekt project)
Reindexes the datatables in the external databases.- Parameters:
ec- entity contextproject- project
-
migrateOldDatatable
void migrateOldDatatable(IEntityContext ec, Projekt project)
Migrates an old datatable to the new data model.- Parameters:
ec- entity contextproject- project
-
migrateOldPostfachTable
void migrateOldPostfachTable(IEntityContext ec, Projekt project)
Migrates an old Postfach table to a datatable.- Parameters:
ec- entity contextproject- 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 contextsource- source projecttarget- 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 contextsource- projecttarget- template
-
recreateDataTable
void recreateDataTable(IEntityContext ec, Projekt projekt, EProjectSpecificDBTable tableType) throws Exception
- Throws:
Exception
-
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 connectionproject- projectdatatable- datatable- 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 checked
-
insertValuesToTables
void insertValuesToTables(IEntityContext ec, Vorgang vorgang)
-
-