Class NSEntityMigrationPolicy

  • All Implemented Interfaces:
    NSObject

    public class NSEntityMigrationPolicy
    extends NSObject
    API-Since: 3.0
    • Constructor Detail

      • NSEntityMigrationPolicy

        protected NSEntityMigrationPolicy​(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()
      • 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()
      • beginEntityMappingManagerError

        public boolean beginEntityMappingManagerError​(@NotNull
                                                      @NotNull NSEntityMapping mapping,
                                                      @NotNull
                                                      @NotNull NSMigrationManager manager,
                                                      @Nullable
                                                      @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Invoked by the migration manager at the start of a given entity mapping. This is also the precursor to the creation step.
      • createDestinationInstancesForSourceInstanceEntityMappingManagerError

        public boolean createDestinationInstancesForSourceInstanceEntityMappingManagerError​(@NotNull
                                                                                            @NotNull NSManagedObject sInstance,
                                                                                            @NotNull
                                                                                            @NotNull NSEntityMapping mapping,
                                                                                            @NotNull
                                                                                            @NotNull NSMigrationManager manager,
                                                                                            @Nullable
                                                                                            @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Invoked by the migration manager on each source instance (as specified by the sourceExpression in the mapping) to create the corresponding destination instance. The method also associates the source and destination instances by calling NSMigrationManager's associateSourceInstance:withDestinationInstance:forEntityMapping: method. Subclass implementations of this method must be careful to associate the source and destination instances as required if super is not called. A return value of NO indicates an error.
      • createRelationshipsForDestinationInstanceEntityMappingManagerError

        public boolean createRelationshipsForDestinationInstanceEntityMappingManagerError​(@NotNull
                                                                                          @NotNull NSManagedObject dInstance,
                                                                                          @NotNull
                                                                                          @NotNull NSEntityMapping mapping,
                                                                                          @NotNull
                                                                                          @NotNull NSMigrationManager manager,
                                                                                          @Nullable
                                                                                          @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Constructs the relationships between the newly-created destination instances. The association lookup methods on the NSMigrationManager can be used to determine the appropriate relationship targets. A return value of NO indicates an error.
      • endEntityMappingManagerError

        public boolean endEntityMappingManagerError​(@NotNull
                                                    @NotNull NSEntityMapping mapping,
                                                    @NotNull
                                                    @NotNull NSMigrationManager manager,
                                                    @Nullable
                                                    @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Invoked by the migration manager at the end of a given entity mapping. This is also the end to the validation step, which is the last step for migration.
      • endInstanceCreationForEntityMappingManagerError

        public boolean endInstanceCreationForEntityMappingManagerError​(@NotNull
                                                                       @NotNull NSEntityMapping mapping,
                                                                       @NotNull
                                                                       @NotNull NSMigrationManager manager,
                                                                       @Nullable
                                                                       @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Indicates the end of the creation step for the specified entity mapping, and the precursor to the next migration step. Developers can override this method to set up or clean up information for further migration steps.
      • endRelationshipCreationForEntityMappingManagerError

        public boolean endRelationshipCreationForEntityMappingManagerError​(@NotNull
                                                                           @NotNull NSEntityMapping mapping,
                                                                           @NotNull
                                                                           @NotNull NSMigrationManager manager,
                                                                           @Nullable
                                                                           @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Indicates the end of the relationship creation step for the specified entity mapping. This method is invoked after the createRelationshipsForDestinationInstance:entityMapping:manager:error: method, and can be used to clean up state from the creation of relationships, or prepare state for the performance of custom validation.
      • performCustomValidationForEntityMappingManagerError

        public boolean performCustomValidationForEntityMappingManagerError​(@NotNull
                                                                           @NotNull NSEntityMapping mapping,
                                                                           @NotNull
                                                                           @NotNull NSMigrationManager manager,
                                                                           @Nullable
                                                                           @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Invoked during the validation step of the entity migration policy, providing the option of performing custom validation on migrated objects. (Implementors must manually obtain the collection of objects they are interested in validating.)
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.