Class NSEntityMigrationPolicy

  • All Implemented Interfaces:
    NSObject

    public class NSEntityMigrationPolicy
    extends NSObject
    • Constructor Detail

      • NSEntityMigrationPolicy

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

        public boolean beginEntityMappingManagerError​(NSEntityMapping mapping,
                                                      NSMigrationManager manager,
                                                      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​(NSManagedObject sInstance,
                                                                                            NSEntityMapping mapping,
                                                                                            NSMigrationManager manager,
                                                                                            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​(NSManagedObject dInstance,
                                                                                          NSEntityMapping mapping,
                                                                                          NSMigrationManager manager,
                                                                                          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​(NSEntityMapping mapping,
                                                    NSMigrationManager manager,
                                                    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​(NSEntityMapping mapping,
                                                                       NSMigrationManager manager,
                                                                       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​(NSEntityMapping mapping,
                                                                           NSMigrationManager manager,
                                                                           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​(NSEntityMapping mapping,
                                                                           NSMigrationManager manager,
                                                                           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.)