Package org.hibernate.reactive.stage
Interface Stage.MutationQuery
-
- All Superinterfaces:
Stage.AbstractQuery
- All Known Subinterfaces:
Stage.Query<R>
- Enclosing interface:
- Stage
public static interface Stage.MutationQuery extends Stage.AbstractQuery
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletionStage<Integer>executeUpdate()Asynchronously execute this delete, update, or insert query, returning the updated row count.Stage.MutationQuerysetComment(String comment)Set the comment for this query.Stage.MutationQuerysetParameter(int parameter, Object argument)Set the value of an ordinal parameter.<T> Stage.MutationQuerysetParameter(jakarta.persistence.Parameter<T> parameter, T argument)Set the value of a typed parameter.Stage.MutationQuerysetParameter(String parameter, Object argument)Set the value of a named parameter.-
Methods inherited from interface org.hibernate.reactive.stage.Stage.AbstractQuery
getComment
-
-
-
-
Method Detail
-
executeUpdate
CompletionStage<Integer> executeUpdate()
Asynchronously execute this delete, update, or insert query, returning the updated row count.- Returns:
- the row count as an integer
- See Also:
Query.executeUpdate()
-
setParameter
Stage.MutationQuery setParameter(int parameter, Object argument)
Description copied from interface:Stage.AbstractQuerySet the value of an ordinal parameter. Ordinal parameters are numbered from 1, and are specified in the query using placeholder tokens of form?1,?2, etc.- Specified by:
setParameterin interfaceStage.AbstractQuery- Parameters:
parameter- an integer identifying the ordinal parameterargument- the argument to set
-
setParameter
Stage.MutationQuery setParameter(String parameter, Object argument)
Description copied from interface:Stage.AbstractQuerySet the value of a named parameter. Named parameters are specified in the query using placeholder tokens of form:name.- Specified by:
setParameterin interfaceStage.AbstractQuery- Parameters:
parameter- the name of the parameterargument- the argument to set
-
setParameter
<T> Stage.MutationQuery setParameter(jakarta.persistence.Parameter<T> parameter, T argument)
Description copied from interface:Stage.AbstractQuerySet the value of a typed parameter. Typed parameters are obtained from the JPACriteriaBuilder, which may itself be obtained by callingStage.SessionFactory.getCriteriaBuilder().- Specified by:
setParameterin interfaceStage.AbstractQuery- Parameters:
parameter- the parameterargument- the argument to set- See Also:
CriteriaBuilder.parameter(Class)
-
setComment
Stage.MutationQuery setComment(String comment)
Description copied from interface:Stage.AbstractQuerySet the comment for this query. This comment will be prepended to the SQL query sent to the database.- Specified by:
setCommentin interfaceStage.AbstractQuery- Parameters:
comment- The human-readable comment
-
-