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>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cleanOldHistories(int ttl)
This method deletes all the import folder history entries oldest than the given days from now.List<ImportFolderHistory>
findByImportFolderId(long importFolderId, String event)
This method selects all histories of a given import folder.void
store(ImportFolderHistory history, com.logicaldoc.core.document.Document document)
Stores a new history-
Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForString, store
-
-
-
-
Method Detail
-
findByImportFolderId
List<ImportFolderHistory> findByImportFolderId(long importFolderId, String event)
This method selects all histories of a given import folder.- Parameters:
importFolderId
- Identifier of the import folderevent
- Optional selector of the event- Returns:
- list of histories ordered by last modified date
-
cleanOldHistories
void cleanOldHistories(int ttl)
This method deletes all the import folder history entries oldest than the given days from now. Ifttl
is 0 or -1, the cancellation is not made.- Parameters:
ttl
- The maximum number of days over which the history is considered old
-
store
void store(ImportFolderHistory history, com.logicaldoc.core.document.Document document) throws com.logicaldoc.core.PersistenceException
Stores a new history- Parameters:
history
- the history to savedocument
- the document the history points to- Throws:
com.logicaldoc.core.PersistenceException
- An error in the database
-
-