E
- entity returned by executing the querypublic class JpaNamedQueryProvider<E> extends AbstractJpaQueryProvider
This query provider creates JPA named Query
s.
Constructor and Description |
---|
JpaNamedQueryProvider() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
javax.persistence.Query |
createQuery()
Create the query object.
|
void |
setEntityClass(java.lang.Class<E> entityClazz) |
void |
setNamedQuery(java.lang.String namedQuery) |
getEntityManager, setEntityManager
public javax.persistence.Query createQuery()
JpaQueryProvider
Create the query object.
public void setNamedQuery(java.lang.String namedQuery)
namedQuery
- name of a jpa named querypublic void setEntityClass(java.lang.Class<E> entityClazz)
entityClazz
- name of a jpa entity classpublic void afterPropertiesSet() throws java.lang.Exception
java.lang.Exception