|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HibernateQueryProvider
Interface defining the functionality to be provided for generating queries
for use with Hibernate ItemReader
s or other custom built artifacts.
Method Summary | |
---|---|
org.hibernate.Query |
createQuery()
Create the query object which type will be determined by the underline implementation (e.g. |
void |
setSession(org.hibernate.Session session)
Inject a Session that can be used as a factory for queries. |
void |
setStatelessSession(org.hibernate.StatelessSession session)
Inject a StatelessSession that can be used as a factory for
queries. |
Method Detail |
---|
org.hibernate.Query createQuery()
Create the query object which type will be determined by the underline implementation (e.g. Hibernate, JPA, etc.)
void setSession(org.hibernate.Session session)
Inject a Session
that 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)
session
- the Session
to setvoid setStatelessSession(org.hibernate.StatelessSession session)
Inject a StatelessSession
that 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)
session
- the StatelessSession
to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |