java.lang.Object
com.sap.olingo.jpa.processor.core.converter.JPATuple
All Implemented Interfaces:
javax.persistence.Tuple

public final class JPATuple extends Object implements javax.persistence.Tuple
  • Constructor Details

    • JPATuple

      public JPATuple()
  • Method Details

    • addElement

      public void addElement(String alias, Class<?> javaType, Object value)
    • get

      public Object get(int arg0)
      Specified by:
      get in interface javax.persistence.Tuple
    • get

      public <X> X get(int arg0, Class<X> arg1)
      Specified by:
      get in interface javax.persistence.Tuple
    • get

      public Object get(String alias)
      Get the value of the tuple element to which the specified alias has been assigned.
      Specified by:
      get in interface javax.persistence.Tuple
      Parameters:
      alias - alias assigned to tuple element
      Returns:
      value of the tuple element
      Throws:
      IllegalArgumentException - if alias does not correspond to an element in the query result tuple
    • get

      public <X> X get(String arg0, Class<X> arg1)
      Specified by:
      get in interface javax.persistence.Tuple
    • get

      public <X> X get(javax.persistence.TupleElement<X> arg0)
      Specified by:
      get in interface javax.persistence.Tuple
    • getElements

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

      public Object[] toArray()
      Specified by:
      toArray in interface javax.persistence.Tuple