java.lang.Object
org.litebridge.orm.persistence.AbstractStatementBuilder<Delete>
org.litebridge.orm.persistence.DeleteBuilder
- All Implemented Interfaces:
StatementBuilder<Delete>
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
ormTable -
Constructor Summary
ConstructorsConstructorDescriptionDeleteBuilder(OrmTable table) Constructs aDeleteBuilderfor the specified ORM table. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the final SQL statement.where(ConditionGroup conditionGroup) Sets the conditions for the DELETE statement.Methods inherited from class org.litebridge.orm.persistence.AbstractStatementBuilder
statementChain
-
Constructor Details
-
DeleteBuilder
Constructs aDeleteBuilderfor the specified ORM table.- Parameters:
table- the table to delete from
-
-
Method Details
-
where
Sets the conditions for the DELETE statement.- Parameters:
conditionGroup- the group of conditions to apply- Returns:
- this builder instance
-
build
Description copied from interface:StatementBuilderBuilds the final SQL statement.- Specified by:
buildin interfaceStatementBuilder<Delete>- Specified by:
buildin classAbstractStatementBuilder<Delete>- Returns:
- The built statement.
-