Package com.logicaldoc.robot
Interface RobotHistoryDAO
- All Superinterfaces:
com.logicaldoc.core.PersistentObjectDAO<RobotHistory>
- All Known Implementing Classes:
HibernateRobotHistoryDAO
DAO for
RobotHistory
handling.- Since:
- 9.2
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanOldHistories
(int ttl) This method deletes all the AI history entries oldest than the given days from now.findByRobotId
(long robotId) This method selects all histories of a given robot.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
-
findByRobotId
This method selects all histories of a given robot.- Parameters:
robotId
- identifier of the robot- Returns:
- list of histories ordered by date asc
- Throws:
com.logicaldoc.core.PersistenceException
- Error in the database
-
cleanOldHistories
void cleanOldHistories(int ttl) This method deletes all the AI history entries oldest than the given days from now. Ifttl
is 0 or -1, the cancellation is not made.- Parameters:
ttl
- The maximum number of days over which the history is considered old
-