public ViewDefinition(StatementNode parsed, SQLParserContext parserContext)
     throws StandardException {
   if (parsed.getNodeType() != NodeTypes.CREATE_VIEW_NODE) {
     throw new StandardException("Parsed statement was not a view");
   }
   definition = (CreateViewNode) parsed;
   subquery =
       (FromSubquery)
           parserContext
               .getNodeFactory()
               .getNode(
                   NodeTypes.FROM_SUBQUERY,
                   definition.getParsedQueryExpression(),
                   definition.getOrderByList(),
                   definition.getOffset(),
                   definition.getFetchFirst(),
                   getName().getTableName(),
                   definition.getResultColumns(),
                   null,
                   parserContext);
 }
 /** Get the text of the view definition. */
 public String getQueryExpression() {
   return definition.getQueryExpression();
 }
 /** Get the name of the view. */
 public TableName getName() {
   return definition.getObjectName();
 }