mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-18 15:07:00 +01:00
here we go
This commit is contained in:
30
HardcoreData/QueryDescriptor.swift
Normal file
30
HardcoreData/QueryDescriptor.swift
Normal file
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// QueryDescriptor.swift
|
||||
// HardcoreData
|
||||
//
|
||||
// Created by John Rommel Estropia on 14/11/16.
|
||||
// Copyright (c) 2014 John Rommel Estropia. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CoreData
|
||||
|
||||
public struct QueryDescriptor<T: NSManagedObject> {
|
||||
|
||||
public var entityName: String {
|
||||
|
||||
return self.entity.entityName
|
||||
}
|
||||
|
||||
// MARK: Internal
|
||||
|
||||
internal init(entity: T.Type) {
|
||||
self.entity = entity
|
||||
}
|
||||
|
||||
|
||||
// MARK: Private
|
||||
private let entity: T.Type
|
||||
private var predicate: NSPredicate?
|
||||
private var sortDescriptors: [NSSortDescriptor]?
|
||||
}
|
||||
Reference in New Issue
Block a user