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 DeleteStatementwhere(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 DeleteStatementAdds 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, waitMethods inherited from interface io.github.torand.fastersql.statement.PreparableStatement
toStringMethods inherited from interface io.github.torand.fastersql.sql.Sql
aliasRefs, columnRefs
-
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:SqlFormats object as an SQL fragment. -
params
Description copied from interface:SqlGets the statement parameters introduced by this fragment. -
toString
-