net.sf.farrago.ddl
Class DdlSetSchemaStmt

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

public class DdlSetSchemaStmt
extends DdlSetContextStmt

DdlSetSchemaStmt represents the DDL statement SET SCHEMA.

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

Field Summary
private  SqlIdentifier schemaName
           
 
Fields inherited from class net.sf.farrago.ddl.DdlSetContextStmt
parsedExpr, valueString
 
Constructor Summary
DdlSetSchemaStmt(SqlNode valueExpr)
          Constructss a new DdlSetSchemaStmt.
 
Method Summary
 SqlIdentifier getSchemaName()
           
 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

schemaName

private SqlIdentifier schemaName
Constructor Detail

DdlSetSchemaStmt

public DdlSetSchemaStmt(SqlNode valueExpr)
Constructss a new DdlSetSchemaStmt.

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

getSchemaName

public SqlIdentifier getSchemaName()