Package com.logicaldoc.robot
Class HibernateRobotHistoryDAO
java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<RobotHistory>
com.logicaldoc.core.history.HibernateHistoryDAO<RobotHistory>
com.logicaldoc.robot.HibernateRobotHistoryDAO
- All Implemented Interfaces:
- com.logicaldoc.core.PersistentObjectDAO<RobotHistory>,- RobotHistoryDAO
@Repository("robotHistoryDAO")
public class HibernateRobotHistoryDAO
extends com.logicaldoc.core.history.HibernateHistoryDAO<RobotHistory>
implements RobotHistoryDAO
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier and TypeMethodDescriptionvoidcleanOldHistories(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 class com.logicaldoc.core.history.HibernateHistoryDAOstoreMethods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAObulkUpdate, 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, setSessionFactoryMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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- 
findByRobotIdpublic List<RobotHistory> findByRobotId(long robotId) throws com.logicaldoc.core.PersistenceException Description copied from interface:RobotHistoryDAOThis method selects all histories of a given robot.- Specified by:
- findByRobotIdin interface- RobotHistoryDAO
- Parameters:
- robotId- identifier of the robot
- Returns:
- list of histories ordered by date asc
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
cleanOldHistoriespublic void cleanOldHistories(int ttl) Description copied from interface:RobotHistoryDAOThis method deletes all the AI history entries oldest than the given days from now. Ifttlis 0 or -1, the cancellation is not made.- Specified by:
- cleanOldHistoriesin interface- RobotHistoryDAO
- Parameters:
- ttl- The maximum number of days over which the history is considered old
 
 
-