Record Class SqmTranslationRequest.Mutation

java.lang.Object
java.lang.Record
org.hibernate.query.sqm.sql.spi.SqmTranslationRequest.Mutation
All Implemented Interfaces:
SqmTranslationRequest<SqmDmlStatement<?>>
Enclosing interface:
SqmTranslationRequest<S extends SqmStatement<?>>

public static record SqmTranslationRequest.Mutation(SqmDmlStatement<?> statement, QueryOptions queryOptions, SqmParameterMapping parameterMapping, QueryParameterBindings parameterBindings, LoadQueryInfluencers loadQueryInfluencers, SqlAstCreationContext creationContext) extends Record implements SqmTranslationRequest<SqmDmlStatement<?>>
Request to translate an SQM mutation statement.
Since:
8.0
  • Constructor Details

    • Mutation

      public Mutation(SqmDmlStatement<?> statement, QueryOptions queryOptions, SqmParameterMapping parameterMapping, QueryParameterBindings parameterBindings, LoadQueryInfluencers loadQueryInfluencers, SqlAstCreationContext creationContext)
      Creates an instance of a Mutation record class.
      Parameters:
      statement - the value for the statement record component
      queryOptions - the value for the queryOptions record component
      parameterMapping - the value for the parameterMapping record component
      parameterBindings - the value for the parameterBindings record component
      loadQueryInfluencers - the value for the loadQueryInfluencers record component
      creationContext - the value for the creationContext record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • statement

      public SqmDmlStatement<?> statement()
      Returns the value of the statement record component.
      Specified by:
      statement in interface SqmTranslationRequest<SqmDmlStatement<?>>
      Returns:
      the value of the statement record component
    • queryOptions

      public QueryOptions queryOptions()
      Returns the value of the queryOptions record component.
      Specified by:
      queryOptions in interface SqmTranslationRequest<SqmDmlStatement<?>>
      Returns:
      the value of the queryOptions record component
    • parameterMapping

      public SqmParameterMapping parameterMapping()
      Returns the value of the parameterMapping record component.
      Specified by:
      parameterMapping in interface SqmTranslationRequest<SqmDmlStatement<?>>
      Returns:
      the value of the parameterMapping record component
    • parameterBindings

      public QueryParameterBindings parameterBindings()
      Returns the value of the parameterBindings record component.
      Specified by:
      parameterBindings in interface SqmTranslationRequest<SqmDmlStatement<?>>
      Returns:
      the value of the parameterBindings record component
    • loadQueryInfluencers

      public LoadQueryInfluencers loadQueryInfluencers()
      Returns the value of the loadQueryInfluencers record component.
      Specified by:
      loadQueryInfluencers in interface SqmTranslationRequest<SqmDmlStatement<?>>
      Returns:
      the value of the loadQueryInfluencers record component
    • creationContext

      public SqlAstCreationContext creationContext()
      Returns the value of the creationContext record component.
      Specified by:
      creationContext in interface SqmTranslationRequest<SqmDmlStatement<?>>
      Returns:
      the value of the creationContext record component