|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.ddl.DdlStmt net.sf.farrago.ddl.DdlAlterStmt
public abstract class DdlAlterStmt
DdlAlterStmt represents some but not all DDL ALTER statements. For others,
see DdlAlterTableStructureStmt
, DdlRebuildTableStmt
, and
DdlSetSystemParamStmt
.
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 |
---|
private DdlAlterStmt.ActionType action
private CwmColumn column
private FarragoSequenceOptions identityOptions
Constructor Detail |
---|
public DdlAlterStmt(CwmModelElement alterElement)
alterElement
- top-level element altered by this stmtpublic DdlAlterStmt(CwmModelElement alterElement, boolean runsAsDml)
Method Detail |
---|
public void setColumn(CwmColumn column)
public void alterIdentityColumn(FarragoSequenceOptions options)
public void visit(DdlVisitor visitor)
DdlStmt
visit
in class DdlStmt
visitor
- DdlVisitor to invokepublic void preValidate(FarragoSessionDdlValidator ddlValidator)
FarragoSessionDdlStmt
preValidate
in interface FarragoSessionDdlStmt
preValidate
in class DdlStmt
ddlValidator
- the object validating this stmtpublic void postCommit(FarragoSessionDdlValidator ddlValidator)
FarragoSessionDdlStmt
postCommit
in interface FarragoSessionDdlStmt
postCommit
in class DdlStmt
ddlValidator
- the object validating this stmtprotected abstract void execute(FarragoSessionDdlValidator ddlValidator, FarragoSession session)
ddlValidator
- the session validatorsession
- a reentrant session
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |