public interface ArchiveService
| Modifier and Type | Method and Description |
|---|---|
int |
deleteFromQuery(java.lang.String queryName,
java.util.Map<java.lang.String,java.lang.Object> parameters) |
ReadPersistenceService |
getDefinitiveArchiveReadPersistenceService()
Get the ReadPersistenceService corresponding to the definitive archive
|
boolean |
isArchivable(java.lang.Class<? extends PersistentObject> sourceObjectClass) |
void |
recordDelete(DeleteRecord record)
Remove the given entity from both sliding archive (if present) and the right archive level (if present)
This operation should normally to be used.
|
void |
recordInsert(long time,
ArchiveInsertRecord record)
Archive the given entity in sliding archive if relevant and in the appropriate definitive archive
|
void |
recordInserts(long time,
ArchiveInsertRecord... records)
Archive the given entities in the definitive archive
|
void recordInsert(long time,
ArchiveInsertRecord record)
throws SRecorderException
time - The archive daterecord - Archive insert record containing the entity to be archivedSRecorderExceptionvoid recordInserts(long time,
ArchiveInsertRecord... records)
throws SRecorderException
time - the time of archivingrecords - Archive inserts record containing the entity to be archivedSRecorderException - in case of a write errorvoid recordDelete(DeleteRecord record) throws SRecorderException
record - The delete record containing archived entity to be deletedSRecorderExceptionReadPersistenceService getDefinitiveArchiveReadPersistenceService()
boolean isArchivable(java.lang.Class<? extends PersistentObject> sourceObjectClass)
sourceObjectClass - Persistent object to be judged achievable or notint deleteFromQuery(java.lang.String queryName,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws SRecorderException
SRecorderException