Class TupleFactory

  • All Implemented Interfaces:
    ObjectFactory<jakarta.persistence.Tuple>

    public class TupleFactory
    extends java.lang.Object
    implements ObjectFactory<jakarta.persistence.Tuple>
    A factory for tuples such that all instances created by a factory instance share the same TupleElements to save memory consumption.
    All Tuple instances created by this factory access the TupleElememts contained in this factory.
    Since:
    2.0.0
    Author:
    Pinaki Poddar
    • Constructor Summary

      Constructors 
      Constructor Description
      TupleFactory​(jakarta.persistence.criteria.Selection<?>... elems)  
      TupleFactory​(jakarta.persistence.TupleElement<?>... elems)  
      TupleFactory​(java.util.List<jakarta.persistence.TupleElement<?>> elems)
      A factory of Tuple that shares the given TupleElements.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<jakarta.persistence.TupleElement<?>> getElements()  
      int getIndex​(jakarta.persistence.TupleElement<?> e)  
      int getIndex​(java.lang.String alias)  
      TupleImpl newInstance()  
      • Methods inherited from class java.lang.Object

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

      • TupleFactory

        public TupleFactory​(java.util.List<jakarta.persistence.TupleElement<?>> elems)
        A factory of Tuple that shares the given TupleElements.
      • TupleFactory

        public TupleFactory​(jakarta.persistence.TupleElement<?>... elems)
      • TupleFactory

        public TupleFactory​(jakarta.persistence.criteria.Selection<?>... elems)
    • Method Detail

      • getElements

        public java.util.List<jakarta.persistence.TupleElement<?>> getElements()
      • getIndex

        public int getIndex​(jakarta.persistence.TupleElement<?> e)
      • getIndex

        public int getIndex​(java.lang.String alias)