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 of
OCRTemplateDAO- Since:
- 8.4.2
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(long templateId, int code) findByName(String name, long tenantId) This method finds the ocr template by it's name(alternate key inside the tenant).findByTemplate(long templateId) This method finds all the ocr templates assigned to the same template.voidinitialize(OCRTemplate template) voidstore(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, getDatabaseMetadata, getDbms, getSessionFactory, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForRowSet, queryForString, setSessionFactoryMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForRowSet, queryForString
-
Method Details
-
findByTemplate
public List<OCRTemplate> findByTemplate(long templateId) throws com.logicaldoc.core.PersistenceException Description copied from interface:OCRTemplateDAOThis method finds all the ocr templates assigned to the same template.- Specified by:
findByTemplatein 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:OCRTemplateDAOThis method finds the ocr template by it's name(alternate key inside the tenant).- Specified by:
findByNamein 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
- Specified by:
initializein interfacecom.logicaldoc.core.PersistentObjectDAO<OCRTemplate>- Overrides:
initializein classcom.logicaldoc.core.HibernatePersistentObjectDAO<OCRTemplate>
-
delete
public void delete(long templateId, int code) throws com.logicaldoc.core.PersistenceException - Specified by:
deletein interfacecom.logicaldoc.core.PersistentObjectDAO<OCRTemplate>- Overrides:
deletein classcom.logicaldoc.core.HibernatePersistentObjectDAO<OCRTemplate>- Throws:
com.logicaldoc.core.PersistenceException
-
store
- Specified by:
storein interfacecom.logicaldoc.core.PersistentObjectDAO<OCRTemplate>- Overrides:
storein classcom.logicaldoc.core.HibernatePersistentObjectDAO<OCRTemplate>- Throws:
com.logicaldoc.core.PersistenceException
-