Interface HibernateQueryProvider<T>
- All Known Implementing Classes:
AbstractHibernateQueryProvider,HibernateNativeQueryProvider
Deprecated, for removal: This API element is subject to removal in a future version.
Interface defining the functionality to be provided for generating queries for use with
Hibernate ItemReaders or other custom built artifacts.
- Since:
- 2.1
- Author:
- Anatoly Polinsky, Dave Syer, Mahmoud Ben Hassine
-
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.query.Query<T>Deprecated, for removal: This API element is subject to removal in a future version.Create the query object which type will be determined by the underline implementation (e.g.voidsetSession(org.hibernate.Session session) Deprecated, for removal: This API element is subject to removal in a future version.Inject aSessionthat can be used as a factory for queries.voidsetStatelessSession(org.hibernate.StatelessSession session) Deprecated, for removal: This API element is subject to removal in a future version.Inject aStatelessSessionthat can be used as a factory for queries.
-
Method Details
-
createQuery
org.hibernate.query.Query<T> createQuery()Deprecated, for removal: This API element is subject to removal in a future version.Create the query object which type will be determined by the underline implementation (e.g. Hibernate, JPA, etc.)
- Returns:
- created query
-
setSession
void setSession(org.hibernate.Session session) Deprecated, for removal: This API element is subject to removal in a future version.Inject a
Sessionthat can be used as a factory for queries. The state of the session is controlled by the caller (i.e. it should be closed if necessary).Use either this method or
setStatelessSession(StatelessSession)- Parameters:
session- theSessionto set
-
setStatelessSession
void setStatelessSession(org.hibernate.StatelessSession session) Deprecated, for removal: This API element is subject to removal in a future version.Inject a
StatelessSessionthat can be used as a factory for queries. The state of the session is controlled by the caller (i.e. it should be closed if necessary).Use either this method or
setSession(Session)- Parameters:
session- theStatelessSessionto set
-
JpaQueryProviderinstead.