|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.gps.device.hibernate.DefaultHibernateQueryProvider
public class DefaultHibernateQueryProvider
A simple Hibernate query provider based on a select statement. The select statement can be automatically generated based on the entity name as well.
| Constructor Summary | |
|---|---|
DefaultHibernateQueryProvider(Class entityClass,
String entityName)
Creates a new query provider based on the entity name. |
|
DefaultHibernateQueryProvider(String selectQuery)
Creates a new query provider based on the provided select statement. |
|
| Method Summary | |
|---|---|
Criteria |
createCriteria(Session session,
EntityInformation entityInformation)
Creates the Hibernate criteria for the given entity information. |
Query |
createQuery(Session session,
EntityInformation entityInformation)
Creates a query based on the select statement initlaized in the query provider construction. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultHibernateQueryProvider(Class entityClass,
String entityName)
from entityName.
entityClass - The entity classentityName - The entity namepublic DefaultHibernateQueryProvider(String selectQuery)
selectQuery - The select query| Method Detail |
|---|
public Query createQuery(Session session,
EntityInformation entityInformation)
createQuery in interface HibernateQueryProvidersession - The Hibernate session to create the query withentityInformation - The enity information to create the query with
public Criteria createCriteria(Session session,
EntityInformation entityInformation)
null if the select query is set.
createCriteria in interface HibernateQueryProvidersession - The Hibernate session to create the query withentityInformation - The enity information to create the query with
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||