FunctionalEntityStore
open class FunctionalEntityStore<EntityType> : EntityStore where EntityType : CanBeIdentified
Undocumented
-
Undocumented
See moreDeclaration
Swift
public enum StoreError : Error
-
Undocumented
Declaration
Swift
public convenience init(persistEntites: @escaping (_ entities: [EntityType]) throws -> Void, deleteEntites: @escaping (_ entities: [EntityType]) throws -> Void, getEntities: @escaping ()->[EntityType])
-
Undocumented
Declaration
Swift
public init(persistEntites: @escaping (_ entities: [EntityType]) throws -> Void, deleteEntites: @escaping (_ entities: [EntityType]) throws -> Void, getEntities: @escaping ()->[EntityType], getEntity: @escaping (_ identifier: String) -> EntityType?)
-
Undocumented
Declaration
Swift
public func isResponsible<T>(for object: T) -> Bool
-
Undocumented
Declaration
Swift
public func isResponsible<T>(forType type: T.Type) -> Bool
-
Undocumented
Declaration
Swift
public func delete<T>(_ item: T!) throws
-
Undocumented
Declaration
Swift
public func delete<T>(_ items: [T]) throws
-
Undocumented
Declaration
Swift
public func delete<T>(_ item: T!, completion: @escaping () -> ()) throws
-
Undocumented
Declaration
Swift
public func get<T>(_ identifier: String) throws -> T?
-
Undocumented
Declaration
Swift
public func get<T>(_ identifier: String, completion: @escaping (T?) -> Void) throws
-
Undocumented
Declaration
Swift
public func persist<T>(_ item: T!) throws
-
Undocumented
Declaration
Swift
public func persist<T>(_ item: T!, completion: @escaping () -> ()) throws
-
Undocumented
Declaration
Swift
public func persist<T>(_ items: [T]) throws
-
Undocumented
Declaration
Swift
public func getAll<T>(_ type: T.Type) throws -> [T]
-
Undocumented
Declaration
Swift
public func getAll<T>(_ type: T.Type, completion: @escaping ([T]) -> Void) throws
-
Undocumented
Declaration
Swift
public func getAll<T>(_ viewName: String) throws -> [T]
-
Undocumented
Declaration
Swift
public func getAll<T>(_ viewName: String, completion: @escaping ([T]) -> Void) throws
-
Undocumented
Declaration
Swift
public func getAll<T>(_ viewName: String, groupName: String) throws -> [T]
-
Undocumented
Declaration
Swift
public func getAll<T>(_ viewName: String, groupName: String, completion: @escaping ([T]) -> Void) throws
-
Undocumented
Declaration
Swift
public func exists<T>(_ item: T!) throws -> Bool
-
Undocumented
Declaration
Swift
public func exists<T>(_ item: T!, completion: @escaping (Bool) -> Void) throws
-
Undocumented
Declaration
Swift
public func exists<T>(_ identifier: String, type: T.Type) throws -> Bool
-
Undocumented
Declaration
Swift
public func exists<T>(_ identifier: String, type: T.Type, completion: @escaping (Bool) -> Void) throws
-
Undocumented
Declaration
Swift
public func filter<T>(_ type: T.Type, includeElement: @escaping (T) -> Bool) throws -> [T]
-
Undocumented
Declaration
Swift
public func filter<T>(_ type: T.Type, includeElement: @escaping (T) -> Bool, completion: @escaping ([T]) -> Void) throws
-
Undocumented
Declaration
Swift
public func addView<T>(_ viewName: String, groupingBlock: @escaping ((String, String, T) -> String?), sortingBlock: @escaping ((String, String, String, T, String, String, T) -> ComparisonResult)) throws
-
Undocumented
Declaration
Swift
public func transaction(transaction: @escaping (EntityStore) throws -> Void) throws
-
Undocumented
Declaration
Swift
public func toTypedEntityStore() throws -> TypedEntityStore<EntityType>