ReferenceAction enum
An action for foreign keys controlling the behavior if the referenced value is changed or deleted.
Values
- setNull → const ReferenceAction
-
If the referenced value is updated or deleted, set the referencing column to null.
const ReferenceAction('SET NULL') - setDefault → const ReferenceAction
-
If the referenced value is updated or deleted, set the referencing column to its default.
const ReferenceAction('SET DEFAULT') - cascade → const ReferenceAction
-
Updates and deletions cascade along foreign keys.
const ReferenceAction('CASCADE') - restrict → const ReferenceAction
-
Updates and deletions are prevented if an active reference exists.
const ReferenceAction('RESTRICT') - noAction → const ReferenceAction
-
Don't do anything when a referenced value changes.
const ReferenceAction('NO ACTION')
Properties
- defaultLexeme → String
-
The default lexeme to use for this reference action in SQL.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ReferenceAction> - A constant List of the values in this enum, in order of their declaration.