Record Class DbAction.DeleteAll<T>
java.lang.Object
java.lang.Record
org.springframework.data.relational.core.conversion.DbAction.DeleteAll<T>
- Type Parameters:
T- type of the entity for which this represents a database interaction.
- All Implemented Interfaces:
DbAction<T>, DbAction.WithPropertyPath<T>
public static record DbAction.DeleteAll<T>(PersistentPropertyPath<RelationalPersistentProperty> propertyPath)
extends Record
implements DbAction.WithPropertyPath<T>
Represents a delete statement for all entities that are reachable via a given path from any aggregate root of a
given type.
- 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
ConstructorsConstructorDescriptionDeleteAll(PersistentPropertyPath<RelationalPersistentProperty> propertyPath) Creates an instance of aDeleteAllrecord class. -
Method Summary
Methods inherited from interface DbAction.WithPropertyPath
getEntityType
-
Constructor Details
-
DeleteAll
Creates an instance of aDeleteAllrecord class.- Parameters:
propertyPath- the value for thepropertyPathrecord component
-
-
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). -
propertyPath
Returns the value of thepropertyPathrecord component.- Specified by:
propertyPathin interfaceDbAction.WithPropertyPath<T>- Returns:
- the value of the
propertyPathrecord component
-