net.sf.farrago.ddl
Class DdlSetSessionParamStmt

java.lang.Object
  extended by net.sf.farrago.ddl.DdlStmt
      extended by net.sf.farrago.ddl.DdlSetSessionParamStmt
All Implemented Interfaces:
FarragoSessionDdlStmt

public class DdlSetSessionParamStmt
extends DdlStmt

DdlSetSessionParamStmt represents the ALTER SESSION SET ... statement.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/ddl/DdlSetSessionParamStmt.java#8 $
Author:
John Pham

Field Summary
private  FemLabel labelParamValue
           
private  String paramName
           
private  SqlLiteral paramValue
           
 
Constructor Summary
DdlSetSessionParamStmt(String paramName, SqlLiteral paramValue)
          Constructs a new DdlSetSessionParamStmt.
 
Method Summary
 FemLabel getLabelParamValue()
           
 String getParamName()
           
 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.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
 

Field Detail

paramName

private final String paramName

paramValue

private final SqlLiteral paramValue

labelParamValue

private FemLabel labelParamValue
Constructor Detail

DdlSetSessionParamStmt

public DdlSetSessionParamStmt(String paramName,
                              SqlLiteral paramValue)
Constructs a new DdlSetSessionParamStmt.

Parameters:
paramName - name of parameter to set
paramValue - new value for parameter
Method Detail

preValidate

public void preValidate(FarragoSessionDdlValidator ddlValidator)
Description copied from interface: FarragoSessionDdlStmt
Called before generic validation.

Specified by:
preValidate in interface FarragoSessionDdlStmt
Overrides:
preValidate in class DdlStmt
Parameters:
ddlValidator - the object validating this stmt

visit

public void visit(DdlVisitor visitor)
Description copied from class: DdlStmt
Invokes a visitor on this statement.

Specified by:
visit in class DdlStmt
Parameters:
visitor - DdlVisitor to invoke

getParamName

public String getParamName()
Returns:
the name of the parameter being set

getLabelParamValue

public FemLabel getLabelParamValue()
Returns:
the value of the parameter if the label parameter is being set