CascadeDeleteResult<T extends DatumEntityInterface> class

Result of a cascade delete operation.

Constructors

CascadeDeleteResult({required bool success, required T? entity, required Map<Type, List<DatumEntityInterface>> deletedEntities, required Map<String, List<DatumEntityInterface>> restrictedRelations, required List<String> errors})
const

Properties

deletedEntities → Map<Type, List<DatumEntityInterface>>
Map of entity types to lists of entities that were successfully deleted.
final
entity → T?
The main entity that was attempted to be deleted.
final
errors → List<String>
List of error messages encountered during the operation.
final
hashCode → int
The hash code for this object.
no setterinherited
restrictedRelations → Map<String, List<DatumEntityInterface>>
Map of relation names to entities that prevented deletion (for restrict behavior).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
success → bool
Whether the cascade delete operation was successful.
final
totalDeleted → int
Total number of entities deleted across all types.
no setter

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