java.lang.Object
org.litebridge.orm.persistence.AbstractStatementBuilder
org.litebridge.orm.persistence.AbstractConditionalStatementBuilder
org.litebridge.orm.persistence.DeleteBuilder
- All Implemented Interfaces:
StatementBuilder
A builder class for constructing SQL DELETE statements.
This class provides an API to facilitate the creation of DELETE statements targeting a specific table with optional conditions.
-
Field Summary
Fields inherited from class org.litebridge.orm.persistence.AbstractStatementBuilder
contextDtoClass, dto, litebridgeContext, node, nodeHash, ormTable -
Constructor Summary
ConstructorsConstructorDescriptionDeleteBuilder(Object dto, OrmTable table, @Nullable Class<?> contextDtoClass, LitebridgeContext litebridgeContext) Constructs aDeleteBuilderfor the specified ORM table. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the final SQL statement.voidSets a field value on the statement.Methods inherited from class org.litebridge.orm.persistence.AbstractConditionalStatementBuilder
whereMethods inherited from class org.litebridge.orm.persistence.AbstractStatementBuilder
createUpdateMetaData, dto, node, nodeHash, statementChainMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.litebridge.orm.persistence.StatementBuilder
combinable, combineWith, resultType
-
Constructor Details
-
DeleteBuilder
public DeleteBuilder(Object dto, OrmTable table, @Nullable Class<?> contextDtoClass, LitebridgeContext litebridgeContext) Constructs aDeleteBuilderfor the specified ORM table.- Parameters:
dto- The DTO to delete.table- the table to delete fromlitebridgeContext- the ORM context
-
-
Method Details
-
setField
Description copied from interface:StatementBuilderSets a field value on the statement.- Parameters:
fieldName- the name of the field to setvalue- the value to set
-
build
Description copied from interface:StatementBuilderBuilds the final SQL statement.- Specified by:
buildin interfaceStatementBuilder- Specified by:
buildin classAbstractStatementBuilder- Returns:
- The built statement.
-