Package com.logicaldoc.ai
Interface AIModelDAO<T extends AIModel<?,?>>
- Type Parameters:
T
- Class of the implementation of aAIModel
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
AIModel
s.- Version:
- 9.2
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsName
(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 nameMethods 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
Finds the model by it's name- Parameters:
name
- The nametenantId
- Identifier of the tenant- Returns:
- The found model
- Throws:
com.logicaldoc.core.PersistenceException
- Error in the database
-
existsName
Checks the existence of a model name- Parameters:
name
- The nametenantId
- Identifier of the tenant- Returns:
- true if the name exists
- Throws:
com.logicaldoc.core.PersistenceException
- Error in the database
-
findAllModels
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
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
Retrieves the model by the given name- Parameters:
name
- name of the modeltenantId
- identifier of the tenant- Returns:
- the model
- Throws:
com.logicaldoc.core.PersistenceException
- Error in the database
-