Package com.logicaldoc.ai
Interface AIModelDAO<T extends AIModel<?,?>> 
- Type Parameters:
- T- Class of the implementation of a- AIModelthis 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 SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier and TypeMethodDescriptionbooleanexistsName(String name, long tenantId) Checks the existence of a model namefindAllModels(Long tenantId) Find all the modelsfindByName(String name, long tenantId) Finds the model by it's namegetModel(long modelId) Retrieves the model by the given IDRetrieves the model by the given namevoidstoreModel(AIModel<?, ?> model) Saves the model using the right concrete DAOMethods inherited from interface com.logicaldoc.core.PersistentObjectDAObulkUpdate, delete, delete, deleteAll, deleteAll, evict, evict, 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, queryForString, store
- 
Method Details- 
findByNameFinds 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
 
- 
existsNameChecks 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
 
- 
findAllModelsFind 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
 
- 
getModelRetrieves the model by the given ID- Parameters:
- modelId- identifier of the model
- Returns:
- the model
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
getModelRetrieves 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
 
- 
storeModelSaves the model using the right concrete DAO- Parameters:
- model- the model to be saved
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
 
-