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>
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 Summary
Constructors -
Method Summary
-
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 nullresultType- the declared result type of the named query, must not be nullhints- the query hints, may be null or empty. A defensive, unmodifiable copy is taken.
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceTypedQueryReference<R>
-
getResultType
- Specified by:
getResultTypein interfaceTypedQueryReference<R>
-
getHints
-
equals
-
hashCode
-
toString
-