Module litebridge.orm
Class SqlDeleteWhereConditionClauseTerminalImpl
java.lang.Object
org.litebridge.orm.api.sql.delete.SqlDeleteWhereConditionClauseTerminalImpl
- All Implemented Interfaces:
DeleteQuery,DeleteTerminal,DeleteWhereConditionClauseTerminal<Row,,SqlDeleteWhereConditionClause, SqlDeleteWhereConditionClauseTerminal> ConditionClauseTerminal<Row,,SqlDeleteWhereConditionClause, SqlDeleteWhereConditionClauseTerminal> SqlDeleteWhereConditionClauseTerminal
public final class SqlDeleteWhereConditionClauseTerminalImpl
extends Object
implements SqlDeleteWhereConditionClauseTerminal, DeleteTerminal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds an "AND" condition to the current condition clause using the specified column.and(QueryConditionBuilder<Row> query) Adds an "AND" condition with a nested condition clause.and(ExpressionSpec expression) Adds an "AND" condition to the current condition clause using the specified expression.execute()Executes the delete query and returns the result.Adds an "OR" condition to the current condition clause using the specified column.or(QueryConditionBuilder<Row> query) Adds an "OR" condition with specified nested condition clause.or(ExpressionSpec expression) Adds an "OR" condition to the current condition clause using the specified expression.
-
Constructor Details
-
SqlDeleteWhereConditionClauseTerminalImpl
-
-
Method Details
-
execute
Description copied from interface:DeleteTerminalExecutes the delete query and returns the result.- Specified by:
executein interfaceDeleteTerminal- Returns:
- the result of the delete operation
-
and
Description copied from interface:ConditionClauseTerminalAdds an "AND" condition to the current condition clause using the specified column.This method is used to chain additional conditions in a SQL query in a fluent manner.
- Specified by:
andin interfaceConditionClauseTerminal<Row,SqlDeleteWhereConditionClause, SqlDeleteWhereConditionClauseTerminal> - Parameters:
column- the name of the column to be used in the "AND" condition- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
and
Description copied from interface:ConditionClauseTerminalAdds an "AND" condition to the current condition clause using the specified expression.This method is used to chain additional conditions in a SQL query in a type-safe and fluent manner.
- Specified by:
andin interfaceConditionClauseTerminal<Row,SqlDeleteWhereConditionClause, SqlDeleteWhereConditionClauseTerminal> - Parameters:
expression- the expression to be used in the "AND" condition- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
and
Description copied from interface:ConditionClauseTerminalAdds an "AND" condition with a nested condition clause.The nested condition clause is grouped with parentheses to ensure proper SQL syntax.
- Specified by:
andin interfaceConditionClauseTerminal<Row,SqlDeleteWhereConditionClause, SqlDeleteWhereConditionClauseTerminal> - Parameters:
query- Function that builds the nested condition clause- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
or
Description copied from interface:ConditionClauseTerminalAdds an "OR" condition to the current condition clause using the specified column.This method is used to chain additional conditions in a SQL query in a fluent manner.
- Specified by:
orin interfaceConditionClauseTerminal<Row,SqlDeleteWhereConditionClause, SqlDeleteWhereConditionClauseTerminal> - Parameters:
column- the name of the column to be used in the "AND" condition- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
or
Description copied from interface:ConditionClauseTerminalAdds an "OR" condition to the current condition clause using the specified expression.This method is used to chain additional conditions in a SQL query in a type-safe and fluent manner.
- Specified by:
orin interfaceConditionClauseTerminal<Row,SqlDeleteWhereConditionClause, SqlDeleteWhereConditionClauseTerminal> - Parameters:
expression- the expression to be used in the "AND" condition- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-
or
Description copied from interface:ConditionClauseTerminalAdds an "OR" condition with specified nested condition clause.The nested condition clause is grouped with parentheses to ensure proper SQL syntax.
- Specified by:
orin interfaceConditionClauseTerminal<Row,SqlDeleteWhereConditionClause, SqlDeleteWhereConditionClauseTerminal> - Parameters:
query- Function that builds the nested condition clause- Returns:
- the parent condition clause interface, allowing further chaining of conditions
-