|
Project Wonder 5.0.0.8660 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webobjects.eocontrol.EOCustomObject
com.webobjects.eocontrol.EOGenericRecord
er.extensions.eof.ERXGenericRecord
er.attachment.model._ERAttachment
er.attachment.model.ERAttachment
public abstract class ERAttachment
ERAttachment is the superclass of all attachment types. An attachment object encapsulates a small amount of metadata and the information necessary to construct a url or a stream onto the attachment data.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class er.extensions.eof.ERXGenericRecord |
|---|
ERXGenericRecord.ERXGenericRecordClazz<T extends EOEnterpriseObject>, ERXGenericRecord.InverseRelationshipUpdater, ERXGenericRecord.LocalizedBinding |
| Nested classes/interfaces inherited from class com.webobjects.eocontrol.EOGenericRecord |
|---|
EOGenericRecord._DictionaryBinding, EOGenericRecord._LazyDictionaryBinding |
| Nested classes/interfaces inherited from class com.webobjects.eocontrol.EOCustomObject |
|---|
EOCustomObject._BooleanFieldBinding, EOCustomObject._FieldBinding, EOCustomObject._LazyFieldBinding, EOCustomObject._NumberFieldBinding |
| Nested classes/interfaces inherited from interface er.extensions.eof.ERXEnterpriseObject |
|---|
ERXEnterpriseObject.Observer, ERXEnterpriseObject.Processor |
| Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueCodingAdditions |
|---|
EOKeyValueCodingAdditions.DefaultImplementation, EOKeyValueCodingAdditions.Utility |
| Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueCoding |
|---|
EOKeyValueCoding._BestBindingCreation, EOKeyValueCoding._KeyBindingCreation, EOKeyValueCoding._StoredForwardingBinding |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
|---|
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.ValidationException |
| Nested classes/interfaces inherited from interface com.webobjects.eocontrol._EOPrivateMemento |
|---|
_EOPrivateMemento.DefaultImplementation |
| Field Summary |
|---|
| Fields inherited from class er.attachment.model._ERAttachment |
|---|
AVAILABLE, AVAILABLE_KEY, CHILDREN_ATTACHMENTS, CHILDREN_ATTACHMENTS_KEY, CONFIGURATION_NAME, CONFIGURATION_NAME_KEY, CREATION_DATE, CREATION_DATE_KEY, ENTITY_NAME, HEIGHT, HEIGHT_KEY, MIME_TYPE, MIME_TYPE_KEY, ORIGINAL_FILE_NAME, ORIGINAL_FILE_NAME_KEY, OWNER_ID, OWNER_ID_KEY, PARENT_ATTACHMENT, PARENT_ATTACHMENT_KEY, PROXIED, PROXIED_KEY, SIZE, SIZE_KEY, STORAGE_TYPE, STORAGE_TYPE_KEY, THUMBNAIL, THUMBNAIL_KEY, WEB_PATH, WEB_PATH_KEY, WIDTH, WIDTH_KEY |
| Fields inherited from class er.extensions.eof.ERXGenericRecord |
|---|
_primaryKey, insertionStackTrace |
| Fields inherited from class com.webobjects.eocontrol.EOGenericRecord |
|---|
_CLASS |
| Fields inherited from class com.webobjects.eocontrol.EOCustomObject |
|---|
__readOnly |
| Fields inherited from interface com.webobjects.eocontrol.EOEnterpriseObject |
|---|
_CLASS |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
_KeyPathSeparatorChar, KeyPathSeparator |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
|---|
NullValue |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
|---|
NullValue |
| Constructor Summary | |
|---|---|
ERAttachment()
|
|
| Method Summary | |
|---|---|
void |
didDelete(EOEditingContext ec)
Called on the object after is has been deleted. |
void |
didInsert()
Called on the object after is has successfully been inserted into the database. |
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)
Fetches the required attachment associated with the given web path. |
String |
fileName()
Returns the file name portion of the webPath. |
| Methods inherited from class com.webobjects.eocontrol.EOGenericRecord |
|---|
__setClassDescription, _keyGetBindingForKey, _keySetBindingForKey, _storedKeyGetBindingForKey, _storedKeySetBindingForKey, classDescription, usesDeferredFaultCreation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.webobjects.eocontrol.EOKeyValueCodingAdditions |
|---|
takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, valuesForKeys, valuesForKeysWithMapping |
| Methods inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
takeValueForKeyPath, valueForKeyPath |
| Methods inherited from interface com.webobjects.foundation.NSKeyValueCoding |
|---|
valueForKey |
| Methods inherited from interface com.webobjects.eocontrol.EOKeyValueCoding |
|---|
storedValueForKey |
| Methods inherited from interface com.webobjects.foundation.NSKeyValueCoding |
|---|
valueForKey |
| Methods inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
|---|
handleQueryWithUnboundKey, handleTakeValueForUnboundKey, unableToSetNullForKey |
| Methods inherited from interface com.webobjects.eocontrol.EORelationshipManipulation |
|---|
addObjectToPropertyWithKey, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey |
| Methods inherited from interface com.webobjects.eocontrol.EOValidation |
|---|
validateClientUpdate, validateForDelete |
| Methods inherited from interface com.webobjects.foundation.NSValidation |
|---|
validateTakeValueForKeyPath |
| Methods inherited from interface com.webobjects.eocontrol.EOFaulting |
|---|
clearFault, faultHandler, isFault, turnIntoFault, willRead |
| Constructor Detail |
|---|
public ERAttachment()
| Method Detail |
|---|
public void didInsert()
ERXEnterpriseObject
didInsert in interface ERXEnterpriseObjectdidInsert in class ERXGenericRecordpublic String fileName()
public ERMimeType erMimeType()
public String extension()
public static ERAttachment fetchRequiredAttachmentWithWebPath(EOEditingContext editingContext,
String webPath)
editingContext - the editing context to load inwebPath - the web path of the attachment
NoSuchElementException - if there is no attachment with the given web pathpublic void didDelete(EOEditingContext ec)
ERXEnterpriseObjectec
is a child context when doing something here that
can't be undone.
didDelete in interface ERXEnterpriseObjectdidDelete in class ERXGenericRecordec - editing context that used to be associated
with the object.
|
Last updated: Sat, Nov 22, 2008 04:41 AM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||