Class HibernateBarcodeTemplateDAO

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean delete​(long templateId, int code)  
      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.
      void initialize​(BarcodeTemplate template)  
      boolean store​(BarcodeTemplate template)  
      • Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO

        bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, getSessionFactory, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString, setSessionFactory
      • Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO

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

      • findByTemplate

        public List<BarcodeTemplate> findByTemplate​(Long templateId,
                                                    Long tenantId)
                                             throws com.logicaldoc.core.PersistenceException
        Description copied from interface: BarcodeTemplateDAO
        This method finds all the barcode templates assigned to the same template.
        Specified by:
        findByTemplate in interface BarcodeTemplateDAO
        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

        public BarcodeTemplate findByName​(String name,
                                          long tenantId)
                                   throws com.logicaldoc.core.PersistenceException
        Description copied from interface: BarcodeTemplateDAO
        This method finds the ocr template by it's name(alternate key inside the tenant).
        Specified by:
        findByName in interface BarcodeTemplateDAO
        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
      • initialize

        public void initialize​(BarcodeTemplate template)
        Specified by:
        initialize in interface com.logicaldoc.core.PersistentObjectDAO<BarcodeTemplate>
        Overrides:
        initialize in class com.logicaldoc.core.HibernatePersistentObjectDAO<BarcodeTemplate>
      • delete

        public boolean delete​(long templateId,
                              int code)
                       throws com.logicaldoc.core.PersistenceException
        Specified by:
        delete in interface com.logicaldoc.core.PersistentObjectDAO<BarcodeTemplate>
        Overrides:
        delete in class com.logicaldoc.core.HibernatePersistentObjectDAO<BarcodeTemplate>
        Throws:
        com.logicaldoc.core.PersistenceException
      • store

        public boolean store​(BarcodeTemplate template)
                      throws com.logicaldoc.core.PersistenceException
        Specified by:
        store in interface com.logicaldoc.core.PersistentObjectDAO<BarcodeTemplate>
        Overrides:
        store in class com.logicaldoc.core.HibernatePersistentObjectDAO<BarcodeTemplate>
        Throws:
        com.logicaldoc.core.PersistenceException