Package apple.coredata
Class NSEntityDescription
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.coredata.NSEntityDescription
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSFastEnumeration,NSObject
public class NSEntityDescription extends NSObject implements NSCoding, NSCopying, NSFastEnumeration
Entities describe the "types" of objects available. API-Since: 3.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSEntityDescription(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static NSEntityDescriptionalloc()static NSEntityDescriptionallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)@NotNull NSDictionary<java.lang.String,? extends NSAttributeDescription>attributesByName()convenience methods to get the most common (and most relevant) types of properties for an entitystatic booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()@NotNull NSArray<? extends NSArray<?>>compoundIndexes()Deprecated.@NotNull java.lang.ObjectcopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)@NotNull NSExpressioncoreSpotlightDisplayNameExpression()Expression used to compute the CoreSpotlight display name for instance of this entity.longcountByEnumeratingWithStateObjectsCount(@NotNull org.moe.natj.general.ptr.VoidPtr state, @NotNull org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> buffer, long len)static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voidencodeWithCoder(@NotNull NSCoder coder)static @Nullable NSEntityDescriptionentityForNameInManagedObjectContext(@NotNull java.lang.String entityName, @NotNull NSManagedObjectContext context)static longhash_static()@NotNull NSArray<? extends NSFetchIndexDescription>indexes()Returns/sets the set of indexes for the entity.NSEntityDescriptioninit()NSEntityDescriptioninitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERstatic @NotNull NSManagedObjectinsertNewObjectForEntityForNameInManagedObjectContext(@NotNull java.lang.String entityName, @NotNull NSManagedObjectContext context)static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisAbstract()booleanisKindOfEntity(@NotNull NSEntityDescription entity)Returns a boolean indicating if the receiver is a subentity of the specified entity.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)java.lang.StringmanagedObjectClassName()@NotNull NSManagedObjectModelmanagedObjectModel()@Nullable java.lang.Stringname()static NSEntityDescriptionnew_objc()@NotNull NSArray<? extends NSPropertyDescription>properties()@NotNull NSDictionary<java.lang.String,? extends NSPropertyDescription>propertiesByName()@NotNull NSDictionary<java.lang.String,? extends NSRelationshipDescription>relationshipsByName()@NotNull NSArray<? extends NSRelationshipDescription>relationshipsWithDestinationEntity(@NotNull NSEntityDescription entity)@Nullable java.lang.StringrenamingIdentifier()API-Since: 3.0static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAbstract(boolean value)voidsetCompoundIndexes(@NotNull NSArray<? extends NSArray<?>> value)Deprecated.voidsetCoreSpotlightDisplayNameExpression(@NotNull NSExpression value)Expression used to compute the CoreSpotlight display name for instance of this entity.voidsetIndexes(@NotNull NSArray<? extends NSFetchIndexDescription> value)Returns/sets the set of indexes for the entity.voidsetManagedObjectClassName(java.lang.String value)voidsetName(@Nullable java.lang.String value)voidsetProperties(@NotNull NSArray<? extends NSPropertyDescription> value)voidsetRenamingIdentifier(@Nullable java.lang.String value)API-Since: 3.0voidsetSubentities(@NotNull NSArray<? extends NSEntityDescription> value)voidsetUniquenessConstraints(@NotNull NSArray<? extends NSArray<?>> value)Returns/sets uniqueness constraints for the entity.voidsetUserInfo(@Nullable NSDictionary<?,?> value)static voidsetVersion_static(long aVersion)voidsetVersionHashModifier(@Nullable java.lang.String value)Returns/sets the version hash modifier for the entity.@NotNull NSArray<? extends NSEntityDescription>subentities()@NotNull NSDictionary<java.lang.String,? extends NSEntityDescription>subentitiesByName()static org.moe.natj.objc.Classsuperclass_static()@Nullable NSEntityDescriptionsuperentity()@NotNull NSArray<? extends NSArray<?>>uniquenessConstraints()Returns/sets uniqueness constraints for the entity.@Nullable NSDictionary<?,?>userInfo()static booleanuseStoredAccessor()Deprecated.static longversion_static()@NotNull NSDataversionHash()Returns the version hash for the entity.@Nullable java.lang.StringversionHashModifier()Returns/sets the version hash modifier for the entity.-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static NSEntityDescription alloc()
-
allocWithZone
public static NSEntityDescription allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
entityForNameInManagedObjectContext
@Nullable public static @Nullable NSEntityDescription entityForNameInManagedObjectContext(@NotNull @NotNull java.lang.String entityName, @NotNull @NotNull NSManagedObjectContext context)
-
hash_static
public static long hash_static()
-
insertNewObjectForEntityForNameInManagedObjectContext
@NotNull public static @NotNull NSManagedObject insertNewObjectForEntityForNameInManagedObjectContext(@NotNull @NotNull java.lang.String entityName, @NotNull @NotNull NSManagedObjectContext context)
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
public static NSEntityDescription new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
attributesByName
@NotNull public @NotNull NSDictionary<java.lang.String,? extends NSAttributeDescription> attributesByName()
convenience methods to get the most common (and most relevant) types of properties for an entity
-
compoundIndexes
@NotNull @Deprecated public @NotNull NSArray<? extends NSArray<?>> compoundIndexes()
Deprecated.Getter returns an array of arrays of NSPropertyDescription objects describing the components of the indexes. Setter takes an array of arrays of NSPropertyDescription objects and/or strings that are the names of properties of the entity on which the index is created. The special strings @"self" and @"entity" can be used to indicate that an index should contain a reference to the object's primary or entity key. This value does not form part of the entity's version hash, and may be ignored by stores which do not natively support compound indexes. API-Since: 3.0 Deprecated-Since: 11.0 Deprecated-Message: Use NSEntityDescription.indexes instead
-
copyWithZone
@NotNull public @NotNull java.lang.Object copyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
copyWithZonein interfaceNSCopying
-
countByEnumeratingWithStateObjectsCount
public long countByEnumeratingWithStateObjectsCount(@NotNull @NotNull org.moe.natj.general.ptr.VoidPtr state, @NotNull @NotNull org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> buffer, long len)- Specified by:
countByEnumeratingWithStateObjectsCountin interfaceNSFastEnumeration
-
encodeWithCoder
public void encodeWithCoder(@NotNull @NotNull NSCoder coder)- Specified by:
encodeWithCoderin interfaceNSCoding
-
init
public NSEntityDescription init()
-
initWithCoder
public NSEntityDescription initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
isAbstract
public boolean isAbstract()
-
setAbstract
public void setAbstract(boolean value)
-
isKindOfEntity
public boolean isKindOfEntity(@NotNull @NotNull NSEntityDescription entity)Returns a boolean indicating if the receiver is a subentity of the specified entity. (This method is the Core Data entity inheritance equivalent of -isKindOfClass:) API-Since: 3.0
-
managedObjectClassName
public java.lang.String managedObjectClassName()
-
managedObjectModel
@NotNull public @NotNull NSManagedObjectModel managedObjectModel()
-
name
@Nullable public @Nullable java.lang.String name()
-
properties
@NotNull public @NotNull NSArray<? extends NSPropertyDescription> properties()
-
propertiesByName
@NotNull public @NotNull NSDictionary<java.lang.String,? extends NSPropertyDescription> propertiesByName()
-
relationshipsByName
@NotNull public @NotNull NSDictionary<java.lang.String,? extends NSRelationshipDescription> relationshipsByName()
-
relationshipsWithDestinationEntity
@NotNull public @NotNull NSArray<? extends NSRelationshipDescription> relationshipsWithDestinationEntity(@NotNull @NotNull NSEntityDescription entity)
-
renamingIdentifier
@Nullable public @Nullable java.lang.String renamingIdentifier()
API-Since: 3.0
-
setCompoundIndexes
@Deprecated public void setCompoundIndexes(@NotNull @NotNull NSArray<? extends NSArray<?>> value)Deprecated.Getter returns an array of arrays of NSPropertyDescription objects describing the components of the indexes. Setter takes an array of arrays of NSPropertyDescription objects and/or strings that are the names of properties of the entity on which the index is created. The special strings @"self" and @"entity" can be used to indicate that an index should contain a reference to the object's primary or entity key. This value does not form part of the entity's version hash, and may be ignored by stores which do not natively support compound indexes. API-Since: 3.0 Deprecated-Since: 11.0 Deprecated-Message: Use NSEntityDescription.indexes instead
-
setManagedObjectClassName
public void setManagedObjectClassName(java.lang.String value)
-
setName
public void setName(@Nullable @Nullable java.lang.String value)
-
setProperties
public void setProperties(@NotNull @NotNull NSArray<? extends NSPropertyDescription> value)
-
setRenamingIdentifier
public void setRenamingIdentifier(@Nullable @Nullable java.lang.String value)API-Since: 3.0
-
setSubentities
public void setSubentities(@NotNull @NotNull NSArray<? extends NSEntityDescription> value)
-
setUniquenessConstraints
public void setUniquenessConstraints(@NotNull @NotNull NSArray<? extends NSArray<?>> value)Returns/sets uniqueness constraints for the entity. A uniqueness constraint is a set of one or more attributes whose value must be unique over the set of instances of that entity. Sets an array of arrays, each of which contains one or more NSAttributeDescription or NSString instances (strings must be the names of attributes on the entity) on which the constraint is registered. Returns an array of arrays, each of which contains instances of NSString which identify the attributes on the entity that comprise the constraint. This value forms part of the entity's version hash. Stores which do not support uniqueness constraints should refuse to initialize when given a model containing such constraints. Discussion: uniqueness constraint violations can be computationally expensive to handle. It is highly suggested that there be only one uniqueness constraint per entity hierarchy, although subentites may extend a sueprentity's constraint. API-Since: 9.0
-
setUserInfo
public void setUserInfo(@Nullable @Nullable NSDictionary<?,?> value)
-
setVersionHashModifier
public void setVersionHashModifier(@Nullable @Nullable java.lang.String value)Returns/sets the version hash modifier for the entity. This value is included in the version hash for the entity, allowing developers to mark/denote an entity as being a different "version" than another, even if all of the values which affect persistence are equal. (Such a difference is important in cases where the structure of an entity is unchanged, but the format or content of data has changed.) API-Since: 3.0
-
subentities
@NotNull public @NotNull NSArray<? extends NSEntityDescription> subentities()
-
subentitiesByName
@NotNull public @NotNull NSDictionary<java.lang.String,? extends NSEntityDescription> subentitiesByName()
-
superentity
@Nullable public @Nullable NSEntityDescription superentity()
-
uniquenessConstraints
@NotNull public @NotNull NSArray<? extends NSArray<?>> uniquenessConstraints()
Returns/sets uniqueness constraints for the entity. A uniqueness constraint is a set of one or more attributes whose value must be unique over the set of instances of that entity. Sets an array of arrays, each of which contains one or more NSAttributeDescription or NSString instances (strings must be the names of attributes on the entity) on which the constraint is registered. Returns an array of arrays, each of which contains instances of NSString which identify the attributes on the entity that comprise the constraint. This value forms part of the entity's version hash. Stores which do not support uniqueness constraints should refuse to initialize when given a model containing such constraints. Discussion: uniqueness constraint violations can be computationally expensive to handle. It is highly suggested that there be only one uniqueness constraint per entity hierarchy, although subentites may extend a sueprentity's constraint. API-Since: 9.0
-
userInfo
@Nullable public @Nullable NSDictionary<?,?> userInfo()
-
versionHash
@NotNull public @NotNull NSData versionHash()
Returns the version hash for the entity. The version hash is used to uniquely identify an entity based on the collection and configuration of properties for the entity. The version hash uses only values which affect the persistence of data and the user-defined versionHashModifier value. (The values which affect persistence are the name of the entity, the version hash of the superentity (if present), if the entity is abstract, and all of the version hashes for the properties.) This value is stored as part of the version information in the metadata for stores which use this entity, as well as a definition of an entity involved in an NSEntityMapping. API-Since: 3.0
-
versionHashModifier
@Nullable public @Nullable java.lang.String versionHashModifier()
Returns/sets the version hash modifier for the entity. This value is included in the version hash for the entity, allowing developers to mark/denote an entity as being a different "version" than another, even if all of the values which affect persistence are equal. (Such a difference is important in cases where the structure of an entity is unchanged, but the format or content of data has changed.) API-Since: 3.0
-
coreSpotlightDisplayNameExpression
@NotNull public @NotNull NSExpression coreSpotlightDisplayNameExpression()
Expression used to compute the CoreSpotlight display name for instance of this entity. API-Since: 11.0
-
indexes
@NotNull public @NotNull NSArray<? extends NSFetchIndexDescription> indexes()
Returns/sets the set of indexes for the entity. Returns/takes an array of NSFetchIndexDescription instances. This value does not form part of the entity's version hash, and may be ignored by stores which do not natively support indexing. IMPORTANT: Indexes should be the last things set in a model. Changing an entity hierarchy in any way that could affect the validity of indexes (adding or removing super/subentities, adding or removing properties anywhere in the hierarchy) will cause all exisiting indexes for entities in that hierarchy to be dropped. API-Since: 11.0
-
setCoreSpotlightDisplayNameExpression
public void setCoreSpotlightDisplayNameExpression(@NotNull @NotNull NSExpression value)Expression used to compute the CoreSpotlight display name for instance of this entity. API-Since: 11.0
-
setIndexes
public void setIndexes(@NotNull @NotNull NSArray<? extends NSFetchIndexDescription> value)Returns/sets the set of indexes for the entity. Returns/takes an array of NSFetchIndexDescription instances. This value does not form part of the entity's version hash, and may be ignored by stores which do not natively support indexing. IMPORTANT: Indexes should be the last things set in a model. Changing an entity hierarchy in any way that could affect the validity of indexes (adding or removing super/subentities, adding or removing properties anywhere in the hierarchy) will cause all exisiting indexes for entities in that hierarchy to be dropped. API-Since: 11.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-