net.sf.farrago.ddl
Class DdlAlterStmt

java.lang.Object
  extended by net.sf.farrago.ddl.DdlStmt
      extended by net.sf.farrago.ddl.DdlAlterStmt
All Implemented Interfaces:
FarragoSessionDdlStmt
Direct Known Subclasses:
DdlAlterGenericStmt, DdlAlterIdentityColumnStmt

public abstract class DdlAlterStmt
extends DdlStmt

DdlAlterStmt represents some but not all DDL ALTER statements. For others, see DdlAlterTableStructureStmt, DdlRebuildTableStmt, and DdlSetSystemParamStmt.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/ddl/DdlAlterStmt.java#17 $
Author:
Stephan Zuercher

Nested Class Summary
private static class DdlAlterStmt.ActionType
           
 
Field Summary
private  DdlAlterStmt.ActionType action
           
private  CwmColumn column
           
private  FarragoSequenceOptions identityOptions
           
 
Constructor Summary
DdlAlterStmt(CwmModelElement alterElement)
          Constructs a new DdlAlterStmt.
DdlAlterStmt(CwmModelElement alterElement, boolean runsAsDml)
          Deprecated.  
 
Method Summary
 void alterIdentityColumn(FarragoSequenceOptions options)
           
protected abstract  void execute(FarragoSessionDdlValidator ddlValidator, FarragoSession session)
          Execute the alter statement
 void postCommit(FarragoSessionDdlValidator ddlValidator)
          Called after execution, after committing the repository transaction.
 void preValidate(FarragoSessionDdlValidator ddlValidator)
          Called before generic validation.
 void setColumn(CwmColumn column)
           
 void visit(DdlVisitor visitor)
          Invokes a visitor on this statement.
 
Methods inherited from class net.sf.farrago.ddl.DdlStmt
getModelElement, isDropRestricted, postExecute, preExecute, requiresCommit, runsAsDml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

action

private DdlAlterStmt.ActionType action

column

private CwmColumn column

identityOptions

private FarragoSequenceOptions identityOptions
Constructor Detail

DdlAlterStmt

public DdlAlterStmt(CwmModelElement alterElement)
Constructs a new DdlAlterStmt.

Parameters:
alterElement - top-level element altered by this stmt

DdlAlterStmt

public DdlAlterStmt(CwmModelElement alterElement,
                    boolean runsAsDml)
Deprecated. 

Method Detail

setColumn

public void setColumn(CwmColumn column)

alterIdentityColumn

public void alterIdentityColumn(FarragoSequenceOptions options)

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

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

execute

protected abstract void execute(FarragoSessionDdlValidator ddlValidator,
                                FarragoSession session)
Execute the alter statement

Parameters:
ddlValidator - the session validator
session - a reentrant session