Record Class DbAction.DeleteAllRoot<T>
java.lang.Object
java.lang.Record
org.springframework.data.relational.core.conversion.DbAction.DeleteAllRoot<T>
- Type Parameters:
T- type of the entity for which this represents a database interaction.
- All Implemented Interfaces:
DbAction<T>
public static record DbAction.DeleteAllRoot<T>(Class<T> getEntityType)
extends Record
implements DbAction<T>
Represents a delete statement for all aggregate roots of a given type.
Note that deletes for contained entities that reference the root are to be represented by separate
DbActions.
- Author:
- Jens Schauder, Mark Paluch, Tyler Van Gorder, Myeonghyeon Lee, Chirag Tailor
-
Nested Class Summary
Nested classes/interfaces inherited from interface DbAction
DbAction.AcquireLockAllRoot<T>, DbAction.AcquireLockRoot<T>, DbAction.BatchDelete<T>, DbAction.BatchDeleteRoot<T>, DbAction.BatchInsert<T>, DbAction.BatchInsertRoot<T>, DbAction.BatchWithValue<T,A, B>, DbAction.Delete<T>, DbAction.DeleteAll<T>, DbAction.DeleteAllRoot<T>, DbAction.DeleteRoot<T>, DbAction.Insert<T>, DbAction.InsertRoot<T>, DbAction.UpdateRoot<T>, DbAction.WithDependingOn<T>, DbAction.WithEntity<T>, DbAction.WithPropertyPath<T>, DbAction.WithRoot<T> -
Constructor Summary
ConstructorsConstructorDescriptionDeleteAllRoot(Class<T> getEntityType) Creates an instance of aDeleteAllRootrecord class. -
Method Summary
-
Constructor Details
-
DeleteAllRoot
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
getEntityType
Returns the value of thegetEntityTyperecord component.- Specified by:
getEntityTypein interfaceDbAction<T>- Returns:
- the value of the
getEntityTyperecord component
-