Package com.logicaldoc.ocr
Class HibernateOCRHistoryDAO
java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<OCRHistory>
com.logicaldoc.core.history.HibernateHistoryDAO<OCRHistory>
com.logicaldoc.ocr.HibernateOCRHistoryDAO
- All Implemented Interfaces:
- com.logicaldoc.core.PersistentObjectDAO<OCRHistory>,- OCRHistoryDAO
@Repository("ocrHistoryDAO")
public class HibernateOCRHistoryDAO
extends com.logicaldoc.core.history.HibernateHistoryDAO<OCRHistory>
implements OCRHistoryDAO
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier and TypeMethodDescriptionvoidcleanOldHistories(int ttl) This method deletes all the OCR history entries oldest than the given days from now.voidsetFolderDAO(com.logicaldoc.core.folder.FolderDAO folderDAO) voidsetUserDAO(com.logicaldoc.core.security.user.UserDAO userDAO) voidstore(OCRHistory history) voidstore(OCRHistory history, com.logicaldoc.core.document.Document document) Stores a new historyMethods 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
- 
Method Details- 
cleanOldHistoriespublic void cleanOldHistories(int ttl) throws com.logicaldoc.core.PersistenceException Description copied from interface:OCRHistoryDAOThis method deletes all the OCR history entries oldest than the given days from now. Ifttlis 0 or -1, the cancellation is not made.- Specified by:
- cleanOldHistoriesin interface- OCRHistoryDAO
- Parameters:
- ttl- The maximum number of days over which the history is considered old
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
store- Specified by:
- storein interface- com.logicaldoc.core.PersistentObjectDAO<OCRHistory>
- Overrides:
- storein class- com.logicaldoc.core.history.HibernateHistoryDAO<OCRHistory>
- Throws:
- com.logicaldoc.core.PersistenceException
 
- 
storepublic void store(OCRHistory history, com.logicaldoc.core.document.Document document) throws com.logicaldoc.core.PersistenceException Description copied from interface:OCRHistoryDAOStores a new history- Specified by:
- storein interface- OCRHistoryDAO
- Parameters:
- history- the history to save
- document- the document the history points to
- Throws:
- com.logicaldoc.core.PersistenceException- An error in the database
 
- 
setFolderDAOpublic void setFolderDAO(com.logicaldoc.core.folder.FolderDAO folderDAO) 
- 
setUserDAOpublic void setUserDAO(com.logicaldoc.core.security.user.UserDAO userDAO) 
 
-