org.apache.openjpa.persistence
Class TupleFactory
java.lang.Object
org.apache.openjpa.persistence.TupleFactory
- All Implemented Interfaces:
- ObjectFactory<javax.persistence.Tuple>
public class TupleFactory
- extends java.lang.Object
- implements ObjectFactory<javax.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 |
TupleFactory(java.util.List<javax.persistence.TupleElement<?>> elems)
A factory of Tuple that shares the given TupleElements. |
TupleFactory(javax.persistence.criteria.Selection<?>... elems)
|
TupleFactory(javax.persistence.TupleElement<?>... elems)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TupleFactory
public TupleFactory(java.util.List<javax.persistence.TupleElement<?>> elems)
- A factory of Tuple that shares the given TupleElements.
TupleFactory
public TupleFactory(javax.persistence.TupleElement<?>... elems)
TupleFactory
public TupleFactory(javax.persistence.criteria.Selection<?>... elems)
getElements
public java.util.List<javax.persistence.TupleElement<?>> getElements()
newInstance
public TupleImpl newInstance()
- Specified by:
newInstance
in interface ObjectFactory<javax.persistence.Tuple>
getIndex
public int getIndex(javax.persistence.TupleElement<?> e)
getIndex
public int getIndex(java.lang.String alias)