Package org.compiere.model
Class ArchiveDBLOB
java.lang.Object
org.compiere.model.ArchiveDBLOB
- All Implemented Interfaces:
IArchiveStore
DB LOB implementation of
IArchiveStore-
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 archiveloadLOBDataAsStream(MArchive archive, MStorageProvider prov) Load binary content of archive as InputStreamvoidsave(MArchive archive, MStorageProvider prov, byte[] byteDatas) Save content of archivevoidsave(MArchive archive, MStorageProvider prov, InputStream inputStream) Save content of archive from InputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.compiere.model.IArchiveStore
getPresignedURL
-
Constructor Details
-
ArchiveDBLOB
public ArchiveDBLOB()
-
-
Method Details
-
loadLOBData
Description copied from interface:IArchiveStoreLoad binary content of archive- Specified by:
loadLOBDatain interfaceIArchiveStore- Returns:
- byte[] content
-
loadLOBDataAsStream
Description copied from interface:IArchiveStoreLoad binary content of archive as InputStream- Specified by:
loadLOBDataAsStreamin interfaceIArchiveStore- Returns:
- InputStream content, or null if no data
-
save
Description copied from interface:IArchiveStoreSave content of archive- Specified by:
savein interfaceIArchiveStorebyteDatas- byte[] content of archive
-
save
Description copied from interface:IArchiveStoreSave content of archive from InputStream- Specified by:
savein interfaceIArchiveStoreinputStream- InputStream 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
-