Class NSManagedObjectModelReference

  • All Implemented Interfaces:
    NSObject

    public class NSManagedObjectModelReference
    extends NSObject
    NSManagedObjectModelReference represents a promise of an NSManagedObjectMOdel. During migration Core Data will fulfill this promise. Every NSManagedObjectModelReference instance requires to be initialized with a "version checksum". This is to validate the model hasn't changed. The checksum can be obtained from the NSManagedObjectModel's versionChecksum property. Alternatively it can be retrieved from the Xcode build log or a versioned model's VersionInfo.plist. API-Since: 17.0
    • Constructor Detail

      • NSManagedObjectModelReference

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • hash_static

        public static long hash_static()
      • initWithEntityVersionHashesInBundleVersionChecksum

        public NSManagedObjectModelReference initWithEntityVersionHashesInBundleVersionChecksum​(@NotNull
                                                                                                @NotNull NSDictionary<?,​?> versionHash,
                                                                                                @Nullable
                                                                                                @Nullable NSBundle bundle,
                                                                                                @NotNull
                                                                                                @NotNull java.lang.String versionChecksum)
      • initWithFileURLVersionChecksum

        public NSManagedObjectModelReference initWithFileURLVersionChecksum​(@NotNull
                                                                            @NotNull NSURL fileURL,
                                                                            @NotNull
                                                                            @NotNull java.lang.String versionChecksum)
      • initWithNameInBundleVersionChecksum

        public NSManagedObjectModelReference initWithNameInBundleVersionChecksum​(@NotNull
                                                                                 @NotNull java.lang.String modelName,
                                                                                 @Nullable
                                                                                 @Nullable NSBundle bundle,
                                                                                 @NotNull
                                                                                 @NotNull java.lang.String versionChecksum)
      • 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()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • version_static

        public static long version_static()
      • versionChecksum

        @NotNull
        public @NotNull java.lang.String versionChecksum()