FetchConfigurable

public protocol FetchConfigurable: class

Objects adopting the FetchConfigurable support a variety of fetching helper functionalities.

  • defaultSortDescriptors Default implementation

    Mechanica

    Protocol ManagedObjectConfigurable.

    Default sort descriptors.

    Default Implementation

    Undocumented

    Declaration

    Swift

    static var defaultSortDescriptors: [NSSortDescriptor]
  • defaultPredicate Default implementation

    Mechanica

    Protocol ManagedObjectConfigurable.

    Default predicate.

    Default Implementation

    Undocumented

    Declaration

    Swift

    static var defaultPredicate: NSPredicate
  • sortedFetchRequest Extension method

    Mechanica

    Fetch Request with the defaultPredicate and the default defaultSortDescriptors.

    Declaration

    Swift

    public static var sortedFetchRequest: NSFetchRequest<Self>
  • sortedFetchRequest(with:) Extension method

    Mechanica

    Creates a new sorted fetch request using sortedFetchRequest AND predicate.

    Declaration

    Swift

    public static func sortedFetchRequest(with predicate: NSPredicate) -> NSFetchRequest<Self>
  • predicate(format:_:) Extension method

    Mechanica

    Creates a new predicate using the defaultPredicate AND a predicate by substituting the values in an argument list into a format string.

    Declaration

    Swift

    public static func predicate(format: String, _ args: CVarArg...) -> NSPredicate
  • predicate(_:) Extension method

    Mechanica

    Creates a new predicate using the defaultPredicate AND a given predicate.

    Declaration

    Swift

    public static func predicate(_ predicate: NSPredicate) -> NSPredicate