com.mysema.query.jpa.hibernate
Class DefaultSessionHolder
java.lang.Object
com.mysema.query.jpa.hibernate.DefaultSessionHolder
- All Implemented Interfaces:
- SessionHolder
public class DefaultSessionHolder
- extends Object
- implements SessionHolder
DefaultSessionHolder is the default implementation of the SessionHolder interface
- Author:
- tiwe
Method Summary |
org.hibernate.Query |
createQuery(String queryString)
Create a JPQL query for the given query string |
org.hibernate.SQLQuery |
createSQLQuery(String queryString)
Create an SQL query for the given query string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSessionHolder
public DefaultSessionHolder(org.hibernate.Session session)
createQuery
public org.hibernate.Query createQuery(String queryString)
- Description copied from interface:
SessionHolder
- Create a JPQL query for the given query string
- Specified by:
createQuery
in interface SessionHolder
- Returns:
createSQLQuery
public org.hibernate.SQLQuery createSQLQuery(String queryString)
- Description copied from interface:
SessionHolder
- Create an SQL query for the given query string
- Specified by:
createSQLQuery
in interface SessionHolder
- Returns:
Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.