Package com.logicaldoc.zonalocr
Interface OCRTemplateDAO
- All Superinterfaces:
com.logicaldoc.core.PersistentObjectDAO<OCRTemplate>
- All Known Implementing Classes:
HibernateOCRTemplateDAO
This class is a DAO-service for the OCR templates.
- Version:
- 8.4.2
- Author:
- Marco Meschieri
-
Field Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY -
Method Summary
Modifier and TypeMethodDescriptionfindByName(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.static OCRTemplateDAOget()Gets the object available in the application contextMethods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, delete, delete, deleteAll, deleteAll, evict, evict, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, initialize, isMariaDB, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, queryForString, store
-
Method Details
-
get
Gets the object available in the application context- Returns:
- the instance of this object in the application context
-
findByTemplate
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
This method finds the ocr template by it's name(alternate key inside the tenant).- 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
-