FileDocCategorySizeDatePackage
SQLQuery.javaAPI DocHibernate 3.2.52771Fri Nov 17 21:21:06 GMT 2006org.hibernate

SQLQuery

public interface SQLQuery implements Query
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

Fields Summary
Constructors Summary
Methods Summary
public org.hibernate.SQLQueryaddEntity(java.lang.String entityName)
Declare a "root" entity, without specifying an alias

public org.hibernate.SQLQueryaddEntity(java.lang.String alias, java.lang.String entityName)
Declare a "root" entity

public org.hibernate.SQLQueryaddEntity(java.lang.String alias, java.lang.String entityName, LockMode lockMode)
Declare a "root" entity, specifying a lock mode

public org.hibernate.SQLQueryaddEntity(java.lang.Class entityClass)
Declare a "root" entity, without specifying an alias

public org.hibernate.SQLQueryaddEntity(java.lang.String alias, java.lang.Class entityClass)
Declare a "root" entity

public org.hibernate.SQLQueryaddEntity(java.lang.String alias, java.lang.Class entityClass, LockMode lockMode)
Declare a "root" entity, specifying a lock mode

public org.hibernate.SQLQueryaddJoin(java.lang.String alias, java.lang.String path)
Declare a "joined" entity

public org.hibernate.SQLQueryaddJoin(java.lang.String alias, java.lang.String path, LockMode lockMode)
Declare a "joined" entity, specifying a lock mode

public org.hibernate.SQLQueryaddScalar(java.lang.String columnAlias)
Declare a scalar query. Hibernate will attempt to automatically detect the underlying type.

public org.hibernate.SQLQueryaddScalar(java.lang.String columnAlias, org.hibernate.type.Type type)
Declare a scalar query result

public org.hibernate.SQLQueryaddSynchronizedEntityClass(java.lang.Class entityClass)
Adds an entity name or auto-flush synchronization.

param
entityClass The class of the entity upon whose defined query spaces we should additionally synchronize.
return
this, for method chaning
throws
MappingException Indicates the given entity class could not be resolved.

public org.hibernate.SQLQueryaddSynchronizedEntityName(java.lang.String entityName)
Adds an entity name or auto-flush synchronization.

param
entityName The name of the entity upon whose defined query spaces we should additionally synchronize.
return
this, for method chaning
throws
MappingException Indicates the given entity name could not be resolved.

public org.hibernate.SQLQueryaddSynchronizedQuerySpace(java.lang.String querySpace)
Adds a query space for auto-flush synchronization.

param
querySpace The query space to be auto-flushed for this query.
return
this, for method chaning

public org.hibernate.SQLQuerysetResultSetMapping(java.lang.String name)
Use a predefined named ResultSetMapping