public class DropRoleStatement extends AuthenticationStatement
ParsedStatement.Prepared
Constructor and Description |
---|
DropRoleStatement(RoleName name,
boolean ifExists) |
Modifier and Type | Method and Description |
---|---|
void |
checkAccess(ClientState state)
Perform any access verification necessary for the statement.
|
ResultMessage |
execute(ClientState state) |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
checkPermission, execute, executeInternal, getBoundTerms, prepare
getBoundVariables, getFunctions, setBoundVariables, setBoundVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFunctions
public DropRoleStatement(RoleName name, boolean ifExists)
public void checkAccess(ClientState state) throws UnauthorizedException
CQLStatement
state
- the current client stateUnauthorizedException
public void validate(ClientState state) throws RequestValidationException
CQLStatement
state
- the current client stateRequestValidationException
public ResultMessage execute(ClientState state) throws RequestValidationException, RequestExecutionException
execute
in class AuthenticationStatement
RequestValidationException
RequestExecutionException
Copyright © 2017 The Apache Software Foundation