public class CreateRoleStatement extends AuthenticationStatement
ParsedStatement.Prepared| Constructor and Description |
|---|
CreateRoleStatement(RoleName name,
RoleOptions options,
boolean ifNotExists) |
| 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, preparegetBoundVariables, getFunctions, setBoundVariablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFunctionspublic CreateRoleStatement(RoleName name, RoleOptions options, boolean ifNotExists)
public void checkAccess(ClientState state) throws UnauthorizedException
CQLStatementstate - the current client stateUnauthorizedExceptionpublic void validate(ClientState state) throws RequestValidationException
CQLStatementstate - the current client stateRequestValidationExceptionpublic ResultMessage execute(ClientState state) throws RequestExecutionException, RequestValidationException
execute in class AuthenticationStatementRequestExecutionExceptionRequestValidationExceptionCopyright © 2015 The Apache Software Foundation