Box class abstract

A Box represents a storage, be it a file, a database or simply in-memory storage.

Implementers

Constructors

Box(Registry registry)

Properties

hashCode → int
The hash code for this object.
no setterinherited
persistent → bool
Returns true if this Box persists stored entities.
no setter
registry → Registry
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsCompositeKey → bool
Returns true if this Box implementation supports composite primary keys.
no setter
supportsIn → bool
Returns true if this Box implementation supports IN conditions.
no setter
supportsLike → bool
Returns true if this Box implementation supports like conditions.
no setter
supportsNot → bool
Returns true if this Box implementation supports the NOT operator.
no setter
supportsOr → bool
Returns true if this Box implementation supports the OR operator.
no setter

Methods

close() → Future
Closes the underlying connection of this Box. After closing, a Box can no longer be used.
deleteAll<T>([Type type]) → Future
Deletes all entities of the specified type from this Box.
deleteFrom<T>([Type type]) → DeleteStep<T>
Starts a new delete statement with a condition. SQL equivalent DELETE FROM
find<T>(dynamic key, [Type type]) → Future<T?>
Finds an entity of the specified type by primary key.
insertAll<T>(Iterable<T> entities) → Future
Inserts all specified entities of the same type in this Box.
keyOf(dynamic entity) → dynamic
Returns the key of the specified entity.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
select(List<Field> fields) → SelectStep
Starts a new query selecting the specified fields from the specified type. SQL equivalent SELECT
selectFrom<T>([Type type, String alias]) → QueryStep<T>
Starts a new query selecting all fields from the specified type. SQL: SELECT * FROM
store<K>(dynamic entity) → Future<K>
Stores an entity in this Box. The entity is persisted if this Box implementation is persistent.
storeAll<K>(Iterable entities) → Future<List<K>>
Stores all specified entities in this Box.
toString() → String
A string representation of this object.
inherited
update<T>([Type type]) → UpdateStep<T>
Starts a new update statement for the specified type from this Box.

Operators

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