com.mysema.query.jpa.impl
Class DefaultSessionHolder

java.lang.Object
  extended by com.mysema.query.jpa.impl.DefaultSessionHolder
All Implemented Interfaces:
JPASessionHolder

public class DefaultSessionHolder
extends Object
implements JPASessionHolder

Default implementation of the JPQSessionHolder interface

Author:
tiwe

Constructor Summary
DefaultSessionHolder(javax.persistence.EntityManager entityManager)
           
 
Method Summary
 javax.persistence.Query createQuery(String queryString)
          Create a JPQL query for the given query string
 javax.persistence.Query createSQLQuery(String sqlString)
          Create an SQL query for the given query string
 javax.persistence.Query createSQLQuery(String sqlString, Class<?> resultClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSessionHolder

public DefaultSessionHolder(javax.persistence.EntityManager entityManager)
Method Detail

createQuery

public javax.persistence.Query createQuery(String queryString)
Description copied from interface: JPASessionHolder
Create a JPQL query for the given query string

Specified by:
createQuery in interface JPASessionHolder
Returns:

createSQLQuery

public javax.persistence.Query createSQLQuery(String sqlString)
Description copied from interface: JPASessionHolder
Create an SQL query for the given query string

Specified by:
createSQLQuery in interface JPASessionHolder
Returns:

createSQLQuery

public javax.persistence.Query createSQLQuery(String sqlString,
                                              Class<?> resultClass)
Specified by:
createSQLQuery in interface JPASessionHolder
Returns:


Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.