net.sf.farrago.ddl
Class DdlSetCatalogStmt

java.lang.Object
  extended by net.sf.farrago.ddl.DdlStmt
      extended by net.sf.farrago.ddl.DdlSetContextStmt
          extended by net.sf.farrago.ddl.DdlSetCatalogStmt
All Implemented Interfaces:
FarragoSessionDdlStmt

public class DdlSetCatalogStmt
extends DdlSetContextStmt

DdlSetCatalogStmt represents the DDL statement SET CATALOG.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/ddl/DdlSetCatalogStmt.java#11 $
Author:
John V. Sichi

Field Summary
private  SqlIdentifier catalogName
           
 
Fields inherited from class net.sf.farrago.ddl.DdlSetContextStmt
parsedExpr, valueString
 
Constructor Summary
DdlSetCatalogStmt(SqlNode valueExpr)
          Constructs a new DdlSetCatalogStmt.
 
Method Summary
 SqlIdentifier getCatalogName()
           
 void preValidate(FarragoSessionDdlValidator ddlValidator)
          Called before generic validation.
 void visit(DdlVisitor visitor)
          Invokes a visitor on this statement.
 
Methods inherited from class net.sf.farrago.ddl.DdlSetContextStmt
getValueExpression, requiresCommit
 
Methods inherited from class net.sf.farrago.ddl.DdlStmt
getModelElement, isDropRestricted, postCommit, postExecute, preExecute, runsAsDml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

catalogName

private SqlIdentifier catalogName
Constructor Detail

DdlSetCatalogStmt

public DdlSetCatalogStmt(SqlNode valueExpr)
Constructs a new DdlSetCatalogStmt.

Parameters:
valueExpr - value expression for new catalog
Method Detail

visit

public void visit(DdlVisitor visitor)
Description copied from class: DdlStmt
Invokes a visitor on this statement.

Specified by:
visit in class DdlStmt
Parameters:
visitor - DdlVisitor to invoke

preValidate

public void preValidate(FarragoSessionDdlValidator ddlValidator)
Description copied from interface: FarragoSessionDdlStmt
Called before generic validation.

Specified by:
preValidate in interface FarragoSessionDdlStmt
Overrides:
preValidate in class DdlSetContextStmt
Parameters:
ddlValidator - the object validating this stmt

getCatalogName

public SqlIdentifier getCatalogName()