ModelIdentifierProtocol

public protocol ModelIdentifierProtocol

Defines a ModelIdentifier requirements.

  • Declaration

    Swift

    typealias Field = (name: String, value: Persistable)
  • Declaration

    Swift

    typealias Fields = [Field]
  • Array of ModelIdentifierProtocol.Field that make up the model instance identifier

    Declaration

    Swift

    var fields: ModelIdentifierProtocol.Fields { get }
  • stringValue Default implementation

    Serialized instance of the identifier. Its value is the concatenation of its fields.

    Default Implementation

    Declaration

    Swift

    var stringValue: String { get }
  • keys Default implementation

    Convenience accessor to the model identifier fields names

    Default Implementation

    Declaration

    Swift

    var keys: [String] { get }
  • values Default implementation

    Convenience accessor to the model identifier field values

    Default Implementation

    Declaration

    Swift

    var values: [Persistable] { get }
  • predicate Default implementation

    Default Implementation

    Declaration

    Swift

    var predicate: QueryPredicate { get }