Package org.compiere.model
Class AttachmentDBSystem
java.lang.Object
org.compiere.model.AttachmentDBSystem
- All Implemented Interfaces:
IAttachmentStore
DB backed implementation of
IAttachmentStore
-
Field Summary
-
Constructor Summary
-
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 content
-
Field Details
-
ZIP
Indicator for zip data- See Also:
-
-
Constructor Details
-
AttachmentDBSystem
public AttachmentDBSystem()
-
-
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
-
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
-