org.apache.cassandra.cql3.statements
Class RevokeStatement

java.lang.Object
  extended by org.apache.cassandra.cql3.statements.ParsedStatement
      extended by org.apache.cassandra.cql3.statements.RevokeStatement
All Implemented Interfaces:
CQLStatement

public class RevokeStatement
extends ParsedStatement
implements CQLStatement


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.cassandra.cql3.statements.ParsedStatement
ParsedStatement.Prepared
 
Constructor Summary
RevokeStatement(Permission permission, java.lang.String from, CFName resource)
           
 
Method Summary
 void checkAccess(ClientState state)
          Perform any access verification necessary for the statement.
 ResultMessage execute(ClientState state, java.util.List<java.nio.ByteBuffer> variables)
          Execute the statement and return the resulting result or null if there is no result.
 int getBoundsTerms()
          Returns the number of bound terms in this statement.
 ParsedStatement.Prepared prepare()
           
 void validate(ClientState state)
          Perform additional validation required by the statment.
 
Methods inherited from class org.apache.cassandra.cql3.statements.ParsedStatement
setBoundTerms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevokeStatement

public RevokeStatement(Permission permission,
                       java.lang.String from,
                       CFName resource)
Method Detail

getBoundsTerms

public int getBoundsTerms()
Description copied from interface: CQLStatement
Returns the number of bound terms in this statement.

Specified by:
getBoundsTerms in interface CQLStatement
Overrides:
getBoundsTerms in class ParsedStatement

checkAccess

public void checkAccess(ClientState state)
                 throws InvalidRequestException
Description copied from interface: CQLStatement
Perform any access verification necessary for the statement.

Specified by:
checkAccess in interface CQLStatement
Parameters:
state - the current client state
Throws:
InvalidRequestException

validate

public void validate(ClientState state)
              throws InvalidRequestException
Description copied from interface: CQLStatement
Perform additional validation required by the statment. To be overriden by subclasses if needed.

Specified by:
validate in interface CQLStatement
Parameters:
state - the current client state
Throws:
InvalidRequestException

execute

public ResultMessage execute(ClientState state,
                             java.util.List<java.nio.ByteBuffer> variables)
                      throws UnauthorizedException,
                             InvalidRequestException
Description copied from interface: CQLStatement
Execute the statement and return the resulting result or null if there is no result.

Specified by:
execute in interface CQLStatement
Parameters:
state - the current client state
variables - the values for bounded variables. The implementation can assume that each bound term have a corresponding value.
Throws:
UnauthorizedException
InvalidRequestException

prepare

public ParsedStatement.Prepared prepare()
                                 throws InvalidRequestException
Specified by:
prepare in class ParsedStatement
Throws:
InvalidRequestException


Copyright © 2012 The Apache Software Foundation