Package org.compiere.model
Interface IAttachmentStore
- All Known Implementing Classes:
AttachmentDBSystem
,AttachmentFileSystem
public interface IAttachmentStore
Store provider interface for storage of attachment content
-
Method Summary
Modifier and TypeMethodDescriptionboolean
delete
(MAttachment attach, MStorageProvider prov) Delete stored attachment contentboolean
deleteEntry
(MAttachment mAttachment, 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
-
Method Details
-
loadLOBData
Load binary attachment content- Parameters:
attach
-prov
-- Returns:
- true if successfully loaded
-
save
Save attachment content- Parameters:
attach
-prov
-- Returns:
- true if successfully save
-
delete
Delete stored attachment content- Parameters:
attach
-prov
-- Returns:
- true if successfully deleted
-
deleteEntry
Delete attachment content by index- Parameters:
mAttachment
-provider
-index
- index of content to delete (for e.g zip entry #2 of a zip file)- Returns:
- true if successfully deleted
-