Interface ISystemMessageDao

All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<SystemMessage,Long,IEntityContext>, IGenericDao<SystemMessage>
All Known Implementing Classes:
SystemMessageDao

public interface ISystemMessageDao extends IGenericDao<SystemMessage>
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves all system messages that are both #SystemMessage.isFlagActive() and available at the given date.
    Retrieves all system messages that are available at the given date.

    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, getEntityRefs, read
  • Method Details

    • allByDate

      List<SystemMessage> allByDate(IEntityContext ec, @Nullable Date date) throws de.xima.cmn.dao.exceptions.DatabaseAccessException
      Retrieves all system messages that are available at the given date.
      Parameters:
      ec - Current entity context for accessing the database.
      date - The date for which to retrieve the messages. If null, all messages are returned.
      Returns:
      All system message applicable for the given date.
      Throws:
      de.xima.cmn.dao.exceptions.DatabaseAccessException - When an error occurred while accessing the database.
    • allActiveByDate

      List<SystemMessage> allActiveByDate(IEntityContext ec, @Nullable Date date) throws de.xima.cmn.dao.exceptions.DatabaseAccessException
      Retrieves all system messages that are both #SystemMessage.isFlagActive() and available at the given date.
      Parameters:
      ec - Current entity context for accessing the database.
      date - The date for which to retrieve the messages. If null, all messages are returned.
      Returns:
      All active system message applicable for the given date.
      Throws:
      de.xima.cmn.dao.exceptions.DatabaseAccessException - When an error occurred while accessing the database.