net.sf.farrago.ddl
Class DdlGrantPrivStmt

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

public class DdlGrantPrivStmt
extends DdlGrantStmt

DdlGrantPrivStmt represents a DDL GRANT privileges statement.

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

Field Summary
private  CwmModelElement grantedObject
           
private  SqlIdentifier grantor
           
private  boolean hierarchyOption
           
private  List<SqlIdentifier> privList
           
 
Fields inherited from class net.sf.farrago.ddl.DdlGrantStmt
currentRoleOption, currentUserOption, granteeList, grantOption
 
Constructor Summary
DdlGrantPrivStmt()
          Constructs a new DdlGrantPrivStmt.
 
Method Summary
 void preValidate(FarragoSessionDdlValidator ddlValidator)
          Called before generic validation.
 void setGrantedObject(CwmModelElement grantedObject)
           
 void setGrantor(SqlIdentifier grantor)
           
 void setHierarchyOption(boolean hierarchyOption)
           
 void setPrivList(List<SqlIdentifier> privList)
           
private  void validatePrivileges(FarragoSessionDdlValidator ddlValidator)
           
 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

grantedObject

private CwmModelElement grantedObject

privList

private List<SqlIdentifier> privList

hierarchyOption

private boolean hierarchyOption

grantor

private SqlIdentifier grantor
Constructor Detail

DdlGrantPrivStmt

public DdlGrantPrivStmt()
Constructs a new DdlGrantPrivStmt.

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

setPrivList

public void setPrivList(List<SqlIdentifier> privList)

setGrantedObject

public void setGrantedObject(CwmModelElement grantedObject)

setGrantor

public void setGrantor(SqlIdentifier grantor)

setHierarchyOption

public void setHierarchyOption(boolean hierarchyOption)

validatePrivileges

private void validatePrivileges(FarragoSessionDdlValidator ddlValidator)