Package com.querydsl.jpa.hibernate
Class NoSessionHolder
- java.lang.Object
-
- com.querydsl.jpa.hibernate.NoSessionHolder
-
- All Implemented Interfaces:
SessionHolder
public final class NoSessionHolder extends java.lang.Object implements SessionHolder
NoSessionHolderis a session holder for detachedHibernateQueryusage- Author:
- tiwe
-
-
Field Summary
Fields Modifier and Type Field Description static SessionHolderDEFAULT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.query.Query<?>createQuery(java.lang.String queryString)Create a JPQL query for the given query stringorg.hibernate.query.NativeQuery<?>createSQLQuery(java.lang.String queryString)Create an SQL query for the given query string
-
-
-
Field Detail
-
DEFAULT
public static final SessionHolder DEFAULT
-
-
Method Detail
-
createQuery
public org.hibernate.query.Query<?> createQuery(java.lang.String queryString)
Description copied from interface:SessionHolderCreate a JPQL query for the given query string- Specified by:
createQueryin interfaceSessionHolder- Parameters:
queryString- JPQL query string- Returns:
- query
-
createSQLQuery
public org.hibernate.query.NativeQuery<?> createSQLQuery(java.lang.String queryString)
Description copied from interface:SessionHolderCreate an SQL query for the given query string- Specified by:
createSQLQueryin interfaceSessionHolder- Parameters:
queryString- JPQL query string- Returns:
- query
-
-