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 TypeMethodDescriptionboolean
deleteArchive
(MArchive archive, MStorageProvider prov) Delete stored archive contentvoid
flush
(MArchive archive, MStorageProvider prov) Flush buffer archive content to destination storageboolean
byte[]
loadLOBData
(MArchive archive, MStorageProvider prov) Load binary content of archiveloadLOBDataAsStream
(MArchive archive, MStorageProvider prov) Load binary content of archive as InputStreamvoid
save
(MArchive archive, MStorageProvider prov, byte[] byteDatas) Save content of archivevoid
save
(MArchive archive, MStorageProvider prov, InputStream inputStream) Save content of archive from InputStream
-
Constructor Details
-
ArchiveDBLOB
public ArchiveDBLOB()
-
-
Method Details
-
loadLOBData
Description copied from interface:IArchiveStore
Load binary content of archive- Specified by:
loadLOBData
in interfaceIArchiveStore
- Returns:
- byte[] content
-
loadLOBDataAsStream
Description copied from interface:IArchiveStore
Load binary content of archive as InputStream- Specified by:
loadLOBDataAsStream
in interfaceIArchiveStore
- Returns:
- InputStream content, or null if no data
-
save
Description copied from interface:IArchiveStore
Save content of archive- Specified by:
save
in interfaceIArchiveStore
byteDatas
- byte[] content of archive
-
save
Description copied from interface:IArchiveStore
Save content of archive from InputStream- Specified by:
save
in interfaceIArchiveStore
inputStream
- InputStream content of archive
-
deleteArchive
Description copied from interface:IArchiveStore
Delete stored archive content- Specified by:
deleteArchive
in interfaceIArchiveStore
- Returns:
- true if successfully deleted
-
isPendingFlush
public boolean isPendingFlush()- Specified by:
isPendingFlush
in interfaceIArchiveStore
- Returns:
- true if archive content is being buffered and pending flush to destination storage
-
flush
Description copied from interface:IArchiveStore
Flush buffer archive content to destination storage- Specified by:
flush
in interfaceIArchiveStore
-