Package de.xima.fc.dao.impl
Class VorgangDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
-
- de.xima.fc.dao.impl.GenericDao<Vorgang>
-
- de.xima.fc.dao.impl.VorgangDao
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<Vorgang,Long,IEntityContext>
,IGenericDao<Vorgang>
,IVorgangDao
public class VorgangDao extends GenericDao<Vorgang> implements IVorgangDao
-
-
Constructor Summary
Constructors Constructor Description VorgangDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<Vorgang>
allByPostfach(IEntityContext ec, Postfach postfach)
List<Vorgang>
allByProjekt(IEntityContext ec, Projekt pro)
int
bulkdDeleteAll(IEntityContext ec, Postfach postfach)
Deprecated.int
bulkdDeleteAll(IEntityContext ec, Projekt project)
Deprecated.int
bulkDeleteAll(IEntityContext ec, Postfach postfach)
int
bulkDeleteAll(IEntityContext ec, Projekt project)
int
bulkMarkRead(IEntityContext ec, List<Long> formRecordIds, boolean read)
Sets the attribute 'gelesen' of all the form records with the given IDsVorgang
correctStatus(IEntityContext ec, Vorgang formRecord, Status targetState, Benutzer user)
void
deleteAll(IEntityContext ec, Postfach postfach)
Deprecated.void
deleteAll(IEntityContext ec, Projekt project)
Deprecated.int
deleteAllUnverified(IEntityContext ec)
boolean
existsIdentityToken(IEntityContext ec, Vorgang formRecord, String identityToken, Projekt project)
Checks whether there exists any form record that belongs to the same project as the given project is not the same as the given form record but has got the same identity token as the given tokenVorgang
getByProzessId(IEntityContext ec, String prozessId)
Vorgang
getByUUID(IEntityContext ec, String uuid)
Returns the form record with the given UUIDVorgang
getByUUID(IEntityContext ec, UUID uuid)
Returns the form record with the given UUIDVorgang
getByVerifyId(IEntityContext ec, String verifyId)
GetsVorgang
by its Verify-IDList<Vorgang>
getChildren(IEntityContext ec, Vorgang formRecord)
String
getFormData(IEntityContext ec, Vorgang v)
Vorgang
getParent(IEntityContext ec, Vorgang formRecord)
protected IFCDaoActionHook<Vorgang>
getPostActionHook()
protected IFCDaoActionHook<Vorgang>
getPreActionHook()
List<Vorgang>
getVorgaengeByBenutzer(IEntityContext ec, Benutzer benutzer)
Vorgang
setFormData(IEntityContext ec, Vorgang v, String formData)
-
Methods inherited from class de.xima.fc.dao.impl.GenericDao
getEntityRefs, read
-
Methods inherited from class de.xima.cmn.dao.AbstractDao
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
getEntityRefs, read
-
-
-
-
Method Detail
-
getByProzessId
public Vorgang getByProzessId(IEntityContext ec, String prozessId)
- Specified by:
getByProzessId
in interfaceIVorgangDao
-
getParent
public Vorgang getParent(IEntityContext ec, Vorgang formRecord)
- Specified by:
getParent
in interfaceIVorgangDao
- Parameters:
ec
- Entity context to access the database.formRecord
- Form record for which to find the parent.- Returns:
- The parent form record of the given form record, or
null
if no parent exists.
-
getChildren
public List<Vorgang> getChildren(IEntityContext ec, Vorgang formRecord)
- Specified by:
getChildren
in interfaceIVorgangDao
- Parameters:
ec
- Entity context to access the database.formRecord
- Form record for which to find the parent.- Returns:
- All children of the given form record, or an empty list if no children exist.
-
getByVerifyId
public Vorgang getByVerifyId(IEntityContext ec, String verifyId)
Description copied from interface:IVorgangDao
GetsVorgang
by its Verify-ID- Specified by:
getByVerifyId
in interfaceIVorgangDao
- Parameters:
ec
-IEntityContext
verifyId
-String
- Returns:
Vorgang
-
getVorgaengeByBenutzer
public List<Vorgang> getVorgaengeByBenutzer(IEntityContext ec, Benutzer benutzer)
- Specified by:
getVorgaengeByBenutzer
in interfaceIVorgangDao
-
allByProjekt
public List<Vorgang> allByProjekt(IEntityContext ec, Projekt pro)
- Specified by:
allByProjekt
in interfaceIVorgangDao
-
existsIdentityToken
public boolean existsIdentityToken(IEntityContext ec, Vorgang formRecord, String identityToken, Projekt project)
Description copied from interface:IVorgangDao
Checks whether there exists any form record that- belongs to the same project as the given project
- is not the same as the given form record
- but has got the same identity token as the given token
- Specified by:
existsIdentityToken
in interfaceIVorgangDao
- Parameters:
ec
- Entity context for accessing the database.formRecord
- Current form record. Ifnull
, allows all form records for the given project.identityToken
- New identity token to be checked.project
- Project to which the form record belongs.- Returns:
- True iff a form record with the given identity token exists already.
-
allByPostfach
public List<Vorgang> allByPostfach(IEntityContext ec, Postfach postfach)
- Specified by:
allByPostfach
in interfaceIVorgangDao
-
getFormData
public String getFormData(IEntityContext ec, Vorgang v)
- Specified by:
getFormData
in interfaceIVorgangDao
-
setFormData
public Vorgang setFormData(IEntityContext ec, Vorgang v, String formData)
- Specified by:
setFormData
in interfaceIVorgangDao
-
bulkdDeleteAll
@Deprecated public int bulkdDeleteAll(IEntityContext ec, Postfach postfach)
Deprecated.- Specified by:
bulkdDeleteAll
in interfaceIVorgangDao
- Parameters:
ec
-IEntityContext
for accessing the database.postfach
-Postfach
in which the form set is located.
-
bulkDeleteAll
public int bulkDeleteAll(IEntityContext ec, Postfach postfach)
- Specified by:
bulkDeleteAll
in interfaceIVorgangDao
- Parameters:
ec
-IEntityContext
for accessing the database.postfach
-Postfach
in which the form set is located.
-
bulkdDeleteAll
@Deprecated public int bulkdDeleteAll(IEntityContext ec, Projekt project)
Deprecated.- Specified by:
bulkdDeleteAll
in interfaceIVorgangDao
- Parameters:
ec
-IEntityContext
for accessing the database.project
-Projekt
to which the form record belongs.- Returns:
- count of deleted entries
-
bulkDeleteAll
public int bulkDeleteAll(IEntityContext ec, Projekt project)
- Specified by:
bulkDeleteAll
in interfaceIVorgangDao
- Parameters:
ec
-IEntityContext
for accessing the database.project
-Projekt
to which the form record belongs.- Returns:
- count of deleted entries
-
getByUUID
public Vorgang getByUUID(IEntityContext ec, String uuid)
Description copied from interface:IVorgangDao
Returns the form record with the given UUID- Specified by:
getByUUID
in interfaceIVorgangDao
- Parameters:
ec
-IEntityContext
to useuuid
-String
UUID of the template- Returns:
- The appointment template for the given UUID
-
getByUUID
public Vorgang getByUUID(IEntityContext ec, UUID uuid)
Description copied from interface:IVorgangDao
Returns the form record with the given UUID- Specified by:
getByUUID
in interfaceIVorgangDao
- Parameters:
ec
-IEntityContext
to useuuid
-UUID
UUID of the template- Returns:
- The appointment template for the given UUID
-
deleteAll
@Deprecated public void deleteAll(IEntityContext ec, Postfach postfach)
Deprecated.- Specified by:
deleteAll
in interfaceIVorgangDao
- Parameters:
ec
- {IEntityContext
for accessing the database.postfach
-Postfach
in which the form set is located.
-
deleteAll
@Deprecated public void deleteAll(IEntityContext ec, Projekt project)
Deprecated.- Specified by:
deleteAll
in interfaceIVorgangDao
- Parameters:
ec
-IEntityContext
project
-Projekt
-
deleteAllUnverified
public int deleteAllUnverified(IEntityContext ec)
- Specified by:
deleteAllUnverified
in interfaceIVorgangDao
- Parameters:
ec
- Entity context for accessing the database.
-
correctStatus
public Vorgang correctStatus(IEntityContext ec, Vorgang formRecord, Status targetState, Benutzer user)
- Specified by:
correctStatus
in interfaceIVorgangDao
-
bulkMarkRead
public int bulkMarkRead(IEntityContext ec, List<Long> formRecordIds, boolean read)
Description copied from interface:IVorgangDao
Sets the attribute 'gelesen' of all the form records with the given IDs- Specified by:
bulkMarkRead
in interfaceIVorgangDao
- Parameters:
ec
-IEntityContext
to useformRecordIds
-List
of IDs of the form records to updateread
-Boolean
value to set the attribute 'gelesen' to- Returns:
- the number of updated records
-
getPreActionHook
protected IFCDaoActionHook<Vorgang> getPreActionHook()
- Overrides:
getPreActionHook
in classGenericDao<Vorgang>
-
getPostActionHook
protected IFCDaoActionHook<Vorgang> getPostActionHook()
- Overrides:
getPostActionHook
in classGenericDao<Vorgang>
-
-