Class TypedQueryReferenceImpl<R>

java.lang.Object
org.apache.openjpa.persistence.TypedQueryReferenceImpl<R>
Type Parameters:
R - the result type of the referenced named query
All Implemented Interfaces:
TypedQueryReference<R>

public class TypedQueryReferenceImpl<R> extends Object implements TypedQueryReference<R>
Immutable implementation of the JPA 3.2 TypedQueryReference. Instances are handed out by EntityManagerFactoryImpl.getNamedQueries(Class) and can be passed back to EntityManager.createQuery(TypedQueryReference).
Since:
4.2.0
  • Constructor Details

    • TypedQueryReferenceImpl

      public TypedQueryReferenceImpl(String name, Class<? extends R> resultType, Map<String,Object> hints)
      Constructor.
      Parameters:
      name - the name of the named query, must not be null
      resultType - the declared result type of the named query, must not be null
      hints - the query hints, may be null or empty. A defensive, unmodifiable copy is taken.
  • Method Details