FetchConfigurable
public protocol FetchConfigurable: class
Objects adopting the FetchConfigurable
support a variety of fetching helper functionalities.
-
defaultSortDescriptors
Default implementationMechanica
Protocol
ManagedObjectConfigurable
.Default sort descriptors.
Default Implementation
Undocumented
Declaration
Swift
static var defaultSortDescriptors: [NSSortDescriptor]
-
defaultPredicate
Default implementationMechanica
Protocol
ManagedObjectConfigurable
.Default predicate.
Default Implementation
Undocumented
Declaration
Swift
static var defaultPredicate: NSPredicate
-
sortedFetchRequest
Extension methodMechanica
Fetch Request with the
defaultPredicate
and the defaultdefaultSortDescriptors
.Declaration
Swift
public static var sortedFetchRequest: NSFetchRequest<Self>
-
sortedFetchRequest(with:)
Extension methodMechanica
Creates a
new
sorted fetch request usingsortedFetchRequest
ANDpredicate
.Declaration
Swift
public static func sortedFetchRequest(with predicate: NSPredicate) -> NSFetchRequest<Self>
-
predicate(format:_:)
Extension methodMechanica
Creates a
new
predicate using thedefaultPredicate
AND apredicate
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 methodMechanica
Creates a
new
predicate using thedefaultPredicate
AND a givenpredicate
.Declaration
Swift
public static func predicate(_ predicate: NSPredicate) -> NSPredicate