Package org.compiere.model
Class ImageDBStorageImpl
java.lang.Object
org.compiere.model.ImageDBStorageImpl
- All Implemented Interfaces:
IImageStore
DB backed implementation of
IImageStore
- Author:
- hengsin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
delete
(MImage image, MStorageProvider prov) Delete stored image contentvoid
flush
(MImage image, MStorageProvider prov) Flush buffer image content to destination storageboolean
byte[]
load
(MImage image, MStorageProvider prov) Load image contentvoid
save
(MImage image, MStorageProvider prov, byte[] inflatedData) Save image content
-
Constructor Details
-
ImageDBStorageImpl
public ImageDBStorageImpl()
-
-
Method Details
-
load
Description copied from interface:IImageStore
Load image content- Specified by:
load
in interfaceIImageStore
- Returns:
- byte[] image content
-
save
Description copied from interface:IImageStore
Save image content- Specified by:
save
in interfaceIImageStore
inflatedData
- image content
-
delete
Description copied from interface:IImageStore
Delete stored image content- Specified by:
delete
in interfaceIImageStore
- Returns:
- true if deleted successfully
-
isPendingFlush
public boolean isPendingFlush()- Specified by:
isPendingFlush
in interfaceIImageStore
- Returns:
- true if image content is being buffered and pending flush to destination storage
-
flush
Description copied from interface:IImageStore
Flush buffer image content to destination storage- Specified by:
flush
in interfaceIImageStore
-