Package com.logicaldoc.ai.sampler
Class HibernateSamplerDAO
java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<Sampler>
com.logicaldoc.ai.sampler.HibernateSamplerDAO
- All Implemented Interfaces:
- SamplerDAO,- com.logicaldoc.core.PersistentObjectDAO<Sampler>
@Repository("samplerDAO")
public class HibernateSamplerDAO
extends com.logicaldoc.core.HibernatePersistentObjectDAO<Sampler>
implements SamplerDAO
Hibernate implementation of 
SamplerDAO- Since:
- 9.2
- Author:
- Marco Meschieri - LogicalDOC
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete(long id, int code) findByName(String name, long tenantId) Finds the sampler by it's namefindByType(Class<S> type, long tenantId) Finds the samplers by typevoidinitialize(Sampler entity) voidMethods 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- 
findByNamepublic Sampler findByName(String name, long tenantId) throws com.logicaldoc.core.PersistenceException Description copied from interface:SamplerDAOFinds the sampler by it's name- Specified by:
- findByNamein interface- SamplerDAO
- Parameters:
- name- The name
- tenantId- Identifier of the tenant
- Returns:
- The found sampler
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
initialize
- 
store
- 
deletepublic void delete(long id, int code) throws com.logicaldoc.core.PersistenceException 
- 
findByTypepublic <S extends Sampler> List<S> findByType(Class<S> type, long tenantId) throws com.logicaldoc.core.PersistenceException Description copied from interface:SamplerDAOFinds the samplers by type- Specified by:
- findByTypein interface- SamplerDAO
- Type Parameters:
- S- what sampler type to retrieve
- Parameters:
- type- Type of sampler
- tenantId- Identifier of the tenant
- Returns:
- The list of samplers of same type ordered by name
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
 
-