net.sf.farrago.ddl
Class DdlCreateStmt

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

public class DdlCreateStmt
extends DdlStmt

DdlCreateStmt represents a DDL CREATE statement of any kind.

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

Field Summary
(package private)  DdlReplaceOptions replaceOptions
           
 
Constructor Summary
DdlCreateStmt(CwmModelElement createdElement, DdlReplaceOptions replaceOptions)
          Constructs a new DdlCreateStmt.
 
Method Summary
 DdlReplaceOptions getReplaceOptions()
           
 void postCommit(FarragoSessionDdlValidator ddlValidator)
          Called after execution, after committing the repository transaction.
 void visit(DdlVisitor visitor)
          Invokes a visitor on this statement.
 
Methods inherited from class net.sf.farrago.ddl.DdlStmt
getModelElement, isDropRestricted, postExecute, preExecute, preValidate, requiresCommit, runsAsDml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

replaceOptions

DdlReplaceOptions replaceOptions
Constructor Detail

DdlCreateStmt

public DdlCreateStmt(CwmModelElement createdElement,
                     DdlReplaceOptions replaceOptions)
Constructs a new DdlCreateStmt.

Parameters:
createdElement - top-level element created by this stmt
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

getReplaceOptions

public DdlReplaceOptions getReplaceOptions()

postCommit

public void postCommit(FarragoSessionDdlValidator ddlValidator)
Description copied from interface: FarragoSessionDdlStmt
Called after execution, after committing the repository transaction.

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