|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.farrago.ddl.DdlStmt
net.sf.farrago.ddl.DdlSetParamStmt
net.sf.farrago.ddl.DdlSetSystemParamStmt
public class DdlSetSystemParamStmt
DdlSetSystemParamStmt represents the ALTER SYSTEM SET ... statement.
| Constructor Summary | |
|---|---|
DdlSetSystemParamStmt(String paramName,
SqlLiteral paramValue)
Constructs a new DdlSetSystemParamStmt. |
|
| Method Summary | |
|---|---|
protected void |
handleImmutableParameter(FarragoSessionDdlValidator ddlValidator,
InvalidNameException thrown)
Handle immutable parameters. |
protected void |
handleInvalidName(FarragoSessionDdlValidator ddlValidator,
InvalidNameException thrown)
Handle invalide name exception. |
protected void |
handleReflectionException(FarragoSessionDdlValidator ddlValidator,
Exception thrown)
Handle reflection exception. |
protected void |
handleTypeMismatch(FarragoSessionDdlValidator ddlValidator,
TypeMismatchException thrown)
Handle type mismatch. |
void |
preValidate(FarragoSessionDdlValidator ddlValidator)
Called before generic validation. |
void |
visit(DdlVisitor visitor)
Invokes a visitor on this statement. |
| Methods inherited from class net.sf.farrago.ddl.DdlSetParamStmt |
|---|
getParamName, getParamValue, preValidate |
| Methods inherited from class net.sf.farrago.ddl.DdlStmt |
|---|
getModelElement, isDropRestricted, 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 |
|---|
public DdlSetSystemParamStmt(String paramName,
SqlLiteral paramValue)
paramName - name of parameter to setparamValue - new value for parameter| Method Detail |
|---|
public void preValidate(FarragoSessionDdlValidator ddlValidator)
FarragoSessionDdlStmt
preValidate in interface FarragoSessionDdlStmtpreValidate in class DdlStmtddlValidator - the object validating this stmt
protected void handleInvalidName(FarragoSessionDdlValidator ddlValidator,
InvalidNameException thrown)
DdlSetParamStmtDdlSetParamStmt.paramName is not
recognized as a member of the RefObject passed to DdlSetParamStmt.preValidate(FarragoSessionDdlValidator, RefObject, RefObject).
handleInvalidName in class DdlSetParamStmtddlValidator - the object passed to DdlSetParamStmt.preValidate(net.sf.farrago.session.FarragoSessionDdlValidator, javax.jmi.reflect.RefObject, javax.jmi.reflect.RefObject).thrown - the InvalidNameException generated
protected void handleReflectionException(FarragoSessionDdlValidator ddlValidator,
Exception thrown)
DdlSetParamStmtDdlSetParamStmt.paramValue.
handleReflectionException in class DdlSetParamStmtddlValidator - the object passed to DdlSetParamStmt.preValidate(net.sf.farrago.session.FarragoSessionDdlValidator, javax.jmi.reflect.RefObject, javax.jmi.reflect.RefObject).thrown - the Exception
protected void handleImmutableParameter(FarragoSessionDdlValidator ddlValidator,
InvalidNameException thrown)
DdlSetParamStmtDdlSetParamStmt.paramName is an
immutable parameter of the RefObject passed to DdlSetParamStmt.preValidate(FarragoSessionDdlValidator, RefObject, RefObject).
handleImmutableParameter in class DdlSetParamStmtddlValidator - the object passed to DdlSetParamStmt.preValidate(net.sf.farrago.session.FarragoSessionDdlValidator, javax.jmi.reflect.RefObject, javax.jmi.reflect.RefObject).thrown - the InvalidNameException generated (which in this case
indicates an immutable parameter)
protected void handleTypeMismatch(FarragoSessionDdlValidator ddlValidator,
TypeMismatchException thrown)
DdlSetParamStmtDdlSetParamStmt.paramValue has successfully
undergone type conversion but is not the expected type.
handleTypeMismatch in class DdlSetParamStmtddlValidator - the object passed to DdlSetParamStmt.preValidate(net.sf.farrago.session.FarragoSessionDdlValidator, javax.jmi.reflect.RefObject, javax.jmi.reflect.RefObject).thrown - the TypeMismatchException thrownpublic void visit(DdlVisitor visitor)
DdlStmt
visit in class DdlStmtvisitor - DdlVisitor to invoke
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||