Package org.compiere.model
Class AttachmentDBSystem
java.lang.Object
org.compiere.model.AttachmentDBSystem
- All Implemented Interfaces:
IAttachmentStore
DB backed implementation of
IAttachmentStore-
Field Summary
Fields -
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 contentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.compiere.model.IAttachmentStore
save
-
Field Details
-
ZIP
Indicator for zip data- See Also:
-
-
Constructor Details
-
AttachmentDBSystem
public AttachmentDBSystem()
-
-
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
-
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
-