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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandelete(MImage image, MStorageProvider prov) Delete stored image contentvoidflush(MImage image, MStorageProvider prov) Flush buffer image content to destination storagebooleanbyte[]load(MImage image, MStorageProvider prov) Load image contentvoidsave(MImage image, MStorageProvider prov, byte[] inflatedData) Save image contentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.compiere.model.IImageStore
loadAsStream, save
-
Constructor Details
-
ImageDBStorageImpl
public ImageDBStorageImpl()
-
-
Method Details
-
load
Description copied from interface:IImageStoreLoad image content- Specified by:
loadin interfaceIImageStore- Returns:
- byte[] image content
-
save
Description copied from interface:IImageStoreSave image content- Specified by:
savein interfaceIImageStoreinflatedData- image content
-
delete
Description copied from interface:IImageStoreDelete stored image content- Specified by:
deletein interfaceIImageStore- Returns:
- true if deleted successfully
-
isPendingFlush
public boolean isPendingFlush()- Specified by:
isPendingFlushin interfaceIImageStore- Returns:
- true if image content is being buffered and pending flush to destination storage
-
flush
Description copied from interface:IImageStoreFlush buffer image content to destination storage- Specified by:
flushin interfaceIImageStore
-