Package org.hibernate.reactive.mutiny
Interface Mutiny.MutationQuery
-
- All Superinterfaces:
Mutiny.AbstractQuery
- All Known Subinterfaces:
Mutiny.Query<R>
- All Known Implementing Classes:
MutinyMutationQueryImpl,MutinyQueryImpl
- Enclosing interface:
- Mutiny
public static interface Mutiny.MutationQuery extends Mutiny.AbstractQuery
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<java.lang.Integer>executeUpdate()Asynchronously execute this delete, update, or insert query, returning the updated row count.Mutiny.MutationQuerysetComment(java.lang.String comment)Set the comment for this query.Mutiny.MutationQuerysetParameter(int parameter, java.lang.Object argument)Set the value of an ordinal parameter.<T> Mutiny.MutationQuerysetParameter(jakarta.persistence.Parameter<T> parameter, T argument)Set the value of a typed parameter.Mutiny.MutationQuerysetParameter(java.lang.String parameter, java.lang.Object argument)Set the value of a named parameter.-
Methods inherited from interface org.hibernate.reactive.mutiny.Mutiny.AbstractQuery
getComment
-
-
-
-
Method Detail
-
executeUpdate
io.smallrye.mutiny.Uni<java.lang.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
Mutiny.MutationQuery setParameter(int parameter, java.lang.Object argument)
Description copied from interface:Mutiny.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 interfaceMutiny.AbstractQuery- Parameters:
parameter- an integer identifying the ordinal parameterargument- the argument to set
-
setParameter
Mutiny.MutationQuery setParameter(java.lang.String parameter, java.lang.Object argument)
Description copied from interface:Mutiny.AbstractQuerySet the value of a named parameter. Named parameters are specified in the query using placeholder tokens of form:name.- Specified by:
setParameterin interfaceMutiny.AbstractQuery- Parameters:
parameter- the name of the parameterargument- the argument to set
-
setParameter
<T> Mutiny.MutationQuery setParameter(jakarta.persistence.Parameter<T> parameter, T argument)
Description copied from interface:Mutiny.AbstractQuerySet the value of a typed parameter. Typed parameters are obtained from the JPACriteriaBuilder, which may itself be obtained by callingMutiny.SessionFactory.getCriteriaBuilder().- Specified by:
setParameterin interfaceMutiny.AbstractQuery- Parameters:
parameter- the parameterargument- the argument to set- See Also:
CriteriaBuilder.parameter(Class)
-
setComment
Mutiny.MutationQuery setComment(java.lang.String comment)
Description copied from interface:Mutiny.AbstractQuerySet the comment for this query. This comment will be prepended to the SQL query sent to the database.- Specified by:
setCommentin interfaceMutiny.AbstractQuery- Parameters:
comment- The human-readable comment
-
-