net.sf.farrago.ddl
Class DdlGrantStmt

java.lang.Object
  extended by net.sf.farrago.ddl.DdlStmt
      extended by net.sf.farrago.ddl.DdlGrantStmt
All Implemented Interfaces:
FarragoSessionDdlStmt
Direct Known Subclasses:
DdlGrantPrivStmt, DdlGrantRoleStmt

public abstract class DdlGrantStmt
extends DdlStmt

DdlGrantStmt represents a DDL GRANT statement.

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

Field Summary
protected  boolean currentRoleOption
           
protected  boolean currentUserOption
           
protected  List<SqlIdentifier> granteeList
           
protected  boolean grantOption
           
 
Constructor Summary
DdlGrantStmt()
          Constructs a new DdlGrantStmt.
 
Method Summary
 FemAuthId determineGrantor(FarragoSessionDdlValidator ddlValidator)
           
 void setCurrentRoleOption(boolean currentRoleOption)
           
 void setCurrentUserOption(boolean currentUserOption)
           
 void setGranteeList(List<SqlIdentifier> granteeList)
           
 void setGrantOption(boolean grantOption)
           
 void visit(DdlVisitor visitor)
          Invokes a visitor on this statement.
 
Methods inherited from class net.sf.farrago.ddl.DdlStmt
getModelElement, isDropRestricted, postCommit, postExecute, preExecute, preValidate, requiresCommit, runsAsDml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grantOption

protected boolean grantOption

currentRoleOption

protected boolean currentRoleOption

currentUserOption

protected boolean currentUserOption

granteeList

protected List<SqlIdentifier> granteeList
Constructor Detail

DdlGrantStmt

public DdlGrantStmt()
Constructs a new DdlGrantStmt.

Method Detail

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

setGranteeList

public void setGranteeList(List<SqlIdentifier> granteeList)

setGrantOption

public void setGrantOption(boolean grantOption)

setCurrentRoleOption

public void setCurrentRoleOption(boolean currentRoleOption)

setCurrentUserOption

public void setCurrentUserOption(boolean currentUserOption)

determineGrantor

public FemAuthId determineGrantor(FarragoSessionDdlValidator ddlValidator)