com.akiban.sql.views
Class ViewDefinition

java.lang.Object
  extended by com.akiban.sql.views.ViewDefinition

public class ViewDefinition
extends Object


Constructor Summary
ViewDefinition(StatementNode parsed, SQLParserContext parserContext)
           
ViewDefinition(String sql, SQLParser parser)
          Parse the given SQL as CREATE VIEW and remember the definition.
 
Method Summary
 FromSubquery copySubquery(SQLParserContext parserContext)
          Get the view as an equivalent subquery belonging to the given context.
 TableName getName()
          Get the name of the view.
 String getQueryExpression()
          Get the text of the view definition.
 ResultColumnList getResultColumns()
          Get the result columns for this view.
 FromSubquery getSubquery()
          Get the original subquery for binding.
 FromSubquery getSubquery(Visitor binder)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewDefinition

public ViewDefinition(String sql,
                      SQLParser parser)
               throws StandardException
Parse the given SQL as CREATE VIEW and remember the definition.

Throws:
StandardException

ViewDefinition

public ViewDefinition(StatementNode parsed,
                      SQLParserContext parserContext)
               throws StandardException
Throws:
StandardException
Method Detail

getName

public TableName getName()
Get the name of the view.


getQueryExpression

public String getQueryExpression()
Get the text of the view definition.


getResultColumns

public ResultColumnList getResultColumns()
Get the result columns for this view.


getSubquery

public FromSubquery getSubquery()
Get the original subquery for binding.


copySubquery

public FromSubquery copySubquery(SQLParserContext parserContext)
                          throws StandardException
Get the view as an equivalent subquery belonging to the given context.

Throws:
StandardException

getSubquery

@Deprecated
public FromSubquery getSubquery(Visitor binder)
                         throws StandardException
Deprecated. 

Throws:
StandardException
See Also:
copySubquery(com.akiban.sql.parser.SQLParserContext)


Copyright © 2013 Akiban Technologies, Inc. All rights reserved.