net.sf.farrago.ddl
Class DdlDropStmt

java.lang.Object
  extended by net.sf.farrago.ddl.DdlStmt
      extended by net.sf.farrago.ddl.DdlDropStmt
All Implemented Interfaces:
FarragoSessionDdlStmt
Direct Known Subclasses:
DdlDropLabelStmt

public class DdlDropStmt
extends DdlStmt

DdlDropStmt represents a DDL DROP statement of any kind.

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

Field Summary
private  boolean restrict
           
 
Constructor Summary
DdlDropStmt(CwmModelElement droppedElement, boolean restrict)
          Constructs a new DdlDropStmt.
 
Method Summary
 boolean isDropRestricted()
           
 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.DdlStmt
getModelElement, postCommit, postExecute, preExecute, requiresCommit, runsAsDml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

restrict

private boolean restrict
Constructor Detail

DdlDropStmt

public DdlDropStmt(CwmModelElement droppedElement,
                   boolean restrict)
Constructs a new DdlDropStmt.

Parameters:
droppedElement - top-level element dropped by this stmt
restrict - whether DROP RESTRICT is in effect
Method Detail

isDropRestricted

public boolean isDropRestricted()
Specified by:
isDropRestricted in interface FarragoSessionDdlStmt
Overrides:
isDropRestricted in class DdlStmt
Returns:
whether DROP RESTRICT is in effect

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 DdlStmt
Parameters:
ddlValidator - the object validating this stmt

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