public abstract class ERAttachment extends _ERAttachment
ERXGenericRecord.ERXGenericRecordClazz<T extends EOEnterpriseObject>, ERXGenericRecord.InverseRelationshipUpdater, ERXGenericRecord.LocalizedBinding, ERXGenericRecord.TouchingBinding
EOGenericRecord._DictionaryBinding, EOGenericRecord._LazyDictionaryBinding
EOCustomObject._BooleanFieldBinding, EOCustomObject._FieldBinding, EOCustomObject._LazyFieldBinding, EOCustomObject._NumberFieldBinding
ERXEnterpriseObject.Observer, ERXEnterpriseObject.Processor
EOKeyValueCodingAdditions.DefaultImplementation, EOKeyValueCodingAdditions.Utility
EOKeyValueCoding._BestBindingCreation, EOKeyValueCoding._KeyBindingCreation, EOKeyValueCoding._StoredForwardingBinding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.ValidationException
_EOPrivateMemento.DefaultImplementation
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
_CLASS
_KeyPathSeparatorChar, KeyPathSeparator
NullValue
Constructor and Description |
---|
ERAttachment() |
Modifier and Type | Method and Description |
---|---|
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.
|
static 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
storedValueForKey
valueForKey
handleTakeValueForUnboundKey, unableToSetNullForKey
addObjectToPropertyWithKey, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey
validateClientUpdate, validateForDelete
validateTakeValueForKeyPath
clearFault, faultHandler, isFault, turnIntoFault, willRead
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(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 EOQualifier thatAreForWebPath(String webPath)
public void didDelete(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 – 2024 Project Wonder.