net.sf.farrago.ddl
Class DdlSetContextStmt

java.lang.Object
  extended by net.sf.farrago.ddl.DdlStmt
      extended by net.sf.farrago.ddl.DdlSetContextStmt
All Implemented Interfaces:
FarragoSessionDdlStmt
Direct Known Subclasses:
DdlSetCatalogStmt, DdlSetPathStmt, DdlSetSchemaStmt

public abstract class DdlSetContextStmt
extends DdlStmt

DdlSetContextStmt is an abstract base class for DDL statements (such as SET SCHEMA) which modify context variables.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/ddl/DdlSetContextStmt.java#14 $
Author:
John V. Sichi

Field Summary
protected  SqlNode parsedExpr
           
private  SqlNode valueExpr
           
protected  String valueString
           
 
Constructor Summary
protected DdlSetContextStmt(SqlNode valueExpr)
           
 
Method Summary
 SqlNode getValueExpression()
           
 void preValidate(FarragoSessionDdlValidator ddlValidator)
          Called before generic validation.
private  void processExpression(FarragoSession session)
           
 boolean requiresCommit()
           
 
Methods inherited from class net.sf.farrago.ddl.DdlStmt
getModelElement, isDropRestricted, postCommit, postExecute, preExecute, runsAsDml, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueExpr

private final SqlNode valueExpr

valueString

protected String valueString

parsedExpr

protected SqlNode parsedExpr
Constructor Detail

DdlSetContextStmt

protected DdlSetContextStmt(SqlNode valueExpr)
Method Detail

requiresCommit

public boolean requiresCommit()
Specified by:
requiresCommit in interface FarragoSessionDdlStmt
Overrides:
requiresCommit in class DdlStmt
Returns:
true if this statement implies an auto-commit before and after

getValueExpression

public SqlNode getValueExpression()

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

processExpression

private void processExpression(FarragoSession session)
                        throws Exception
Throws:
Exception