public abstract class ERAttachment extends _ERAttachment
ERXGenericRecord.ERXGenericRecordClazz<T extends com.webobjects.eocontrol.EOEnterpriseObject>, ERXGenericRecord.InverseRelationshipUpdater, ERXGenericRecord.LocalizedBinding, ERXGenericRecord.TouchingBinding
EOGenericRecord._DictionaryBinding, EOGenericRecord._LazyDictionaryBinding
EOCustomObject._BooleanFieldBinding, EOCustomObject._FieldBinding, EOCustomObject._LazyFieldBinding, EOCustomObject._NumberFieldBinding
ERXEnterpriseObject.Observer, ERXEnterpriseObject.Processor
com.webobjects.eocontrol.EOKeyValueCodingAdditions.DefaultImplementation, com.webobjects.eocontrol.EOKeyValueCodingAdditions.Utility
com.webobjects.eocontrol.EOKeyValueCoding._BestBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._KeyBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._StoredForwardingBinding
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
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
_primaryKey, _touchSource, insertionStackTrace
_CLASS
__readOnly
applyRestrictingQualifierOnInsert, DidDeleteProcessor, DidInsertProcessor, DidRevertProcessor, DidUpdateProcessor, FlushCachesProcessor, insertionTrackingLog, KEY_MARKER, logMod, tranLogDidDelete, tranLogDidInsert, tranLogDidRevert, tranLogDidUpdate, tranLogMightDelete, tranLogWillDelete, tranLogWillInsert, tranLogWillRevert, tranLogWillUpdate, validation, validationException, WillDeleteProcessor, WillInsertProcessor, WillRevertProcessor, WillUpdateProcessor
Constructor and Description |
---|
ERAttachment() |
Modifier and Type | Method and Description |
---|---|
void |
didDelete(com.webobjects.eocontrol.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(com.webobjects.eocontrol.EOEditingContext editingContext,
String webPath)
Fetches the required attachment associated with the given web path.
|
String |
fileName()
Returns the file name portion of the webPath.
|
static com.webobjects.eocontrol.EOQualifier |
thatAreForWebPath(String webPath) |
addToChildrenAttachments, addToChildrenAttachmentsRelationship, available, childrenAttachments, childrenAttachments, childrenAttachments, childrenAttachments, configurationName, createChildrenAttachmentsRelationship, createERAttachment, creationDate, deleteAllChildrenAttachmentsRelationships, deleteChildrenAttachmentsRelationship, fetchAllERAttachments, fetchAllERAttachments, fetchERAttachment, fetchERAttachment, fetchERAttachments, fetchRequiredERAttachment, fetchRequiredERAttachment, fetchSpec, height, localInstanceIn, localInstanceIn, mimeType, originalFileName, ownerID, parentAttachment, proxied, removeFromChildrenAttachments, removeFromChildrenAttachmentsRelationship, setAvailable, setConfigurationName, setCreationDate, setHeight, setMimeType, setOriginalFileName, setOwnerID, setParentAttachment, setParentAttachmentRelationship, setProxied, setSize, setStorageType, setThumbnail, setWebPath, setWidth, size, storageType, thumbnail, webPath, width
_otherStorageBinding, _setPrimaryKeyDictionary, _setUpdateInverseRelationships, _setValueForPrimaryKey, _updateInverseRelationships, _validateValueForKey, addObjectsToBothSidesOfRelationshipWithKey, addObjectToBothSidesOfRelationshipWithKey, applyRestrictingQualifierOnInsert, awakeFromClientUpdate, awakeFromFetch, awakeFromInsertion, batchFaultingRelationshipName, batchFaultingSourceGlobalID, batchFaultingTimeStamp, canDelete, canUpdate, changesFromCommittedSnapshot, checkMatchingEditingContexts, clearProperties, committedSnapshot, committedSnapshotValueForKey, committedSnapshotValueForKey, delete, didCopyFromChildInEditingContext, didRevert, didUpdate, encryptedPrimaryKey, entity, excludeObjectFromPropertyWithKey, flushCaches, foreignKeyForRelationshipWithKey, getClassLog, handleQueryWithUnboundKey, hasKeyChangedFromCommittedSnapshot, hasKeyChangedFromCommittedSnapshot, hasKeyChangedFromCommittedSnapshotFromValue, hasKeyChangedFromCommittedSnapshotFromValue, hasKeyChangedFromCommittedSnapshotFromValueToNewValue, hasKeyChangedFromCommittedSnapshotFromValueToNewValue, hasKeyChangedFromCommittedSnapshotToValue, hasKeyChangedFromCommittedSnapshotToValue, includeObjectIntoPropertyWithKey, init, isDeletedEO, isNewObject, isNonNull, isUpdatedObject, isValidatedWhenNested, localesForKey, localInstanceOf, localInstancesOf, localizationShouldFallbackToDefaultLanguage, localizedKey, mightDelete, parentObjectStoreIsObjectStoreCoordinator, permanentGlobalID, permanentGlobalID, primaryKey, primaryKeyAttributeNames, primaryKeyInTransaction, rawPrimaryKey, rawPrimaryKeyDictionary, rawPrimaryKeyInTransaction, refetchObjectFromDB, refetchObjectFromDBinEditingContext, removeObjectsFromBothSidesOfRelationshipWithKey, removeObjectsFromPropertyWithKey, self, setBatchFaultingTimestamp, setValidatedWhenNested, shouldSkipValidateForSave, shouldTrimSpaces, takeStoredValueForKey, takeValueForKey, takeValueForKey, toLongString, toString, touchFromBatchFaultingSource, trimSpaces, updateFromSnapshot, validateForInsert, validateForSave, validateForUpdate, validateValueForKey, valueForKey, willDelete, willInsert, willReadRelationship, willRevert, willUpdate
__setClassDescription, _keyGetBindingForKey, _keySetBindingForKey, _storedKeyGetBindingForKey, _storedKeySetBindingForKey, classDescription, usesDeferredFaultCreation
__classDescription, __clearPendingChanges, __editingContext, __globalID, __hasAuxillaryObservers, __hasPendingChanges, __hasPendingUpdate, __isInitialized, __isPendingDeletion, __isPendingInsertion, __isShared, __lastSnapshot, __originalSnapshot, __retainCount, __setAuxillaryObservers, __setEditingContext, __setGlobalID, __setInitialized, __setLastSnapshot, __setOriginalSnapshot, __setPendingDeletion, __setPendingInsertion, __setPendingUpdate, __setRetainCount, __setShared, _createKeyGetBindingForKey, _createKeySetBindingForKey, _createStoredKeyGetBindingForKey, _createStoredKeySetBindingForKey, _fieldKeyBinding, _forwardingBindingNeededForClass, _methodKeyGetBinding, _methodKeySetBinding, addObjectToPropertyWithKey, allPropertyKeys, attributeKeys, canAccessFieldsDirectly, changesFromSnapshot, classDescriptionForDestinationKey, clearFault, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, equals, faultHandler, handleTakeValueForUnboundKey, hashCode, inverseForRelationshipKey, invokeRemoteMethod, isFault, isReadOnly, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, readResolve, reapplyChangesFromDictionary, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey, shouldUseStoredAccessors, snapshot, storedValueForKey, takeValueForKeyPath, takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, toManyRelationshipKeys, toOneRelationshipKeys, turnIntoFault, unableToSetNullForKey, userPresentableDescription, validateClientUpdate, validateForDelete, validateTakeValueForKeyPath, valueForKey, valueForKeyPath, valuesForKeys, valuesForKeysWithMapping, willChange, willRead
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
allPropertyKeys, attributeKeys, changesFromSnapshot, classDescription, classDescriptionForDestinationKey, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, inverseForRelationshipKey, invokeRemoteMethod, isReadOnly, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, reapplyChangesFromDictionary, snapshot, toManyRelationshipKeys, toOneRelationshipKeys, userPresentableDescription, willChange
takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, valuesForKeys, valuesForKeysWithMapping
takeValueForKeyPath, valueForKeyPath
handleTakeValueForUnboundKey, unableToSetNullForKey
addObjectToPropertyWithKey, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey
public void didInsert()
ERXEnterpriseObject
didInsert
in interface ERXEnterpriseObject
didInsert
in class ERXGenericRecord
public String fileName()
public ERMimeType erMimeType()
public String extension()
public static ERAttachment fetchRequiredAttachmentWithWebPath(com.webobjects.eocontrol.EOEditingContext editingContext, String webPath)
editingContext
- the editing context to load inwebPath
- the web path of the attachmenteditingContext
- - ロードする編集コンテキストwebPath
- - アタッチメントの web パスNoSuchElementException
- if there is no attachment with the given web path
指定 web パスと関連されているアタッチメントをフェッチします。NoSuchElementException
- - 指定 web パスのアタッチメントが無い場合
public static com.webobjects.eocontrol.EOQualifier thatAreForWebPath(String webPath)
public void didDelete(com.webobjects.eocontrol.EOEditingContext ec)
ERXEnterpriseObject
ec
is a child context when doing something here that
can't be undone.didDelete
in interface ERXEnterpriseObject
didDelete
in class ERXGenericRecord
ec
- editing context that used to be associated
with the object.Copyright © 2002 – 2020 Project Wonder.