Package de.xima.fc.dao.impl
Class SystemMessageDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
-
- de.xima.fc.dao.impl.GenericDao<SystemMessage>
-
- de.xima.fc.dao.impl.SystemMessageDao
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<SystemMessage,Long,IEntityContext>
,IGenericDao<SystemMessage>
,ISystemMessageDao
public class SystemMessageDao extends GenericDao<SystemMessage> implements ISystemMessageDao
-
-
Constructor Summary
Constructors Constructor Description SystemMessageDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SystemMessage>
allActiveByDate(IEntityContext ec, Date date)
Retrieves all system messages that are both #SystemMessage.isFlagActive()
and available at the given date.List<SystemMessage>
allByDate(IEntityContext ec, Date date)
Retrieves all system messages that are available at the given date.protected IFCDaoActionHook<SystemMessage>
getPreActionHook()
-
Methods inherited from class de.xima.fc.dao.impl.GenericDao
getEntityRefs, getPostActionHook, 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
-
allByDate
public List<SystemMessage> allByDate(IEntityContext ec, Date date) throws de.xima.cmn.dao.exceptions.DatabaseAccessException
Description copied from interface:ISystemMessageDao
Retrieves all system messages that are available at the given date.- Specified by:
allByDate
in interfaceISystemMessageDao
- Parameters:
ec
- Current entity context for accessing the database.date
- The date for which to retrieve the messages. Ifnull
, all messages are returned.- Returns:
- All system message applicable for the given date.
- Throws:
de.xima.cmn.dao.exceptions.DatabaseAccessException
-
allActiveByDate
public List<SystemMessage> allActiveByDate(IEntityContext ec, Date date) throws de.xima.cmn.dao.exceptions.DatabaseAccessException
Description copied from interface:ISystemMessageDao
Retrieves all system messages that are both #SystemMessage.isFlagActive()
and available at the given date.- Specified by:
allActiveByDate
in interfaceISystemMessageDao
- Parameters:
ec
- Current entity context for accessing the database.date
- The date for which to retrieve the messages. Ifnull
, all messages are returned.- Returns:
- All active system message applicable for the given date.
- Throws:
de.xima.cmn.dao.exceptions.DatabaseAccessException
-
getPreActionHook
protected IFCDaoActionHook<SystemMessage> getPreActionHook()
- Overrides:
getPreActionHook
in classGenericDao<SystemMessage>
-
-