public interface QueryProducerImplementor extends QueryProducer
Modifier and Type | Method and Description |
---|---|
Query |
createNamedQuery(String name)
The JPA-defined named query creation method.
|
<R> QueryImplementor<R> |
createNamedQuery(String name,
Class<R> resultClass)
The JPA-defined named, typed query creation method.
|
NativeQueryImplementor |
createNativeQuery(String sqlString)
Create a NativeQuery instance for the given native (SQL) query
|
NativeQueryImplementor |
createNativeQuery(String sqlString,
Class resultClass)
Create a NativeQuery instance for the given native (SQL) query using
implicit mapping to the specified Java type.
|
NativeQueryImplementor |
createNativeQuery(String sqlString,
String resultSetMapping)
Create a NativeQuery instance for the given native (SQL) query using
implicit mapping to the specified Java type.
|
QueryImplementor |
createQuery(String queryString)
Create a
Query instance for the given HQL/JPQL query string. |
<R> QueryImplementor<R> |
createQuery(String queryString,
Class<R> resultClass)
Create a typed
Query instance for the given HQL/JPQL query string. |
default NativeQueryImplementor |
createSQLQuery(String queryString)
Create a
NativeQuery instance for the given SQL query string. |
CacheMode |
getCacheMode() |
SessionFactoryImplementor |
getFactory() |
FlushMode |
getHibernateFlushMode() |
NativeQueryImplementor |
getNamedNativeQuery(String name)
Get a NativeQuery instance for a named native SQL query
|
QueryImplementor |
getNamedQuery(String queryName)
Create a
Query instance for the named query. |
default NativeQueryImplementor |
getNamedSQLQuery(String name)
Get a NativeQuery instance for a named native SQL query
|
SessionFactoryImplementor getFactory()
FlushMode getHibernateFlushMode()
CacheMode getCacheMode()
QueryImplementor getNamedQuery(String queryName)
QueryProducer
Query
instance for the named query.getNamedQuery
in interface QueryProducer
queryName
- the name of a pre-defined, named queryQueryImplementor createQuery(String queryString)
QueryProducer
Query
instance for the given HQL/JPQL query string.createQuery
in interface QueryProducer
queryString
- The HQL/JPQL queryEntityManager.createQuery(String)
<R> QueryImplementor<R> createQuery(String queryString, Class<R> resultClass)
QueryProducer
Query
instance for the given HQL/JPQL query string.createQuery
in interface QueryProducer
queryString
- The HQL/JPQL queryEntityManager.createQuery(String,Class)
Query createNamedQuery(String name)
QueryProducer
createNamedQuery
in interface QueryProducer
name
- the name of a pre-defined, named queryEntityManager.createNamedQuery(String)
<R> QueryImplementor<R> createNamedQuery(String name, Class<R> resultClass)
QueryProducer
createNamedQuery
in interface QueryProducer
name
- the name of a query defined in metadataresultClass
- the type of the query resultEntityManager.createNamedQuery(String,Class)
NativeQueryImplementor createNativeQuery(String sqlString)
QueryProducer
createNativeQuery
in interface QueryProducer
sqlString
- a native SQL query stringEntityManager.createNativeQuery(String)
NativeQueryImplementor createNativeQuery(String sqlString, Class resultClass)
QueryProducer
createNativeQuery
in interface QueryProducer
sqlString
- Native (SQL) query stringresultClass
- The Java type to map results toEntityManager.createNativeQuery(String,Class)
NativeQueryImplementor createNativeQuery(String sqlString, String resultSetMapping)
QueryProducer
createNativeQuery
in interface QueryProducer
sqlString
- Native (SQL) query stringresultSetMapping
- The explicit (named) result mappingEntityManager.createNativeQuery(String,Class)
,
SqlResultSetMapping
NativeQueryImplementor getNamedNativeQuery(String name)
QueryProducer
getNamedNativeQuery
in interface QueryProducer
name
- The name of the pre-defined querydefault NativeQueryImplementor getNamedSQLQuery(String name)
QueryProducer
getNamedSQLQuery
in interface QueryProducer
name
- The name of the pre-defined querydefault NativeQueryImplementor createSQLQuery(String queryString)
QueryProducer
NativeQuery
instance for the given SQL query string.createSQLQuery
in interface QueryProducer
queryString
- The SQL queryCopyright © 2019 JBoss by Red Hat. All rights reserved.