Interface BarcodeTemplateDAO

  • All Superinterfaces:
    com.logicaldoc.core.PersistentObjectDAO<BarcodeTemplate>
    All Known Implementing Classes:
    HibernateBarcodeTemplateDAO

    public interface BarcodeTemplateDAO
    extends com.logicaldoc.core.PersistentObjectDAO<BarcodeTemplate>
    This class is a DAO-service for the Barcode templates.
    Version:
    8.4.2
    Author:
    Marco Meschieri
    • Field Summary

      • Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO

        ENTITY
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      BarcodeTemplate findByName​(String name, long tenantId)
      This method finds the ocr template by it's name(alternate key inside the tenant).
      List<BarcodeTemplate> findByTemplate​(Long templateId, Long tenantId)
      This method finds all the barcode templates assigned to the same template.
      • Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO

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

      • findByTemplate

        List<BarcodeTemplate> findByTemplate​(Long templateId,
                                             Long tenantId)
                                      throws com.logicaldoc.core.PersistenceException
        This method finds all the barcode templates assigned to the same template.
        Parameters:
        templateId - ID of the template (may be null in case you specify the tenantId)
        tenantId - ID of the tenant in which to search (may be null in case you specify templateId)
        Returns:
        list of barcode templates
        Throws:
        com.logicaldoc.core.PersistenceException - error querying the database
      • findByName

        BarcodeTemplate findByName​(String name,
                                   long tenantId)
                            throws com.logicaldoc.core.PersistenceException
        This method finds the ocr template by it's name(alternate key inside the tenant).
        Parameters:
        name - the name of the barcode template
        tenantId - ID of the owner tenant
        Returns:
        the template
        Throws:
        com.logicaldoc.core.PersistenceException - error querying the database