Class DefaultTitleDao

    • Constructor Detail

      • DefaultTitleDao

        public DefaultTitleDao()
    • Method Detail

      • findTitles

        public java.util.Collection<TitleModel> findTitles()
        Description copied from interface: TitleDao
        Finds all TitleModel in the system.
        Specified by:
        findTitles in interface TitleDao
        Returns:
        an empty collection if no title was found.
      • findTitleByCode

        public TitleModel findTitleByCode​(java.lang.String code)
        Description copied from interface: TitleDao
        Finds the title by the given code.
        Specified by:
        findTitleByCode in interface TitleDao
        Parameters:
        code - the code of the title (example dr.)
        Returns:
        null if no TitleModel by the given code was found.