Class TupleImpl

java.lang.Object
org.apache.openjpa.persistence.TupleImpl
All Implemented Interfaces:
jakarta.persistence.Tuple

public class TupleImpl extends 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 Details

    • PUT

      public static Method PUT
  • Method Details

    • get

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

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

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

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

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

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

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

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