Package org.compiere.model
Class ArchiveDB
java.lang.Object
org.compiere.model.ArchiveDB
- All Implemented Interfaces:
IArchiveStore
DB backed implementation of
IArchiveStore- Author:
- juliana
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandeleteArchive(MArchive archive, MStorageProvider prov) Delete stored archive contentvoidflush(MArchive archive, MStorageProvider prov) Flush buffer archive content to destination storagebooleanbyte[]loadLOBData(MArchive archive, MStorageProvider prov) Load binary content of archivevoidsave(MArchive archive, MStorageProvider prov, byte[] inflatedData) Save content of archiveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.compiere.model.IArchiveStore
loadLOBDataAsStream, save
-
Constructor Details
-
ArchiveDB
public ArchiveDB()
-
-
Method Details
-
loadLOBData
Description copied from interface:IArchiveStoreLoad binary content of archive- Specified by:
loadLOBDatain interfaceIArchiveStore- Returns:
- byte[] content
-
save
Description copied from interface:IArchiveStoreSave content of archive- Specified by:
savein interfaceIArchiveStoreinflatedData- byte[] content of archive
-
deleteArchive
Description copied from interface:IArchiveStoreDelete stored archive content- Specified by:
deleteArchivein interfaceIArchiveStore- Returns:
- true if successfully deleted
-
isPendingFlush
public boolean isPendingFlush()- Specified by:
isPendingFlushin interfaceIArchiveStore- Returns:
- true if archive content is being buffered and pending flush to destination storage
-
flush
Description copied from interface:IArchiveStoreFlush buffer archive content to destination storage- Specified by:
flushin interfaceIArchiveStore
-