Class NSEntityDescription

    • Constructor Detail

      • NSEntityDescription

        protected NSEntityDescription​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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)
      • 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)
      • 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:
        copyWithZone in interface NSCopying
      • 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:
        countByEnumeratingWithStateObjectsCount in interface NSFastEnumeration
      • 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()
      • name

        @Nullable
        public @Nullable java.lang.String name()
      • 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)
      • setRenamingIdentifier

        public void setRenamingIdentifier​(@Nullable
                                          @Nullable java.lang.String value)
        API-Since: 3.0
      • 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
      • 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.