接口 QueryProducerImplementor
-
- 所有超级接口:
QueryProducer
- 所有已知实现类:
AbstractSessionImpl,AbstractSharedSessionContract,SessionDelegatorBaseImpl,SessionImpl,StatelessSessionImpl
public interface QueryProducerImplementor extends QueryProducer
The internal contract for QueryProducer implementations. Acts as the value passed to produced queries and provides them with access to needed functionality.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 QuerycreateNamedQuery(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.NativeQueryImplementorcreateNativeQuery(String sqlString)Create a NativeQuery instance for the given native (SQL) queryNativeQueryImplementorcreateNativeQuery(String sqlString, Class resultClass)Create a NativeQuery instance for the given native (SQL) query using implicit mapping to the specified Java type.NativeQueryImplementorcreateNativeQuery(String sqlString, String resultSetMapping)Create a NativeQuery instance for the given native (SQL) query using implicit mapping to the specified Java type.QueryImplementorcreateQuery(String queryString)Create aQueryinstance for the given HQL/JPQL query string.<R> QueryImplementor<R>createQuery(String queryString, Class<R> resultClass)Create a typedQueryinstance for the given HQL/JPQL query string.default NativeQueryImplementorcreateSQLQuery(String queryString)Create aNativeQueryinstance for the given SQL query string.CacheModegetCacheMode()SessionFactoryImplementorgetFactory()FlushModegetHibernateFlushMode()NativeQueryImplementorgetNamedNativeQuery(String name)Get a NativeQuery instance for a named native SQL queryQueryImplementorgetNamedQuery(String queryName)Create aQueryinstance for the named query.default NativeQueryImplementorgetNamedSQLQuery(String name)Get a NativeQuery instance for a named native SQL query-
从接口继承的方法 org.hibernate.query.QueryProducer
createQuery, createQuery, createQuery
-
-
-
-
方法详细资料
-
getFactory
SessionFactoryImplementor getFactory()
-
getHibernateFlushMode
FlushMode getHibernateFlushMode()
-
getCacheMode
CacheMode getCacheMode()
-
getNamedQuery
QueryImplementor getNamedQuery(String queryName)
从接口复制的说明:QueryProducerCreate aQueryinstance for the named query.- 指定者:
getNamedQuery在接口中QueryProducer- 参数:
queryName- the name of a pre-defined, named query- 返回:
- The Query instance for manipulation and execution
-
createQuery
QueryImplementor createQuery(String queryString)
从接口复制的说明:QueryProducerCreate aQueryinstance for the given HQL/JPQL query string.- 指定者:
createQuery在接口中QueryProducer- 参数:
queryString- The HQL/JPQL query- 返回:
- The Query instance for manipulation and execution
- 另请参阅:
EntityManager.createQuery(String)
-
createQuery
<R> QueryImplementor<R> createQuery(String queryString, Class<R> resultClass)
从接口复制的说明:QueryProducerCreate a typedQueryinstance for the given HQL/JPQL query string.- 指定者:
createQuery在接口中QueryProducer- 参数:
queryString- The HQL/JPQL query- 返回:
- The Query instance for manipulation and execution
- 另请参阅:
EntityManager.createQuery(String,Class)
-
createNamedQuery
Query createNamedQuery(String name)
从接口复制的说明:QueryProducerThe JPA-defined named query creation method. This form can represent an HQL/JPQL query or a native query.- 指定者:
createNamedQuery在接口中QueryProducer- 参数:
name- the name of a pre-defined, named query- 返回:
- The Query instance for manipulation and execution
- 另请参阅:
EntityManager.createNamedQuery(String)
-
createNamedQuery
<R> QueryImplementor<R> createNamedQuery(String name, Class<R> resultClass)
从接口复制的说明:QueryProducerThe JPA-defined named, typed query creation method. This form can only represent an HQL/JPQL query (not a native query).- 指定者:
createNamedQuery在接口中QueryProducer- 参数:
name- the name of a query defined in metadataresultClass- the type of the query result- 返回:
- The Query instance for manipulation and execution
- 另请参阅:
EntityManager.createNamedQuery(String,Class)
-
createNativeQuery
NativeQueryImplementor createNativeQuery(String sqlString)
从接口复制的说明:QueryProducerCreate a NativeQuery instance for the given native (SQL) query- 指定者:
createNativeQuery在接口中QueryProducer- 参数:
sqlString- a native SQL query string- 返回:
- The NativeQuery instance for manipulation and execution
- 另请参阅:
EntityManager.createNativeQuery(String)
-
createNativeQuery
NativeQueryImplementor createNativeQuery(String sqlString, Class resultClass)
从接口复制的说明:QueryProducerCreate a NativeQuery instance for the given native (SQL) query using implicit mapping to the specified Java type.- 指定者:
createNativeQuery在接口中QueryProducer- 参数:
sqlString- Native (SQL) query stringresultClass- The Java type to map results to- 返回:
- The NativeQuery instance for manipulation and execution
- 另请参阅:
EntityManager.createNativeQuery(String,Class)
-
createNativeQuery
NativeQueryImplementor createNativeQuery(String sqlString, String resultSetMapping)
从接口复制的说明:QueryProducerCreate a NativeQuery instance for the given native (SQL) query using implicit mapping to the specified Java type.- 指定者:
createNativeQuery在接口中QueryProducer- 参数:
sqlString- Native (SQL) query stringresultSetMapping- The explicit (named) result mapping- 返回:
- The NativeQuery instance for manipulation and execution
- 另请参阅:
EntityManager.createNativeQuery(String,Class),SqlResultSetMapping
-
getNamedNativeQuery
NativeQueryImplementor getNamedNativeQuery(String name)
从接口复制的说明:QueryProducerGet a NativeQuery instance for a named native SQL query- 指定者:
getNamedNativeQuery在接口中QueryProducer- 参数:
name- The name of the pre-defined query- 返回:
- The NativeQuery instance for manipulation and execution
-
getNamedSQLQuery
default NativeQueryImplementor getNamedSQLQuery(String name)
从接口复制的说明:QueryProducerGet a NativeQuery instance for a named native SQL query- 指定者:
getNamedSQLQuery在接口中QueryProducer- 参数:
name- The name of the pre-defined query- 返回:
- The NativeQuery instance for manipulation and execution
-
createSQLQuery
default NativeQueryImplementor createSQLQuery(String queryString)
从接口复制的说明:QueryProducerCreate aNativeQueryinstance for the given SQL query string.- 指定者:
createSQLQuery在接口中QueryProducer- 参数:
queryString- The SQL query- 返回:
- The query instance for manipulation and execution
-
-