Class SelectClause

All Implemented Interfaces:
antlr.collections.AST, Serializable, InitializeableNode

public class SelectClause extends SelectExpressionList
Represents the list of expressions in a SELECT clause.
See Also:
  • Field Details

    • VERSION2_SQL

      public static boolean VERSION2_SQL
  • Constructor Details

    • SelectClause

      public SelectClause()
  • Method Details

    • isScalarSelect

      public boolean isScalarSelect()
      Does this SelectClause represent a scalar query
      Returns:
      True if this is a scalara select clause; false otherwise.
    • isDistinct

      public boolean isDistinct()
    • getFromElementsForLoad

      public List getFromElementsForLoad()
      FromElements which need to be accounted for in the load phase (either for return or for fetch).
      Returns:
      List of appropriate FromElements.
    • getQueryReturnTypes

      public Type[] getQueryReturnTypes()
      The types actually being returned from this query at the "object level".
      Returns:
      The query return types.
    • getQueryReturnAliases

      public String[] getQueryReturnAliases()
      The HQL aliases, or generated aliases
      Returns:
      the aliases
    • getColumnNames

      public String[][] getColumnNames()
      The column alias names being used in the generated SQL.
      Returns:
      The SQL column aliases.
    • getAggregatedSelectExpression

      public AggregatedSelectExpression getAggregatedSelectExpression()
    • initializeExplicitSelectClause

      public void initializeExplicitSelectClause(FromClause fromClause) throws antlr.SemanticException
      Prepares an explicitly defined select clause.
      Parameters:
      fromClause - The from clause linked to this select clause.
      Throws:
      antlr.SemanticException - indicates a semntic issue with the explicit select clause.
    • getColumnNamesStartPosition

      public int getColumnNamesStartPosition(int i)
    • initializeDerivedSelectClause

      public void initializeDerivedSelectClause(FromClause fromClause) throws antlr.SemanticException
      Prepares a derived (i.e., not explicitly defined in the query) select clause.
      Parameters:
      fromClause - The from clause to which this select clause is linked.
      Throws:
      antlr.SemanticException
    • getFirstSelectExpression

      protected antlr.collections.AST getFirstSelectExpression()
      Description copied from class: SelectExpressionList
      Returns the first select expression node that should be considered when building the array of select expressions.
      Specified by:
      getFirstSelectExpression in class SelectExpressionList
      Returns:
      the first select expression node that should be considered when building the array of select expressions
    • getCollectionFromElements

      public List getCollectionFromElements()