Interface OCRHistoryDAO

All Superinterfaces:
com.logicaldoc.core.PersistentObjectDAO<OCRHistory>
All Known Implementing Classes:
HibernateOCRHistoryDAO

public interface OCRHistoryDAO extends com.logicaldoc.core.PersistentObjectDAO<OCRHistory>
  • Field Summary Link icon

    Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO Link icon

    ENTITY
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    This method deletes all the OCR history entries oldest than the given days from now.
    void
    store(OCRHistory history, com.logicaldoc.core.document.Document document)
    Stores a new history

    Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO Link icon

    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 Link icon

    • store Link icon

      void store(OCRHistory history, com.logicaldoc.core.document.Document document) throws com.logicaldoc.core.PersistenceException
      Stores a new history
      Parameters:
      history - the history to save
      document - the document the history points to
      Throws:
      com.logicaldoc.core.PersistenceException - An error in the database
    • cleanOldHistories Link icon

      void cleanOldHistories(int ttl) throws com.logicaldoc.core.PersistenceException
      This method deletes all the OCR history entries oldest than the given days from now. If ttl is 0 or -1, the cancellation is not made.
      Parameters:
      ttl - The maximum number of days over which the history is considered old
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the database