java.lang.Object
java.lang.Record
org.litebridge.orm.engine.ast.DeleteNode
- Record Components:
previous- the previous node in the chaintable- the table to delete fromdtoClass- class of the DTO to delete
- All Implemented Interfaces:
QueryNode
public record DeleteNode(@Nullable QueryNode previous, @Nullable String table, @Nullable Class<?> dtoClass)
extends Record
implements QueryNode
Represents a DELETE statement in the query AST.
-
Constructor Summary
ConstructorsConstructorDescriptionDeleteNode(@Nullable QueryNode previous, @Nullable String table, @Nullable Class<?> dtoClass) Creates an instance of aDeleteNoderecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Class<?> dtoClass()Returns the value of thedtoClassrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable QueryNodeprevious()Returns the value of thepreviousrecord component.@Nullable Stringtable()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
previous
Returns the value of thepreviousrecord component. -
table
Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
dtoClass
Returns the value of thedtoClassrecord component.- Returns:
- the value of the
dtoClassrecord component
-