Package de.xima.fc.dao.impl
Class GenericDao<T extends de.xima.cmn.dao.interfaces.IEntity<Long>>
java.lang.Object
de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
de.xima.fc.dao.impl.GenericDao<T>
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<T,
,Long, IEntityContext> IGenericDao<T>
- Direct Known Subclasses:
AktionDao
,AppointmentClientClosingTimeDao
,AppointmentClosingTimeDao
,AppointmentDao
,AppointmentSlotDao
,AppointmentTypeDao
,AttachmentDao
,BedingungDao
,DirectClientAuthorizationDao
,FormRecordLockDao
,FormVersionBackupDao
,IndirectClientAuthorizationDao
,InternalSystemMessageDao
,LicenseFileDao
,MandantDao
,MandantDependentBaseDao
,MandantLdapDataDao
,MandantMailDataDao
,ProjektDependentBaseDao
,ProjektZaehlerDao
,ProjektZaehlerDatenDao
,ProtocolEntryClientDao
,ProtocolEntryProcessDao
,ProtocolEntrySystemDao
,StatusDao
,SystemChangeDao
,SystemMessageDao
,SystemPluginDao
,SystemPropertyDao
,UserCredentialsDao
,UserEmailDao
,UserIdentityDao
,UserProfileDao
,UserProfileMfaDao
,VorgangDao
,WorkflowNodeDao
,WorkflowNodeSearchTermDao
,WorkflowProcessDao
,WorkflowStateAuthenticatorConfigDao
,WorkflowStateDao
,WorkflowTaskDao
,WorkflowTriggerDao
,WorkflowTriggerSearchTermDao
,WorkflowVersionBackupDao
public class GenericDao<T extends de.xima.cmn.dao.interfaces.IEntity<Long>>
extends de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
implements IGenericDao<T>
-
Field Summary
Fields inherited from class de.xima.cmn.dao.AbstractDao
entityClass, LOG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEntityRefs
(IEntityContext ec, T entity) Returns a set of entities that reference the given entity and depend on it.protected IFCDaoActionHook<T>
protected IFCDaoActionHook<T>
read
(IEntityContext ec, Integer id) 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
count, findAll, findSingle
-
Constructor Details
-
GenericDao
-
-
Method Details
-
read
- Specified by:
read
in interfaceIGenericDao<T extends de.xima.cmn.dao.interfaces.IEntity<Long>>
- Throws:
de.xima.cmn.dao.exceptions.ReadException
-
getEntityRefs
Description copied from interface:IGenericDao
Returns a set of entities that reference the given entity and depend on it. An entity can usually not be deleted if it is still being referenced by and depended on by other entities.- Specified by:
getEntityRefs
in interfaceIGenericDao<T extends de.xima.cmn.dao.interfaces.IEntity<Long>>
- Parameters:
ec
- entity context for database transactions.entity
- to get references for.- Returns:
- a set of entities that reference the given entity and depend on it.
-
getPreActionHook
- Overrides:
getPreActionHook
in classde.xima.cmn.dao.AbstractDao<T extends de.xima.cmn.dao.interfaces.IEntity<Long>,
Long, IEntityContext>
-
getPostActionHook
- Overrides:
getPostActionHook
in classde.xima.cmn.dao.AbstractDao<T extends de.xima.cmn.dao.interfaces.IEntity<Long>,
Long, IEntityContext>
-