Entity class abstract
An entity which can be stored into an entity store.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- oid ↔ String
-
The OID.
getter/setter pair
- otype → String
-
The object type.
*
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stored ↔ bool
-
Whether this entity has been stored into database.
getter/setter pair
Methods
-
compareTo(
Entity e) → int -
Compares this object to another object.
override
-
delete(
Access access, {AccessOption? option}) → Future? - Deletes this entity.
-
getDBType(
dynamic field) → String? - Returns the DB type of the given field, or null if no need to handle it specially.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
AccessReader reader, Map data, Iterable< String> ? fields) → void - Reads the given JSON object into the data members of this entity. *
-
save(
Access access, Iterable< String> ? fields, [void beforeSave(Map data, Iterable<String> ? fields)?]) → Future? - Saves this entity. *
-
toJson(
) → dynamic - By default, it returns oid when jsonized.
-
toString(
) → String -
A string representation of this object.
override
-
write(
AccessWriter writer, Map data, Iterable< String> ? fields) → void - Writes this entity to a JSON object that can be serialized to
Operators
-
operator ==(
Object o) → bool -
The equality operator.
override