Class NSDerivedAttributeDescription

  • All Implemented Interfaces:
    NSCoding, NSCopying, NSObject

    public class NSDerivedAttributeDescription
    extends NSAttributeDescription
    Class that describes an attribute whose value should be derived from one or more other properties and how that derivation should be done. This is primarily intended to optimize fetch performance. Some use cases: * creating a derived 'searchName' attribute that reflects a 'name' attribute with case and diacritics stripped for more efficient comparisons during fetching * creating a 'relationshipCount' attribute reflecting the number of objects in a relationship and so avoid having to do a join during fetching IMPORTANT: Derived attributes will be recomputed during save, recomputed values will not be reflected in a managed object's property until after a save. NOTE: Prior to macOS 10.16, iOS 14.0, tvOS 14.0, and watchOS 7.0 a refresh of the object is required after a save to reflect recomputed values
    • Constructor Detail

      • NSDerivedAttributeDescription

        protected NSDerivedAttributeDescription​(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()
      • derivationExpression

        public NSExpression derivationExpression()
        Instance of NSExpression that will be used to generate the derived data. When using derived attributes in an SQL store, this expression should be * a keypath expression (including @operation components) * a function expression using one of the predefined functions defined in NSExpression.h Any keypaths used in the expression must be accessible from the entity on which the derived attribute is specified. If a store is added to a coordinator whose model contains derived attributes of a type not supported by the store, the add will fail and an NSError will be returned.
      • 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)
      • setDerivationExpression

        public void setDerivationExpression​(NSExpression value)
        Instance of NSExpression that will be used to generate the derived data. When using derived attributes in an SQL store, this expression should be * a keypath expression (including @operation components) * a function expression using one of the predefined functions defined in NSExpression.h Any keypaths used in the expression must be accessible from the entity on which the derived attribute is specified. If a store is added to a coordinator whose model contains derived attributes of a type not supported by the store, the add will fail and an NSError will be returned.
      • 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()