FileDocCategorySizeDatePackage
QueryMetadata.javaAPI DocHibernate 3.2.51641Fri Nov 04 14:28:50 GMT 2005org.hibernate.engine.query

QueryMetadata

public class QueryMetadata extends Object implements Serializable
Defines metadata regarding a translated HQL or native-SQL query.
author
Steve Ebersole

Fields Summary
private final String
sourceQuery
private final ParameterMetadata
parameterMetadata
private final String[]
returnAliases
private final org.hibernate.type.Type[]
returnTypes
private final Set
querySpaces
Constructors Summary
public QueryMetadata(String sourceQuery, ParameterMetadata parameterMetadata, String[] returnAliases, org.hibernate.type.Type[] returnTypes, Set querySpaces)

		this.sourceQuery = sourceQuery;
		this.parameterMetadata = parameterMetadata;
		this.returnAliases = returnAliases;
		this.returnTypes = returnTypes;
		this.querySpaces = querySpaces;
	
Methods Summary
public ParameterMetadatagetParameterMetadata()

		return parameterMetadata;
	
public java.util.SetgetQuerySpaces()
The set of query spaces affected by this source query.

return
The set of query spaces.

		return querySpaces;
	
public java.lang.String[]getReturnAliases()
Return source query select clause aliases (if any)

return
an array of aliases as strings.

		return returnAliases;
	
public org.hibernate.type.Type[]getReturnTypes()
An array of types describing the returns of the source query.

return
The return type array.

		return returnTypes;
	
public java.lang.StringgetSourceQuery()
Get the source HQL or native-SQL query.

return
The source query.

		return sourceQuery;