Class SystemMessageDao

    • Field Summary

      • Fields inherited from class de.xima.cmn.dao.AbstractDao

        entityClass, LOG
    • Constructor Detail

      • SystemMessageDao

        public SystemMessageDao()
    • 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 interface ISystemMessageDao
        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

        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 interface ISystemMessageDao
        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.