Bean<ModelType> class

Interface for bean class for a model

Constructors

Bean(Adapter adapter)

Properties

adapter Adapter
The adapter for a particular database
final
fields → Map<String, Field>
Map of fields in the table
read-only
finder Find
Creates a 'find' query
read-only
inserter Insert
Creates a 'insert' query
read-only
inserters InsertMany
Creates a 'insertMany' query
read-only
remover Remove
Creates a 'delete' query
read-only
tableName → String
The name of the table in database
read-only
updater Update
Creates a 'update' query
read-only
updaters UpdateMany
Creates a 'updateMany' query
read-only
upserter Upsert
Creates a 'upsert' query
read-only
upserters UpsertMany
Creates a 'upsertMany' query
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

drop() → Future<void>
Drops the table if it already exists
findMany(Find statement) → Future<List<ModelType>>
Returns a list of rows found by executing statement
findOne(Find statement) → Future<ModelType>
Returns one row found by executing statement
findOneWhere(dynamic exp) → Future<ModelType>
findWhere(dynamic where) → Future<List<ModelType>>
fromMap(Map map) → ModelType
Creates a model from the map
getAll() → Future<List<ModelType>>
Fetches all rows in the table/document
removeAll() → Future<int>
Removes all rows in table/document
removeWhere(dynamic where) → Future<int>
toSetColumns(ModelType model, { bool update: false, Set<String> only }) → List<SetColumn>
Creates list of 'set' column from model to be used in update or insert query
updateFields(dynamic where, Map<String, dynamic> values) → Future<int>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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