CrdtDataAttemptedValue class abstract
Authored field value retained while the domain column holds a projection.
Sparse one-to-one dependent of CrdtDataField. Present only while the
materialized domain value differs from the authored value. value is a
durable authored fact; projectionReason is disposable diagnostic state.
Constructors
- CrdtDataAttemptedValue({int? id, required int fieldId, CrdtDataField? field, required dynamic value, required CrdtProjectionReason projectionReason})
-
factory
-
CrdtDataAttemptedValue.fromJson(Map<
String, dynamic> jsonSerialization) -
factory
Properties
- field ↔ CrdtDataField?
-
getter/setter pair
- fieldId ↔ int
-
The field whose authored value this row preserves.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int?
-
The id column of the row. Can be null if this row is not yet stored in
the database.
getter/setter pair
- projectionReason ↔ CrdtProjectionReason
-
Terminal projector that selected the current domain value.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
table
→ Table<
int?> -
The table that this row belongs to.
no setter
- value ↔ dynamic
-
The authored value, using Serverpod's dynamic
{className, data}envelope.getter/setter pair
Methods
-
copyWith(
{int? id, int? fieldId, CrdtDataField? field, dynamic value, CrdtProjectionReason? projectionReason}) → CrdtDataAttemptedValue - Returns a shallow copy of this CrdtDataAttemptedValue with some or all fields replaced by the given arguments.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Returns a serialized JSON structure of the model which also includes fields used by the database.
-
toJsonForProtocol(
) → Map< String, dynamic> - Returns a JSON structure of the model, optimized for Protocol communication.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- t → CrdtDataAttemptedValueTable
-
final
Static Methods
-
include(
{CrdtDataFieldInclude? field}) → CrdtDataAttemptedValueInclude -
includeList(
{WhereExpressionBuilder< CrdtDataAttemptedValueTable> ? where, int? limit, int? offset, OrderByBuilder<CrdtDataAttemptedValueTable> ? orderBy, OrderByListBuilder<CrdtDataAttemptedValueTable> ? orderByList, CrdtDataAttemptedValueInclude? include}) → CrdtDataAttemptedValueIncludeList
Constants
- db → const CrdtDataAttemptedValueRepository