Record Class SqmTranslationRequest.Select

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

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

    • Select

      public Select(SqmSelectStatement<?> statement, QueryOptions queryOptions, SqmParameterMapping parameterMapping, QueryParameterBindings parameterBindings, LoadQueryInfluencers loadQueryInfluencers, SqlAstCreationContext creationContext, boolean deduplicateSelectionItems)
      Creates an instance of a Select 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
      deduplicateSelectionItems - the value for the deduplicateSelectionItems 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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 SqmSelectStatement<?> statement()
      Returns the value of the statement record component.
      Specified by:
      statement in interface SqmTranslationRequest<SqmSelectStatement<?>>
      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<SqmSelectStatement<?>>
      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<SqmSelectStatement<?>>
      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<SqmSelectStatement<?>>
      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<SqmSelectStatement<?>>
      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<SqmSelectStatement<?>>
      Returns:
      the value of the creationContext record component
    • deduplicateSelectionItems

      public boolean deduplicateSelectionItems()
      Returns the value of the deduplicateSelectionItems record component.
      Specified by:
      deduplicateSelectionItems in interface SqmTranslationRequest<SqmSelectStatement<?>>
      Returns:
      the value of the deduplicateSelectionItems record component