Package com.blazebit.persistence
Interface BaseUpdateCriteriaBuilder<T,X extends BaseUpdateCriteriaBuilder<T,X>>
-
- Type Parameters:
T
- The entity type for which this update query isX
- The concrete builder type
- All Superinterfaces:
BaseModificationCriteriaBuilder<X>
,BaseWhereBuilder<X>
,WhereBuilder<X>
- All Known Subinterfaces:
ReturningUpdateCriteriaBuilder<T,X>
,UpdateCriteriaBuilder<T>
public interface BaseUpdateCriteriaBuilder<T,X extends BaseUpdateCriteriaBuilder<T,X>> extends BaseModificationCriteriaBuilder<X>
A builder for update queries.- Since:
- 1.1.0
- Author:
- Christian Beikov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SubqueryInitiator<X>
set(String attribute)
Starts a subquery builder for creating an expression that should be bound to the attribute.SubqueryBuilder<X>
set(String attribute, FullQueryBuilder<?,?> criteriaBuilder)
Starts a subquery builder for creating an expression that should be bound to the attribute based on the given criteria builder.X
set(String attribute, Object value)
Binds the given value as parameter to the attribute.X
setExpression(String attribute, String expression)
Binds the given expression to the attribute.X
setNull(String attribute)
BindsNULL
to the attribute.MultipleSubqueryInitiator<X>
setSubqueries(String attribute, String expression)
Starts aMultipleSubqueryInitiator
with the given expression that should bound to the attribute.-
Methods inherited from interface com.blazebit.persistence.BaseWhereBuilder
where, whereCase, whereExists, whereExists, whereExpression, whereExpressionSubqueries, whereNotExists, whereNotExists, whereSimpleCase, whereSubqueries, whereSubquery, whereSubquery, whereSubquery, whereSubquery
-
Methods inherited from interface com.blazebit.persistence.WhereBuilder
setWhereExpression, setWhereExpressionSubqueries, whereOr
-
-
-
-
Method Detail
-
set
X set(String attribute, Object value)
Binds the given value as parameter to the attribute.- Parameters:
attribute
- The attribute for which the value should be boundvalue
- The value that should be bound- Returns:
- The query builder for chaining calls
-
setNull
X setNull(String attribute)
BindsNULL
to the attribute.- Parameters:
attribute
- The attribute for whichNULL
should be bound- Returns:
- The query builder for chaining calls
- Since:
- 1.5.0
-
setExpression
X setExpression(String attribute, String expression)
Binds the given expression to the attribute.- Parameters:
attribute
- The attribute for which the expression should be boundexpression
- The expression that should be bound- Returns:
- The query builder for chaining calls
-
set
SubqueryInitiator<X> set(String attribute)
Starts a subquery builder for creating an expression that should be bound to the attribute.- Parameters:
attribute
- The attribute for which the subquery expression should be bound- Returns:
- The query builder for chaining calls
-
set
SubqueryBuilder<X> set(String attribute, FullQueryBuilder<?,?> criteriaBuilder)
Starts a subquery builder for creating an expression that should be bound to the attribute based on the given criteria builder.- Parameters:
attribute
- The attribute for which the subquery expression should be boundcriteriaBuilder
- The criteria builder to base the subquery on- Returns:
- The subquery builder for building a subquery
- Since:
- 1.2.0
-
setSubqueries
MultipleSubqueryInitiator<X> setSubqueries(String attribute, String expression)
Starts aMultipleSubqueryInitiator
with the given expression that should bound to the attribute.All occurrences of subsequently defined
subqueryAlias
es inexpression
will be replaced by the respective subquery. When the builder finishes, the predicate is added to the parent predicate container represented by the typeT
.- Parameters:
attribute
- The attribute for which the expression should be boundexpression
- The expression for the lower bound of the between predicate.- Returns:
- The subquery initiator for building multiple subqueries for their respective subqueryAliases
-
-