Class TupleImpl

java.lang.Object
org.hibernate.sql.results.internal.TupleImpl
All Implemented Interfaces:
Tuple, JpaTuple

public class TupleImpl extends Object implements JpaTuple
Implementation of the JPA Tuple contract
Author:
Steve Ebersole
  • Constructor Details

  • Method Details

    • get

      public <X> X get(TupleElement<X> tupleElement)
      Description copied from interface: Tuple
      Get the value of the specified tuple element.
      Specified by:
      get in interface Tuple
      Parameters:
      tupleElement - tuple element
      Returns:
      value of tuple element
    • get

      public <X> X get(String alias, Class<X> type)
      Description copied from interface: Tuple
      Get the value of the tuple element to which the specified alias has been assigned.
      Specified by:
      get in interface Tuple
      Parameters:
      alias - alias assigned to tuple element
      type - of the tuple element
      Returns:
      value of the tuple element
    • get

      public Object get(String alias)
      Description copied from interface: Tuple
      Get the value of the tuple element to which the specified alias has been assigned.
      Specified by:
      get in interface Tuple
      Parameters:
      alias - alias assigned to tuple element
      Returns:
      value of the tuple element
    • get

      public <X> X get(int i, Class<X> type)
      Description copied from interface: Tuple
      Get the value of the element at the specified position in the result tuple. The first position is 0.
      Specified by:
      get in interface Tuple
      Parameters:
      i - position in result tuple
      type - type of the tuple element
      Returns:
      value of the tuple element
    • get

      public Object get(int i)
      Description copied from interface: Tuple
      Get the value of the element at the specified position in the result tuple. The first position is 0.
      Specified by:
      get in interface Tuple
      Parameters:
      i - position in result tuple
      Returns:
      value of the tuple element
    • toArray

      public Object[] toArray()
      Description copied from interface: Tuple
      Return the values of the result tuple elements as an array.
      Specified by:
      toArray in interface Tuple
      Returns:
      tuple element values
    • getElements

      public List<TupleElement<?>> getElements()
      Description copied from interface: Tuple
      Return the tuple elements.
      Specified by:
      getElements in interface Tuple
      Returns:
      tuple elements
    • toString

      public String toString()
      Overrides:
      toString in class Object