Package com.logicaldoc.barcode
Class HibernateBarcodeTemplateDAO
java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<BarcodeTemplate>
com.logicaldoc.barcode.HibernateBarcodeTemplateDAO
- All Implemented Interfaces:
- BarcodeTemplateDAO,- com.logicaldoc.core.PersistentObjectDAO<BarcodeTemplate>
@Repository("barcodeTemplateDAO")
public class HibernateBarcodeTemplateDAO
extends com.logicaldoc.core.HibernatePersistentObjectDAO<BarcodeTemplate>
implements BarcodeTemplateDAO
Hibernate implementation of 
BarcodeTemplateDAO- Since:
- 8.4.2
- Author:
- Marco Meschieri - LogicalDOC
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier 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, Long tenantId) This method finds all the barcode templates assigned to the same template.voidinitialize(BarcodeTemplate template) voidstore(BarcodeTemplate template) Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAObulkUpdate, delete, deleteAll, deleteAll, evict, evict, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, queryForString, setSessionFactoryMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.logicaldoc.core.PersistentObjectDAObulkUpdate, delete, deleteAll, deleteAll, evict, evict, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, queryForString
- 
Method Details- 
findByTemplatepublic List<BarcodeTemplate> findByTemplate(Long templateId, Long tenantId) throws com.logicaldoc.core.PersistenceException Description copied from interface:BarcodeTemplateDAOThis method finds all the barcode templates assigned to the same template.- Specified by:
- findByTemplatein 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
 
- 
findByNamepublic BarcodeTemplate findByName(String name, long tenantId) throws com.logicaldoc.core.PersistenceException Description copied from interface:BarcodeTemplateDAOThis method finds the ocr template by it's name(alternate key inside the tenant).- Specified by:
- findByNamein 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- Specified by:
- initializein interface- com.logicaldoc.core.PersistentObjectDAO<BarcodeTemplate>
- Overrides:
- initializein class- com.logicaldoc.core.HibernatePersistentObjectDAO<BarcodeTemplate>
 
- 
deletepublic void delete(long templateId, int code) throws com.logicaldoc.core.PersistenceException - Specified by:
- deletein interface- com.logicaldoc.core.PersistentObjectDAO<BarcodeTemplate>
- Overrides:
- deletein class- com.logicaldoc.core.HibernatePersistentObjectDAO<BarcodeTemplate>
- Throws:
- com.logicaldoc.core.PersistenceException
 
- 
store- Specified by:
- storein interface- com.logicaldoc.core.PersistentObjectDAO<BarcodeTemplate>
- Overrides:
- storein class- com.logicaldoc.core.HibernatePersistentObjectDAO<BarcodeTemplate>
- Throws:
- com.logicaldoc.core.PersistenceException
 
 
-