站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

QueryMetadata (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.engine.query
Class QueryMetadata

java.lang.Object
  extended byorg.hibernate.engine.query.QueryMetadata
All Implemented Interfaces:
Serializable

public class QueryMetadata
extends Object
implements Serializable

Defines metadata regarding a translated HQL or native-SQL query.

Author:
Steve Ebersole
See Also:
Serialized Form

Constructor Summary
QueryMetadata(String sourceQuery, ParameterMetadata parameterMetadata, String[] returnAliases, Type[] returnTypes, Set querySpaces)
           
 
Method Summary
 ParameterMetadata getParameterMetadata()
           
 Set getQuerySpaces()
          The set of query spaces affected by this source query.
 String[] getReturnAliases()
          Return source query select clause aliases (if any)
 Type[] getReturnTypes()
          An array of types describing the returns of the source query.
 String getSourceQuery()
          Get the source HQL or native-SQL query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryMetadata

public QueryMetadata(String sourceQuery,
                     ParameterMetadata parameterMetadata,
                     String[] returnAliases,
                     Type[] returnTypes,
                     Set querySpaces)
Method Detail

getSourceQuery

public String getSourceQuery()
Get the source HQL or native-SQL query.

Returns:
The source query.

getParameterMetadata

public ParameterMetadata getParameterMetadata()

getReturnAliases

public String[] getReturnAliases()
Return source query select clause aliases (if any)

Returns:
an array of aliases as strings.

getReturnTypes

public Type[] getReturnTypes()
An array of types describing the returns of the source query.

Returns:
The return type array.

getQuerySpaces

public Set getQuerySpaces()
The set of query spaces affected by this source query.

Returns:
The set of query spaces.