|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.farrago.ddl.DdlStmt
public abstract class DdlStmt
DdlStmt represents the output of DDL statement parsing. Most DDL statements update the catalog directly as they are parsed. DdlStmt does not duplicate the information written to the catalog; it only references and annotates it.
| Field Summary | |
|---|---|
private CwmModelElement |
modelElement
|
private boolean |
runsAsDml
True if the DDL statement is treated as a DML statement with respect to how locking behaves |
| Constructor Summary | |
|---|---|
protected |
DdlStmt(CwmModelElement modelElement)
|
protected |
DdlStmt(CwmModelElement modelElement,
boolean runsAsDml)
|
| 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()
|
abstract void |
visit(DdlVisitor visitor)
Invokes a visitor on this statement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final CwmModelElement modelElement
private final boolean runsAsDml
| Constructor Detail |
|---|
protected DdlStmt(CwmModelElement modelElement)
protected DdlStmt(CwmModelElement modelElement,
boolean runsAsDml)
| Method Detail |
|---|
public CwmModelElement getModelElement()
getModelElement in interface FarragoSessionDdlStmtpublic boolean isDropRestricted()
isDropRestricted in interface FarragoSessionDdlStmtpublic void preValidate(FarragoSessionDdlValidator ddlValidator)
FarragoSessionDdlStmt
preValidate in interface FarragoSessionDdlStmtddlValidator - the object validating this stmtpublic void preExecute()
FarragoSessionDdlStmt
preExecute in interface FarragoSessionDdlStmtpublic void postExecute()
FarragoSessionDdlStmt
postExecute in interface FarragoSessionDdlStmtpublic void postCommit(FarragoSessionDdlValidator ddlValidator)
FarragoSessionDdlStmt
postCommit in interface FarragoSessionDdlStmtddlValidator - the object validating this stmtpublic boolean requiresCommit()
requiresCommit in interface FarragoSessionDdlStmtpublic boolean runsAsDml()
runsAsDml in interface FarragoSessionDdlStmtpublic abstract void visit(DdlVisitor visitor)
visitor - DdlVisitor to invoke
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||