net.sf.farrago.ddl
Class DdlGrantPrivStmt
java.lang.Object
net.sf.farrago.ddl.DdlStmt
net.sf.farrago.ddl.DdlGrantStmt
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
grantedObject
private CwmModelElement grantedObject
privList
private List<SqlIdentifier> privList
hierarchyOption
private boolean hierarchyOption
grantor
private SqlIdentifier grantor
DdlGrantPrivStmt
public DdlGrantPrivStmt()
- Constructs a new DdlGrantPrivStmt.
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)