Interface OCRTemplateDAO

  • All Superinterfaces:
    com.logicaldoc.core.PersistentObjectDAO<OCRTemplate>
    All Known Implementing Classes:
    HibernateOCRTemplateDAO

    public interface OCRTemplateDAO
    extends com.logicaldoc.core.PersistentObjectDAO<OCRTemplate>
    This class is a DAO-service for the OCR templates.
    Version:
    8.4.2
    Author:
    Marco Meschieri
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      OCRTemplate findByName​(String name, long tenantId)
      This method finds the ocr template by it's name(alternate key inside the tenant).
      List<OCRTemplate> findByTemplate​(long templateId)
      This method finds all the ocr templates assigned to the same template.
      • 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

      • findByTemplate

        List<OCRTemplate> findByTemplate​(long templateId)
                                  throws com.logicaldoc.core.PersistenceException
        This method finds all the ocr templates assigned to the same template.
        Parameters:
        templateId - ID of the template
        Returns:
        list of ocr templates
        Throws:
        com.logicaldoc.core.PersistenceException - error querying the database
      • findByName

        OCRTemplate 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 ocr template
        tenantId - ID of the owner tenant
        Returns:
        the template
        Throws:
        com.logicaldoc.core.PersistenceException - error querying the database