net.sf.farrago.ddl
Class DdlGrantRoleStmt

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

public class DdlGrantRoleStmt
extends DdlGrantStmt

DdlGrantRoleStmt represents a DDL GRANT ROLE statement.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/ddl/DdlGrantRoleStmt.java#11 $
Author:
Quoc Tai Tran

Field Summary
protected  List<SqlIdentifier> roleList
           
 
Fields inherited from class net.sf.farrago.ddl.DdlGrantStmt
currentRoleOption, currentUserOption, granteeList, grantOption
 
Constructor Summary
DdlGrantRoleStmt()
          Constructs a new DdlGrantRoleStmt.
 
Method Summary
 void preValidate(FarragoSessionDdlValidator ddlValidator)
          Called before generic validation.
 void setRoleList(List<SqlIdentifier> roleList)
           
 void visit(DdlVisitor visitor)
          Invokes a visitor on this statement.
 
Methods inherited from class net.sf.farrago.ddl.DdlGrantStmt
determineGrantor, setCurrentRoleOption, setCurrentUserOption, setGranteeList, setGrantOption
 
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

roleList

protected List<SqlIdentifier> roleList
Constructor Detail

DdlGrantRoleStmt

public DdlGrantRoleStmt()
Constructs a new DdlGrantRoleStmt.

Method Detail

visit

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

Overrides:
visit in class DdlGrantStmt
Parameters:
visitor - DdlVisitor to invoke

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

setRoleList

public void setRoleList(List<SqlIdentifier> roleList)