Inherited by _ERDatabaseAttachment, _ERFileAttachment, and _ERS3Attachment.

Public Member Functions | |
| void | didDelete (EOEditingContext ec) |
| void | didInsert () |
| ERAttachment () | |
| ERMimeType | erMimeType () |
| String | extension () |
| String | fileName () |
Static Public Member Functions | |
| static ERAttachment | fetchRequiredAttachmentWithWebPath (EOEditingContext editingContext, String webPath) |
Private Member Functions | |
| boolean | isInNestedEditingContext () |
Static Private Attributes | |
| static Logger | log = Logger.getLogger(ERAttachment.class) |
| ERAttachment | ( | ) |
| void didDelete | ( | EOEditingContext | ec | ) | [virtual] |
Called on the object after is has been deleted. The editing context is passed to the object since by this point the editingContext of the object is null. You should check if the ec is a child context when doing something here that can't be undone.
| ec | editing context that used to be associated with the object. |
Reimplemented from ERXGenericRecord.
| void didInsert | ( | ) | [virtual] |
Called on the object after is has successfully been inserted into the database.
Reimplemented from ERXGenericRecord.
Reimplemented in ERS3Attachment.
| ERMimeType erMimeType | ( | ) |
Returns the ERMimeType that corresponds to the mimeType.
| String extension | ( | ) |
Returns the file extension of this attachment, first checking the mime type, then returning the actual extension.
| static ERAttachment fetchRequiredAttachmentWithWebPath | ( | EOEditingContext | editingContext, | |
| String | webPath | |||
| ) | [static] |
Fetches the required attachment associated with the given web path.
| editingContext | the editing context to load in | |
| webPath | the web path of the attachment |
| NoSuchElementException | if there is no attachment with the given web path |
| String fileName | ( | ) |
Returns the file name portion of the webPath.
| boolean isInNestedEditingContext | ( | ) | [private] |
Reimplemented in ERS3Attachment.
Logger log = Logger.getLogger(ERAttachment.class) [static, private] |
general logging support
Implements ERXEnterpriseObject.
Reimplemented in ERDatabaseAttachment, ERFileAttachment, and ERS3Attachment.
1.5.8