| org.hibernate.SQLQuery
All known Subclasses: org.hibernate.impl.SQLQueryImpl,
SQLQuery | public interface SQLQuery extends Query(Code) | | 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.
author: Gavin King |
Method Summary | |
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) Declare a scalar query. | public SQLQuery | addSynchronizedEntityClass(Class entityClass) Adds an entity name or auto-flush synchronization.
Parameters: entityClass - The class of the entity upon whose definedquery spaces we should additionally synchronize. | public SQLQuery | addSynchronizedEntityName(String entityName) Adds an entity name or auto-flush synchronization.
Parameters: entityName - The name of the entity upon whose definedquery spaces we should additionally synchronize. | public SQLQuery | addSynchronizedQuerySpace(String querySpace) Adds a query space for auto-flush synchronization.
Parameters: querySpace - The query space to be auto-flushed for this query. | public SQLQuery | setResultSetMapping(String name) |
addEntity | public SQLQuery addEntity(String entityName)(Code) | | Declare a "root" entity, without specifying an alias
|
addEntity | public SQLQuery addEntity(Class entityClass)(Code) | | Declare a "root" entity, without specifying an alias
|
addScalar | public SQLQuery addScalar(String columnAlias)(Code) | | Declare a scalar query. Hibernate will attempt to automatically detect the underlying type.
|
addSynchronizedEntityClass | public SQLQuery addSynchronizedEntityClass(Class entityClass) throws MappingException(Code) | | Adds an entity name or auto-flush synchronization.
Parameters: entityClass - The class of the entity upon whose definedquery spaces we should additionally synchronize. this, for method chaning throws: MappingException - Indicates the given entity class could not beresolved. |
addSynchronizedEntityName | public SQLQuery addSynchronizedEntityName(String entityName) throws MappingException(Code) | | Adds an entity name or auto-flush synchronization.
Parameters: entityName - The name of the entity upon whose definedquery spaces we should additionally synchronize. this, for method chaning throws: MappingException - Indicates the given entity name could not beresolved. |
addSynchronizedQuerySpace | public SQLQuery addSynchronizedQuerySpace(String querySpace)(Code) | | Adds a query space for auto-flush synchronization.
Parameters: querySpace - The query space to be auto-flushed for this query. this, for method chaning |
setResultSetMapping | public SQLQuery setResultSetMapping(String name)(Code) | | Use a predefined named ResultSetMapping
|
|
|