|
|||||||||
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.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 parameterMethod Detail |
---|
public void preValidate(FarragoSessionDdlValidator ddlValidator)
FarragoSessionDdlStmt
preValidate
in interface FarragoSessionDdlStmt
preValidate
in class DdlStmt
ddlValidator
- the object validating this stmtprotected void handleInvalidName(FarragoSessionDdlValidator ddlValidator, InvalidNameException thrown)
DdlSetParamStmt
DdlSetParamStmt.paramName
is not
recognized as a member of the RefObject passed to DdlSetParamStmt.preValidate(FarragoSessionDdlValidator, RefObject, RefObject)
.
handleInvalidName
in class DdlSetParamStmt
ddlValidator
- the object passed to DdlSetParamStmt.preValidate(net.sf.farrago.session.FarragoSessionDdlValidator, javax.jmi.reflect.RefObject, javax.jmi.reflect.RefObject)
.thrown
- the InvalidNameException generatedprotected void handleReflectionException(FarragoSessionDdlValidator ddlValidator, Exception thrown)
DdlSetParamStmt
DdlSetParamStmt.paramValue
.
handleReflectionException
in class DdlSetParamStmt
ddlValidator
- the object passed to DdlSetParamStmt.preValidate(net.sf.farrago.session.FarragoSessionDdlValidator, javax.jmi.reflect.RefObject, javax.jmi.reflect.RefObject)
.thrown
- the Exceptionprotected void handleImmutableParameter(FarragoSessionDdlValidator ddlValidator, InvalidNameException thrown)
DdlSetParamStmt
DdlSetParamStmt.paramName
is an
immutable parameter of the RefObject passed to DdlSetParamStmt.preValidate(FarragoSessionDdlValidator, RefObject, RefObject)
.
handleImmutableParameter
in class DdlSetParamStmt
ddlValidator
- 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)
DdlSetParamStmt
DdlSetParamStmt.paramValue
has successfully
undergone type conversion but is not the expected type.
handleTypeMismatch
in class DdlSetParamStmt
ddlValidator
- 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 DdlStmt
visitor
- DdlVisitor to invoke
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |