net.sf.farrago.session
Interface FarragoSessionDdlStmt

All Known Subinterfaces:
DdlMultipleTransactionStmt
All Known Implementing Classes:
DdlAlterGenericStmt, DdlAlterIdentityColumnStmt, DdlAlterStmt, DdlAlterTableStructureStmt, DdlAnalyzeStmt, DdlCheckpointStmt, DdlCommitStmt, DdlCreateStmt, DdlDeallocateOldStmt, DdlDropLabelStmt, DdlDropStmt, DdlExtendCatalogStmt, DdlGrantPrivStmt, DdlGrantRoleStmt, DdlGrantStmt, DdlImportForeignSchemaStmt, DdlRebuildTableStmt, DdlReleaseSavepointStmt, DdlReloadTableStmt, DdlReplaceCatalogStmt, DdlRollbackStmt, DdlSavepointStmt, DdlSavepointTxnStmt, DdlSetCatalogStmt, DdlSetContextStmt, DdlSetParamStmt, DdlSetPathStmt, DdlSetSchemaStmt, DdlSetSessionImplementationStmt, DdlSetSessionParamStmt, DdlSetSystemParamStmt, DdlStmt, DdlTruncateStmt, DdlTxnStmt

public interface FarragoSessionDdlStmt

FarragoSessionDdlStmt represents the output of DDL statement parsing.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/session/FarragoSessionDdlStmt.java#15 $
Author:
John V. Sichi

Method Summary
 CwmModelElement getModelElement()
           
 boolean isDropRestricted()
           
 void postCommit(FarragoSessionDdlValidator ddlValidator)
          Called after execution, after committing the repository transaction.
 void postExecute()
          Called immediately after generic execution.
 void preExecute()
          Called before generic execution.
 void preValidate(FarragoSessionDdlValidator ddlValidator)
          Called before generic validation.
 boolean requiresCommit()
           
 boolean runsAsDml()
           
 

Method Detail

getModelElement

CwmModelElement getModelElement()
Returns:
the top-level CwmModelElement affected by this stmt, or null if none

isDropRestricted

boolean isDropRestricted()
Returns:
whether DROP RESTRICT is in effect

preValidate

void preValidate(FarragoSessionDdlValidator ddlValidator)
Called before generic validation.

Parameters:
ddlValidator - the object validating this stmt

preExecute

void preExecute()
Called before generic execution.


postExecute

void postExecute()
Called immediately after generic execution.


postCommit

void postCommit(FarragoSessionDdlValidator ddlValidator)
Called after execution, after committing the repository transaction.

Parameters:
ddlValidator - the object validating this stmt

requiresCommit

boolean requiresCommit()
Returns:
true if this statement implies an auto-commit before and after

runsAsDml

boolean runsAsDml()
Returns:
true if this DDL statement should be treated like a DML statement with respect to locking