Interface AIModelDAO<T extends AIModel<?,?>>

Type Parameters:
T - Class of the implementation of a AIModel this DAO handles
All Superinterfaces:
com.logicaldoc.core.PersistentObjectDAO<T>
All Known Subinterfaces:
ClassifierDAO, NeuralNetworkDAO, TokensDetectorDAO
All Known Implementing Classes:
HibernateAIModelDAO, HibernateClassifierDAO, HibernateNeuralNetworkDAO, HibernateTokensDetectorDAO

public interface AIModelDAO<T extends AIModel<?,?>> extends com.logicaldoc.core.PersistentObjectDAO<T>
This interface is a DAO-service for AIModels.
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
    boolean
    existsName(String name, long tenantId)
    Checks the existence of a model name
    findAllModels(Long tenantId)
    Find all the models
    findByName(String name, long tenantId)
    Finds the model by it's name
    getModel(long modelId)
    Retrieves the model by the given ID
    getModel(String name, long tenantId)
    Retrieves the model by the given name

    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

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

      boolean existsName(String name, long tenantId) throws com.logicaldoc.core.PersistenceException
      Checks the existence of a model name
      Parameters:
      name - The name
      tenantId - Identifier of the tenant
      Returns:
      true if the name exists
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the database
    • findAllModels

      List<AIModel> findAllModels(Long tenantId) throws com.logicaldoc.core.PersistenceException
      Find all the models
      Parameters:
      tenantId - optional identifier of the tenant to restrict the search to
      Returns:
      List of models ordered by name
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the database
    • getModel

      AIModel getModel(long modelId) throws com.logicaldoc.core.PersistenceException
      Retrieves the model by the given ID
      Parameters:
      modelId - identifier of the model
      Returns:
      the model
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the database
    • getModel

      AIModel getModel(String name, long tenantId) throws com.logicaldoc.core.PersistenceException
      Retrieves the model by the given name
      Parameters:
      name - name of the model
      tenantId - identifier of the tenant
      Returns:
      the model
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the database