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 Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY -
Method Summary
Modifier 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.HibernatePersistentObjectDAO
bulkUpdate, 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.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, 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
-
cleanOldHistories
public 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 interfaceOCRHistoryDAO- 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 interfacecom.logicaldoc.core.PersistentObjectDAO<OCRHistory>- Overrides:
storein classcom.logicaldoc.core.history.HibernateHistoryDAO<OCRHistory>- Throws:
com.logicaldoc.core.PersistenceException
-
store
public 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 interfaceOCRHistoryDAO- Parameters:
history- the history to savedocument- the document the history points to- Throws:
com.logicaldoc.core.PersistenceException- An error in the database
-
setFolderDAO
public void setFolderDAO(com.logicaldoc.core.folder.FolderDAO folderDAO) -
setUserDAO
public void setUserDAO(com.logicaldoc.core.security.user.UserDAO userDAO)
-