Class JPAQueryTuple

  • All Implemented Interfaces:
    javax.persistence.Tuple

    public class JPAQueryTuple
    extends Object
    implements javax.persistence.Tuple
    Implementation of a JPA Tuple, for a query result.
    • Constructor Detail

      • JPAQueryTuple

        public JPAQueryTuple()
    • Method Detail

      • put

        public void put​(Object key,
                        Object val)
        Method used by DataNucleus query mechanism to load up the row results into this tuple.
        Parameters:
        key - Key of the result
        val - Value of the result
      • get

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

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

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

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

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

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

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