Package org.compiere.model
Class AttachmentDBLOB
java.lang.Object
org.compiere.model.AttachmentDBLOB
- All Implemented Interfaces:
IAttachmentStore
DB LOB implementation of
IAttachmentStore-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandelete(MAttachment attach, MStorageProvider prov) Delete stored attachment contentbooleandeleteEntry(MAttachment attach, MStorageProvider provider, int index) Delete attachment content by indexbooleanloadLOBData(MAttachment attach, MStorageProvider prov) Load binary attachment contentbooleansave(MAttachment attach, MStorageProvider prov) Save attachment contentbooleansave(MAttachment attach, MStorageProvider prov, boolean beforeSave) Save attachment content
-
Constructor Details
-
AttachmentDBLOB
public AttachmentDBLOB()
-
-
Method Details
-
loadLOBData
Description copied from interface:IAttachmentStoreLoad binary attachment content- Specified by:
loadLOBDatain interfaceIAttachmentStore- Returns:
- true if successfully loaded
-
save
Description copied from interface:IAttachmentStoreSave attachment content- Specified by:
savein interfaceIAttachmentStore- Returns:
- true if successfully save
-
save
Description copied from interface:IAttachmentStoreSave attachment content- Specified by:
savein interfaceIAttachmentStorebeforeSave- true if call from beforeSave of attachment record, false if call from afterSave- Returns:
- true if success, false otherwise
-
delete
Description copied from interface:IAttachmentStoreDelete stored attachment content- Specified by:
deletein interfaceIAttachmentStore- Returns:
- true if successfully deleted
-
deleteEntry
Description copied from interface:IAttachmentStoreDelete attachment content by index- Specified by:
deleteEntryin interfaceIAttachmentStoreindex- index of content to delete (for e.g zip entry #2 of a zip file)- Returns:
- true if successfully deleted
-