Class NSEntityDescription

    • Constructor Detail

      • NSEntityDescription

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • insertNewObjectForEntityForNameInManagedObjectContext

        public static NSManagedObject insertNewObjectForEntityForNameInManagedObjectContext​(java.lang.String entityName,
                                                                                            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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object 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

        public NSDictionary<java.lang.String,​? extends NSAttributeDescription> attributesByName()
        convenience methods to get the most common (and most relevant) types of properties for an entity
      • compoundIndexes

        public NSArray<? extends NSArray<?>> compoundIndexes()
        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.
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • countByEnumeratingWithStateObjectsCount

        public long countByEnumeratingWithStateObjectsCount​(org.moe.natj.general.ptr.VoidPtr state,
                                                            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​(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:)
      • managedObjectClassName

        public java.lang.String managedObjectClassName()
      • name

        public java.lang.String name()
      • renamingIdentifier

        public java.lang.String renamingIdentifier()
      • setCompoundIndexes

        public void setCompoundIndexes​(NSArray<? extends NSArray<?>> value)
        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.
      • setManagedObjectClassName

        public void setManagedObjectClassName​(java.lang.String value)
      • setName

        public void setName​(java.lang.String value)
      • setRenamingIdentifier

        public void setRenamingIdentifier​(java.lang.String value)
      • setUniquenessConstraints

        public void setUniquenessConstraints​(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.
      • setUserInfo

        public void setUserInfo​(NSDictionary<?,​?> value)
      • setVersionHashModifier

        public void setVersionHashModifier​(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.)
      • uniquenessConstraints

        public 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.
      • versionHash

        public 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.
      • versionHashModifier

        public 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.)
      • coreSpotlightDisplayNameExpression

        public NSExpression coreSpotlightDisplayNameExpression()
        Expression used to compute the CoreSpotlight display name for instance of this entity.
      • indexes

        public 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.
      • setCoreSpotlightDisplayNameExpression

        public void setCoreSpotlightDisplayNameExpression​(NSExpression value)
        Expression used to compute the CoreSpotlight display name for instance of this entity.
      • setIndexes

        public void setIndexes​(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.