Interface StampDAO

  • All Superinterfaces:
    com.logicaldoc.core.PersistentObjectDAO<Stamp>
    All Known Implementing Classes:
    HibernateStampDAO

    public interface StampDAO
    extends com.logicaldoc.core.PersistentObjectDAO<Stamp>
    DAO for Stamp handling.
    Author:
    Marco Meschieri - LogicalDOC
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Stamp findByName​(String name, long tenantId)
      Finds the stamp with the given name
      Stamp findByNameAndUser​(String name, long userId)
      Finds the stamp with the given name and user
      List<Stamp> findByUser​(long userId, boolean enabledOnly)
      Finds the stamps for the given user
      • Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO

        bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString, store
    • Method Detail

      • findByName

        Stamp findByName​(String name,
                         long tenantId)
        Finds the stamp with the given name
        Parameters:
        name - name of the stamp
        tenantId - identifier of the tenant
        Returns:
        the found stamp
      • findByNameAndUser

        Stamp findByNameAndUser​(String name,
                                long userId)
                         throws com.logicaldoc.core.PersistenceException
        Finds the stamp with the given name and user
        Parameters:
        name - name of the stamp
        userId - identifier of the user
        Returns:
        the found stamp
        Throws:
        com.logicaldoc.core.PersistenceException - error in the database
      • findByUser

        List<Stamp> findByUser​(long userId,
                               boolean enabledOnly)
        Finds the stamps for the given user
        Parameters:
        userId - identifier of the user
        enabledOnly - if just the enabled stamps must be searched
        Returns:
        list of stamps