Package de.xima.fc.dao.impl
Class VorgangsDataDao
- java.lang.Object
-
- de.xima.fc.dao.impl.ATransactionDao
-
- de.xima.fc.dao.impl.VorgangsDataDao
-
- All Implemented Interfaces:
IVorgangsDataDao
public class VorgangsDataDao extends ATransactionDao implements IVorgangsDataDao
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description VorgangsDataDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleanactivate(IEntityContext ec)Started die übergebene Transaktion, wenn sie nicht bereits aktiv ist.voidclearUnreferenced(IEntityContext ec, Projekt project, EProjectSpecificDBTable tableType)booleanexecuteBulkDeleteInDatatableInSystemDatabase(IEntityContext ec, Datatable datatable, List<Long> formEingangIDs)Executes a bulk delete in a datatable in the system database.booleanexecuteBulkDeleteInDatatableWithConnection(Connection connection, IConnectionCreator connectionCreator, Datatable datatable, List<Long> formEingangIDs)Executes a bulk delete in a datatable.booleanexecuteDelete(IEntityContext ec, EProjectSpecificDBTable tableType, Projekt projekt, Long formEingangID)booleanexecuteDeleteInDatatableInSystemDatabase(IEntityContext ec, Datatable datatable, Long formEingangID)Executes a deletion in a datatable in the system database.booleanexecuteDeleteInDatatableWithConnection(Connection connection, IConnectionCreator connectionCreator, Datatable datatable, Projekt project, Long formEingangID)Executes a deletion in a datatable.<T extends ITableColumn>
booleanexecuteInsert(IEntityContext ec, EProjectSpecificDBTable tableType, Projekt projekt, long formEingangID, Map<String,String> dataMap)booleanexecuteInsertInDatatableWithConnection(Connection connection, IConnectionCreator connectionCreator, Datatable datatable, Projekt project, long formEingangID, Map<String,String> dataMap)Executes an insertion into a datatable.voidfillData(IEntityContext ec, Vorgang v, Map<String,String> dataMap, Long formEingangID, EProjectSpecificDBTable tableType)Diese Methode dient dazu Werte aus den Formulardaten in eine vorher erzeugte Tabelle zu schreiben.<T extends ITableColumn>
voidfillData(IEntityContext ec, EProjectSpecificDBTable tableType, Projekt projekt, long formEingangID, Map<String,String> dataMap)voidfillDataInDatatableWithConnection(Connection connection, IConnectionCreator connectionCreator, Datatable datatable, Projekt project, long formEingangID, Map<String,String> dataMap)Fills a datatable using a database connection.voidfillDataInDatatableWithConnection(Connection connection, IConnectionCreator connectionCreator, Datatable datatable, Vorgang v, Map<String,String> dataMap, Long formEingangID)Fills a datatable using a database connection.Map<String,ITableColumn>getFieldMap(EProjectSpecificDBTable tableType, Projekt pro)Deprecated.IVorgangsDataSQLBuildergetSQLBuilder(EProjectSpecificDBTable tableType)longgetTotalCount(IEntityContext ec, Projekt projekt, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)longgetTotalCount(IEntityContext ec, Projekt projekt, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType, Postfach... inboxes)longgetTotalCount(IEntityContext ec, Projekt projekt, Postfach postfach, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)List<ExtendedEntityModel<Vorgang>>getVorgaengeData(IEntityContext ec, Projekt projekt, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)List<ExtendedEntityModel<Vorgang>>getVorgaengeData(IEntityContext ec, Projekt projekt, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType, Postfach... inboxes)List<ExtendedEntityModel<Vorgang>>getVorgaengeData(IEntityContext ec, Projekt projekt, Postfach pf, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)ExtendedEntityModel<Vorgang>getVorgangsData(IEntityContext ec, Projekt projekt, Vorgang vorgang, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)protected voidrollback(IEntityContext ec)Methode für das Rollback einer Transaktion.voidsetDatatableSQLBuilder(IVorgangsDataSQLBuilder builder)voidsetInboxSQLBuilder(IVorgangsDataSQLBuilder builder)
-
-
-
Method Detail
-
setDatatableSQLBuilder
public void setDatatableSQLBuilder(IVorgangsDataSQLBuilder builder)
- Specified by:
setDatatableSQLBuilderin interfaceIVorgangsDataDao
-
setInboxSQLBuilder
public void setInboxSQLBuilder(IVorgangsDataSQLBuilder builder)
- Specified by:
setInboxSQLBuilderin interfaceIVorgangsDataDao
-
fillData
public void fillData(IEntityContext ec, Vorgang v, Map<String,String> dataMap, Long formEingangID, EProjectSpecificDBTable tableType)
Diese Methode dient dazu Werte aus den Formulardaten in eine vorher erzeugte Tabelle zu schreiben. Es kann sich dabei um eine reine Datentabelle oder eine Postfach-View-Tabelle handeln. Dies wird durch den übergebenenEProjectSpecificDBTable-Typ bestimmt. Damit das Einfügen erfolgen kann, wird zunächst geprüft, ob die Tabelle existiert. Existiert die Tabelle nicht, so erfolgt eine Logausschrift und die Verarbeitung wird abgebrochen.- Specified by:
fillDatain interfaceIVorgangsDataDao- Parameters:
ec-EntityContextum die Session zu erhalten in dem die Tabelle erzeugt wirdv- Vorgang dessen Werte in die Tabelle geschrieben werden sollendataMap- Daten, die in die Tabelle geschrieben werden sollentableType- Der projektspezifische Tabellen-Typ, in welche die Daten hinzugefügt werden sollen
-
fillDataInDatatableWithConnection
public void fillDataInDatatableWithConnection(Connection connection, IConnectionCreator connectionCreator, Datatable datatable, Vorgang v, Map<String,String> dataMap, Long formEingangID)
Description copied from interface:IVorgangsDataDaoFills a datatable using a database connection.- Specified by:
fillDataInDatatableWithConnectionin interfaceIVorgangsDataDao- Parameters:
connection- database connectionconnectionCreator- connection creatordatatable- datatablev- form recorddataMap- data mapformEingangID- form record ID
-
fillData
public <T extends ITableColumn> void fillData(IEntityContext ec, EProjectSpecificDBTable tableType, Projekt projekt, long formEingangID, Map<String,String> dataMap)
- Specified by:
fillDatain interfaceIVorgangsDataDao
-
fillDataInDatatableWithConnection
public void fillDataInDatatableWithConnection(Connection connection, IConnectionCreator connectionCreator, Datatable datatable, Projekt project, long formEingangID, Map<String,String> dataMap)
Description copied from interface:IVorgangsDataDaoFills a datatable using a database connection.- Specified by:
fillDataInDatatableWithConnectionin interfaceIVorgangsDataDao- Parameters:
connection- database connectionconnectionCreator- connection creatordatatable- datatableproject- projectformEingangID- form record IDdataMap- data map
-
executeDelete
public boolean executeDelete(IEntityContext ec, EProjectSpecificDBTable tableType, Projekt projekt, Long formEingangID)
- Specified by:
executeDeletein interfaceIVorgangsDataDao
-
executeDeleteInDatatableInSystemDatabase
public boolean executeDeleteInDatatableInSystemDatabase(IEntityContext ec, Datatable datatable, Long formEingangID)
Description copied from interface:IVorgangsDataDaoExecutes a deletion in a datatable in the system database.- Specified by:
executeDeleteInDatatableInSystemDatabasein interfaceIVorgangsDataDao- Parameters:
ec- entity contextdatatable- datatableformEingangID- form record ID- Returns:
- true, if delete was successful
-
executeBulkDeleteInDatatableInSystemDatabase
public boolean executeBulkDeleteInDatatableInSystemDatabase(IEntityContext ec, Datatable datatable, List<Long> formEingangIDs)
Description copied from interface:IVorgangsDataDaoExecutes a bulk delete in a datatable in the system database.- Specified by:
executeBulkDeleteInDatatableInSystemDatabasein interfaceIVorgangsDataDao- Parameters:
ec- entity contextdatatable- datatableformEingangIDs- form record IDs- Returns:
- true, if delete was successful
-
executeDeleteInDatatableWithConnection
public boolean executeDeleteInDatatableWithConnection(Connection connection, IConnectionCreator connectionCreator, Datatable datatable, Projekt project, Long formEingangID)
Description copied from interface:IVorgangsDataDaoExecutes a deletion in a datatable.- Specified by:
executeDeleteInDatatableWithConnectionin interfaceIVorgangsDataDao- Parameters:
connection- database connectionconnectionCreator- connection creatordatatable- datatableproject- projectformEingangID- form record ID- Returns:
- true, if delete was successful
-
executeBulkDeleteInDatatableWithConnection
public boolean executeBulkDeleteInDatatableWithConnection(Connection connection, IConnectionCreator connectionCreator, Datatable datatable, List<Long> formEingangIDs)
Description copied from interface:IVorgangsDataDaoExecutes a bulk delete in a datatable.- Specified by:
executeBulkDeleteInDatatableWithConnectionin interfaceIVorgangsDataDao- Parameters:
connection- The connection to the database.connectionCreator- connection creatordatatable- The datatable to delete from.formEingangIDs- IDs of theFormEingangelements to delete.- Returns:
- true, if delete was successful
-
executeInsert
public <T extends ITableColumn> boolean executeInsert(IEntityContext ec, EProjectSpecificDBTable tableType, Projekt projekt, long formEingangID, Map<String,String> dataMap)
- Specified by:
executeInsertin interfaceIVorgangsDataDao
-
executeInsertInDatatableWithConnection
public boolean executeInsertInDatatableWithConnection(Connection connection, IConnectionCreator connectionCreator, Datatable datatable, Projekt project, long formEingangID, Map<String,String> dataMap)
Description copied from interface:IVorgangsDataDaoExecutes an insertion into a datatable.- Specified by:
executeInsertInDatatableWithConnectionin interfaceIVorgangsDataDao- Parameters:
connection- database connectionconnectionCreator- connection creatordatatable- datatableproject- projectformEingangID- form record IDdataMap- data map- Returns:
- true, if insertion was successful
-
clearUnreferenced
public void clearUnreferenced(IEntityContext ec, Projekt project, EProjectSpecificDBTable tableType)
- Specified by:
clearUnreferencedin interfaceIVorgangsDataDao
-
getVorgangsData
public ExtendedEntityModel<Vorgang> getVorgangsData(IEntityContext ec, Projekt projekt, Vorgang vorgang, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
- Specified by:
getVorgangsDatain interfaceIVorgangsDataDao
-
getVorgaengeData
public List<ExtendedEntityModel<Vorgang>> getVorgaengeData(IEntityContext ec, Projekt projekt, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
- Specified by:
getVorgaengeDatain interfaceIVorgangsDataDao
-
getVorgaengeData
public List<ExtendedEntityModel<Vorgang>> getVorgaengeData(IEntityContext ec, Projekt projekt, Postfach pf, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
- Specified by:
getVorgaengeDatain interfaceIVorgangsDataDao
-
getVorgaengeData
public List<ExtendedEntityModel<Vorgang>> getVorgaengeData(IEntityContext ec, Projekt projekt, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType, Postfach... inboxes)
- Specified by:
getVorgaengeDatain interfaceIVorgangsDataDao
-
getTotalCount
public long getTotalCount(IEntityContext ec, Projekt projekt, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
- Specified by:
getTotalCountin interfaceIVorgangsDataDao
-
getTotalCount
public long getTotalCount(IEntityContext ec, Projekt projekt, Postfach postfach, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
- Specified by:
getTotalCountin interfaceIVorgangsDataDao
-
getTotalCount
public long getTotalCount(IEntityContext ec, Projekt projekt, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType, Postfach... inboxes)
- Specified by:
getTotalCountin interfaceIVorgangsDataDao
-
getSQLBuilder
public IVorgangsDataSQLBuilder getSQLBuilder(EProjectSpecificDBTable tableType)
-
getFieldMap
@Deprecated public Map<String,ITableColumn> getFieldMap(EProjectSpecificDBTable tableType, Projekt pro)
Deprecated.
-
activate
protected boolean activate(IEntityContext ec)
Started die übergebene Transaktion, wenn sie nicht bereits aktiv ist.- Overrides:
activatein classATransactionDao- Parameters:
ec- An entity context to use for interacting with the database.- Returns:
false, wenn die übergebene Transaktion bereits aktiv war, ansonstentrue.
-
rollback
protected void rollback(IEntityContext ec)
Methode für das Rollback einer Transaktion.- Overrides:
rollbackin classATransactionDao- Parameters:
ec- An entity context to use for interacting with the database.
-
-