Class DeleteStatement
java.lang.Object
io.github.torand.fastersql.statement.DeleteStatement
- All Implemented Interfaces:
Sql
,PreparableStatement
Implements a DELETE statement.
-
Method Summary
Modifier and TypeMethodDescriptionGets the statement parameters introduced by this fragment.Formats object as an SQL fragment.toString()
final DeleteStatement
where
(OptionalPredicate... maybePredicates) Adds optional predicates to the WHERE clause if the wrapped predicates are present.Adds one or more predicates to the WHERE clause.final DeleteStatement
Adds supplied predicates to the WHERE clause, if the condition is true.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.torand.fastersql.statement.PreparableStatement
aliasRefs, columnRefs, toString
-
Method Details
-
where
Adds one or more predicates to the WHERE clause.- Parameters:
predicates
- the predicates.- Returns:
- the modified statement.
-
where
Adds optional predicates to the WHERE clause if the wrapped predicates are present.- Parameters:
maybePredicates
- the optional predicates.- Returns:
- the modified statement.
-
whereIf
@SafeVarargs public final DeleteStatement whereIf(boolean condition, Supplier<Predicate>... predicateSuppliers) Adds supplied predicates to the WHERE clause, if the condition is true.- Parameters:
condition
- the condition.predicateSuppliers
- the suppliers providing predicates- Returns:
- the modified statement.
-
sql
Description copied from interface:Sql
Formats object as an SQL fragment. -
params
Description copied from interface:Sql
Gets the statement parameters introduced by this fragment. -
toString
-