Class MutinyMutationQueryImpl<R>
java.lang.Object
org.hibernate.reactive.mutiny.impl.MutinyMutationQueryImpl<R>
- All Implemented Interfaces:
Mutiny.AbstractQuery,Mutiny.MutationQuery
-
Constructor Summary
ConstructorsConstructorDescriptionMutinyMutationQueryImpl(ReactiveMutationQuery<R> delegate, MutinySessionFactoryImpl factory) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Integer>Asynchronously execute this delete, update, or insert query, returning the updated row count.setComment(String comment) Set the comment for this query.setParameter(int position, Object value) Set the value of an ordinal parameter.setParameter(jakarta.persistence.Parameter<P> param, P value) Set the value of a typed parameter.setParameter(String name, Object value) Set the value of a named parameter.
-
Constructor Details
-
MutinyMutationQueryImpl
-
-
Method Details
-
executeUpdate
Description copied from interface:Mutiny.MutationQueryAsynchronously execute this delete, update, or insert query, returning the updated row count.- Specified by:
executeUpdatein interfaceMutiny.MutationQuery- Returns:
- the row count as an integer
- See Also:
-
Query.executeUpdate()
-
setParameter
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- Specified by:
setParameterin interfaceMutiny.MutationQuery- Parameters:
name- the name of the parametervalue- the argument to set
-
setParameter
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- Specified by:
setParameterin interfaceMutiny.MutationQuery- Parameters:
position- an integer identifying the ordinal parametervalue- the argument to set
-
setParameter
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- Specified by:
setParameterin interfaceMutiny.MutationQuery- Parameters:
param- the parametervalue- the argument to set- See Also:
-
CriteriaBuilder.parameter(Class)
-
getComment
- Specified by:
getCommentin interfaceMutiny.AbstractQuery
-
setComment
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- Specified by:
setCommentin interfaceMutiny.MutationQuery- Parameters:
comment- The human-readable comment
-