Package com.logicaldoc.zonalocr
Class HibernateOCRTemplateDAO
- java.lang.Object
-
- com.logicaldoc.core.HibernatePersistentObjectDAO<OCRTemplate>
-
- com.logicaldoc.zonalocr.HibernateOCRTemplateDAO
-
- All Implemented Interfaces:
com.logicaldoc.core.PersistentObjectDAO<OCRTemplate>
,OCRTemplateDAO
public class HibernateOCRTemplateDAO extends com.logicaldoc.core.HibernatePersistentObjectDAO<OCRTemplate> implements OCRTemplateDAO
Hibernate implementation ofOCRTemplateDAO
- Since:
- 8.4.2
- Author:
- Marco Meschieri - LogicalDOC
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
delete(long templateId, int code)
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.void
initialize(OCRTemplate template)
boolean
store(OCRTemplate 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 class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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<OCRTemplate> findByTemplate(long templateId) throws com.logicaldoc.core.PersistenceException
Description copied from interface:OCRTemplateDAO
This method finds all the ocr templates assigned to the same template.- Specified by:
findByTemplate
in interfaceOCRTemplateDAO
- Parameters:
templateId
- ID of the template- Returns:
- list of ocr templates
- Throws:
com.logicaldoc.core.PersistenceException
- error querying the database
-
findByName
public OCRTemplate findByName(String name, long tenantId) throws com.logicaldoc.core.PersistenceException
Description copied from interface:OCRTemplateDAO
This method finds the ocr template by it's name(alternate key inside the tenant).- Specified by:
findByName
in interfaceOCRTemplateDAO
- Parameters:
name
- the name of the ocr templatetenantId
- ID of the owner tenant- Returns:
- the template
- Throws:
com.logicaldoc.core.PersistenceException
- error querying the database
-
initialize
public void initialize(OCRTemplate template)
- Specified by:
initialize
in interfacecom.logicaldoc.core.PersistentObjectDAO<OCRTemplate>
- Overrides:
initialize
in classcom.logicaldoc.core.HibernatePersistentObjectDAO<OCRTemplate>
-
delete
public boolean delete(long templateId, int code) throws com.logicaldoc.core.PersistenceException
- Specified by:
delete
in interfacecom.logicaldoc.core.PersistentObjectDAO<OCRTemplate>
- Overrides:
delete
in classcom.logicaldoc.core.HibernatePersistentObjectDAO<OCRTemplate>
- Throws:
com.logicaldoc.core.PersistenceException
-
store
public boolean store(OCRTemplate template) throws com.logicaldoc.core.PersistenceException
- Specified by:
store
in interfacecom.logicaldoc.core.PersistentObjectDAO<OCRTemplate>
- Overrides:
store
in classcom.logicaldoc.core.HibernatePersistentObjectDAO<OCRTemplate>
- Throws:
com.logicaldoc.core.PersistenceException
-
-