Class TupleImpl

  • All Implemented Interfaces:
    jakarta.persistence.Tuple

    public class TupleImpl
    extends java.lang.Object
    implements jakarta.persistence.Tuple
    Tuple holds a set of values corresponding to a set of TupleElement. This implementation prefers index-based access. A Tuple instance is constructed by a TupleFactory. The TupleElemets are shared across all the tuple instances.
    Author:
    Pinaki Poddar
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.reflect.Method PUT  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(int i)  
      <X> X get​(int i, java.lang.Class<X> type)  
      <X> X get​(jakarta.persistence.TupleElement<X> tupleElement)  
      java.lang.Object get​(java.lang.String alias)  
      <X> X get​(java.lang.String alias, java.lang.Class<X> type)  
      java.util.List<jakarta.persistence.TupleElement<?>> getElements()  
      void put​(java.lang.Integer key, java.lang.Object value)
      Put the value at the given key index.
      java.lang.Object[] toArray()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PUT

        public static java.lang.reflect.Method PUT
    • Method Detail

      • get

        public <X> X get​(jakarta.persistence.TupleElement<X> tupleElement)
        Specified by:
        get in interface jakarta.persistence.Tuple
      • get

        public <X> X get​(java.lang.String alias,
                         java.lang.Class<X> type)
        Specified by:
        get in interface jakarta.persistence.Tuple
      • get

        public java.lang.Object get​(java.lang.String alias)
        Specified by:
        get in interface jakarta.persistence.Tuple
      • get

        public <X> X get​(int i,
                         java.lang.Class<X> type)
        Specified by:
        get in interface jakarta.persistence.Tuple
      • get

        public java.lang.Object get​(int i)
        Specified by:
        get in interface jakarta.persistence.Tuple
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface jakarta.persistence.Tuple
      • getElements

        public java.util.List<jakarta.persistence.TupleElement<?>> getElements()
        Specified by:
        getElements in interface jakarta.persistence.Tuple
      • put

        public void put​(java.lang.Integer key,
                        java.lang.Object value)
        Put the value at the given key index. This is invoked by the kernel to populate a Tuple.