Interface SamplerDAO

All Superinterfaces:
com.logicaldoc.core.PersistentObjectDAO<Sampler>
All Known Implementing Classes:
HibernateSamplerDAO

public interface SamplerDAO extends com.logicaldoc.core.PersistentObjectDAO<Sampler>
This interface is a DAO-service for Samplers
Version:
9.2
Author:
Marco Meschieri - LogicalDOC
  • Field Summary

    Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO

    ENTITY
  • Method Summary

    Modifier and Type
    Method
    Description
    findByName(String name, long tenantId)
    Finds the sampler by it's name
    <S extends Sampler>
    List<S>
    findByType(Class<S> type, long tenantId)
    Finds the samplers by type

    Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO

    bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, store
  • Method Details

    • findByName

      Sampler findByName(String name, long tenantId) throws com.logicaldoc.core.PersistenceException
      Finds the sampler by it's name
      Parameters:
      name - The name
      tenantId - Identifier of the tenant
      Returns:
      The found sampler
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the database
    • findByType

      <S extends Sampler> List<S> findByType(Class<S> type, long tenantId) throws com.logicaldoc.core.PersistenceException
      Finds the samplers by type
      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