net.sf.farrago.session
Class FarragoSessionAnalyzedSql

java.lang.Object
  extended by net.sf.farrago.session.FarragoSessionAnalyzedSql

public class FarragoSessionAnalyzedSql
extends Object

FarragoSessionAnalyzedSql contains the results of the analyzeSql call used while processing SQL expressions contained by DDL statements such as CREATE VIEW and CREATE FUNCTION.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/session/FarragoSessionAnalyzedSql.java#15 $
Author:
John V. Sichi

Field Summary
 String canonicalString
          The text of the SQL expression after expansion by the validator.
 List<Set<RelColumnOrigin>> columnOrigins
          Information about column origins, in same order as resultType row; null if expression is not a query.
 Set<CwmModelElement> dependencies
          Set of catalog objects on which the expression directly depends.
 boolean hasDynamicParams
          True if the expression contains dynamic parameter markers.
 boolean hasTopLevelOrderBy
          True if the expression is a query with a top-level ORDER BY.
 boolean optimized
          True if post-optimization analysis was requested.
 RelDataType paramRowType
          Metadata for parameters used as input to the expression.
 RelDataType resultType
          Metadata for result set returned when the expression is executed: a row type for a query expression, or a single type for a non-query expression.
 double rowCount
          Estimated number of rows returned; invalid if expression is not a query, or no optimization was requested.
 
Constructor Summary
FarragoSessionAnalyzedSql()
           
 
Method Summary
 void setModality(FemAbstractColumnSet colSet)
           
 void setResultType(RelDataType resultType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

optimized

public boolean optimized
True if post-optimization analysis was requested. If false, some fields noted below are invalid.


canonicalString

public String canonicalString
The text of the SQL expression after expansion by the validator. This contains no context-dependent information (e.g. all objects are fully qualified), so it can be stored in the catalog.


dependencies

public Set<CwmModelElement> dependencies
Set of catalog objects on which the expression directly depends.


resultType

public RelDataType resultType
Metadata for result set returned when the expression is executed: a row type for a query expression, or a single type for a non-query expression.


paramRowType

public RelDataType paramRowType
Metadata for parameters used as input to the expression.


hasTopLevelOrderBy

public boolean hasTopLevelOrderBy
True if the expression is a query with a top-level ORDER BY.


hasDynamicParams

public boolean hasDynamicParams
True if the expression contains dynamic parameter markers.


columnOrigins

public List<Set<RelColumnOrigin>> columnOrigins
Information about column origins, in same order as resultType row; null if expression is not a query.


rowCount

public double rowCount
Estimated number of rows returned; invalid if expression is not a query, or no optimization was requested.

Constructor Detail

FarragoSessionAnalyzedSql

public FarragoSessionAnalyzedSql()
Method Detail

setResultType

public void setResultType(RelDataType resultType)

setModality

public void setModality(FemAbstractColumnSet colSet)