|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Allows the user to declare the types and select list injection points of all entities returned by the query. Also allows declaration of the type and column alias of any scalar results of the query.
Method Summary | |
SQLQuery |
addEntity(Class entityClass)
Declare a "root" entity, without specifying an alias |
SQLQuery |
addEntity(String entityName)
Declare a "root" entity, without specifying an alias |
SQLQuery |
addEntity(String alias,
Class entityClass)
Declare a "root" entity |
SQLQuery |
addEntity(String alias,
Class entityClass,
LockMode lockMode)
Declare a "root" entity, specifying a lock mode |
SQLQuery |
addEntity(String alias,
String entityName)
Declare a "root" entity |
SQLQuery |
addEntity(String alias,
String entityName,
LockMode lockMode)
Declare a "root" entity, specifying a lock mode |
SQLQuery |
addJoin(String alias,
String path)
Declare a "joined" entity |
SQLQuery |
addJoin(String alias,
String path,
LockMode lockMode)
Declare a "joined" entity, specifying a lock mode |
SQLQuery |
addScalar(String columnAlias)
Declare a scalar query. |
SQLQuery |
addScalar(String columnAlias,
Type type)
Declare a scalar query result |
SQLQuery |
addSynchronizedEntityClass(Class entityClass)
Adds an entity name or auto-flush synchronization. |
SQLQuery |
addSynchronizedEntityName(String entityName)
Adds an entity name or auto-flush synchronization. |
SQLQuery |
addSynchronizedQuerySpace(String querySpace)
Adds a query space for auto-flush synchronization. |
SQLQuery |
setResultSetMapping(String name)
Use a predefined named ResultSetMapping |
Method Detail |
public SQLQuery addEntity(String entityName)
public SQLQuery addEntity(String alias, String entityName)
public SQLQuery addEntity(String alias, String entityName, LockMode lockMode)
public SQLQuery addEntity(Class entityClass)
public SQLQuery addEntity(String alias, Class entityClass)
public SQLQuery addEntity(String alias, Class entityClass, LockMode lockMode)
public SQLQuery addJoin(String alias, String path)
public SQLQuery addJoin(String alias, String path, LockMode lockMode)
public SQLQuery addScalar(String columnAlias, Type type)
public SQLQuery addScalar(String columnAlias)
public SQLQuery setResultSetMapping(String name)
public SQLQuery addSynchronizedQuerySpace(String querySpace)
querySpace
- The query space to be auto-flushed for this query.
public SQLQuery addSynchronizedEntityName(String entityName) throws MappingException
entityName
- The name of the entity upon whose defined
query spaces we should additionally synchronize.
MappingException
- Indicates the given entity name could not be
resolved.public SQLQuery addSynchronizedEntityClass(Class entityClass) throws MappingException
entityClass
- The class of the entity upon whose defined
query spaces we should additionally synchronize.
MappingException
- Indicates the given entity class could not be
resolved.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |