Package com.logicaldoc.importfolder
Interface ImportFolderHistoryDAO
- All Superinterfaces:
- com.logicaldoc.core.PersistentObjectDAO<ImportFolderHistory>
- All Known Implementing Classes:
- HibernateImportFolderHistoryDAO
public interface ImportFolderHistoryDAO
extends com.logicaldoc.core.PersistentObjectDAO<ImportFolderHistory>
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier and TypeMethodDescriptionvoidcleanOldHistories(int ttl) This method deletes all the import folder history entries oldest than the given days from now.findByImportFolderId(long importFolderId, String event) This method selects all histories of a given import folder.voidstore(ImportFolderHistory history, com.logicaldoc.core.document.Document document) Stores a new historyMethods 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- 
findByImportFolderIdList<ImportFolderHistory> findByImportFolderId(long importFolderId, String event) throws com.logicaldoc.core.PersistenceException This method selects all histories of a given import folder.- Parameters:
- importFolderId- Identifier of the import folder
- event- Optional selector of the event
- Returns:
- list of histories ordered by last modified date
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
cleanOldHistoriesvoid cleanOldHistories(int ttl) throws com.logicaldoc.core.PersistenceException This method deletes all the import folder history entries oldest than the given days from now. Ifttlis 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
 
- 
storevoid store(ImportFolderHistory 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
 
 
-