net.sf.farrago.ddl
Class DdlDropLabelStmt

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

public class DdlDropLabelStmt
extends DdlDropStmt

DdlDropLabelStmt extends DdlDropStmt to remove obsolete label statistics. Repository design constraints related to upgrade prevent the statistics from being associated with the label itself. They are instead associated implicitly via time stamps. Therefore, drop rules are insufficient to trigger the necessary deletions. Avoid this pattern whenever possible!

Author:
Stephan Zuercher

Constructor Summary
DdlDropLabelStmt(FemLabel droppedElement, boolean restrict)
          Constructs a new DdlDropLabelStmt.
 
Method Summary
 void preValidate(FarragoSessionDdlValidator ddlValidator)
          Called before generic validation.
 
Methods inherited from class net.sf.farrago.ddl.DdlDropStmt
isDropRestricted, visit
 
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
 

Constructor Detail

DdlDropLabelStmt

public DdlDropLabelStmt(FemLabel droppedElement,
                        boolean restrict)
Constructs a new DdlDropLabelStmt.

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

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