ForeignKeyAction enum
Describes how to react if the row a foreign key refers to changes / is deleted.
- Inheritance
- Implemented types
- Available extensions
Values
- setNull → const ForeignKeyAction
-
setNull specifies that the appropriate values of a row referencing an other one should be set to null on update or deletion.
- setDefault → const ForeignKeyAction
-
setNull specifies that the appropriate values of a row referencing an other one should be set to the default value on update or deletion.
- restrict → const ForeignKeyAction
-
Prevent the change from occurring.
- noAction → const ForeignKeyAction
-
Same as restrict, but allows the check to be deferred until later in the transaction.
noAction is the default
- cascade → const ForeignKeyAction
-
cascade specifies that deletion or updating of a referred row, should be propagated down.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → int -
Returns a serialized JSON structure of the model which also includes
fields used by the database.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
int index) → ForeignKeyAction
Constants
-
values
→ const List<
ForeignKeyAction> - A constant List of the values in this enum, in order of their declaration.