IndexedEntityStore<T, K> class

Constructors

IndexedEntityStore(Database _database, IndexedEntityConnector<T, K, dynamic> _connector)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscriptionCount int
no setter

Methods

delete(K key) → void
Deletes a single entity by its primary key
deleteAll() → void
Removes all entries from the store
deleteEntities(Iterable<T> entities) → void
Deletes many entities
deleteEntity(T entity) → void
Deletes a single entity
deleteMany(Set<K> keys) → void
Deletes many entities by their primary key
get(K key) QueryResult<T?>
Returns a subscription to a single entity by its primary key
getAll({OrderByClause? orderBy}) QueryResult<List<T>>
Returns a subscription to all entities in this store
getAllOnce({OrderByClause? orderBy}) List<T>
Returns a list of all entities in this store
getOnce(K key) → T?
Returns a single entity by its primary key
insert(T e) → void
Insert or updates the given entity in the database.
insertMany(Iterable<T> entities) → void
Insert or update many entities in a single batch
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(QueryBuilder q, {OrderByClause? orderBy, int? limit}) QueryResult<List<T>>
Returns a subscription to entities matching the given query
queryOnce(QueryBuilder q, {OrderByClause? orderBy, int? limit}) List<T>
Returns a list of entities matching the given query
single(QueryBuilder q) QueryResult<T?>
Returns the single entity (or null) for the given query
singleOnce(QueryBuilder q) → T?
Returns the single entity (or null) for the given query
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited