|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SQLQuery
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 |
---|
SQLQuery addEntity(String entityName)
SQLQuery addEntity(String alias, String entityName)
SQLQuery addEntity(String alias, String entityName, LockMode lockMode)
SQLQuery addEntity(Class entityClass)
SQLQuery addEntity(String alias, Class entityClass)
SQLQuery addEntity(String alias, Class entityClass, LockMode lockMode)
SQLQuery addJoin(String alias, String path)
SQLQuery addJoin(String alias, String path, LockMode lockMode)
SQLQuery addScalar(String columnAlias, Type type)
SQLQuery addScalar(String columnAlias)
SQLQuery setResultSetMapping(String name)
SQLQuery addSynchronizedQuerySpace(String querySpace)
querySpace
- The query space to be auto-flushed for this query.
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.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 |