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 TypeMethodDescriptionboolean
delete
(MAttachment attach, MStorageProvider prov) Delete stored attachment contentboolean
deleteEntry
(MAttachment attach, MStorageProvider provider, int index) Delete attachment content by indexboolean
loadLOBData
(MAttachment attach, MStorageProvider prov) Load binary attachment contentboolean
save
(MAttachment attach, MStorageProvider prov) Save attachment contentboolean
save
(MAttachment attach, MStorageProvider prov, boolean beforeSave) Save attachment content
-
Constructor Details
-
AttachmentDBLOB
public AttachmentDBLOB()
-
-
Method Details
-
loadLOBData
Description copied from interface:IAttachmentStore
Load binary attachment content- Specified by:
loadLOBData
in interfaceIAttachmentStore
- Returns:
- true if successfully loaded
-
save
Description copied from interface:IAttachmentStore
Save attachment content- Specified by:
save
in interfaceIAttachmentStore
- Returns:
- true if successfully save
-
save
Description copied from interface:IAttachmentStore
Save attachment content- Specified by:
save
in interfaceIAttachmentStore
beforeSave
- true if call from beforeSave of attachment record, false if call from afterSave- Returns:
- true if success, false otherwise
-
delete
Description copied from interface:IAttachmentStore
Delete stored attachment content- Specified by:
delete
in interfaceIAttachmentStore
- Returns:
- true if successfully deleted
-
deleteEntry
Description copied from interface:IAttachmentStore
Delete attachment content by index- Specified by:
deleteEntry
in interfaceIAttachmentStore
index
- index of content to delete (for e.g zip entry #2 of a zip file)- Returns:
- true if successfully deleted
-