public class GrantRevoke extends DefineCommand
transactionalcreate, parameters, prepareAlways, session, sqlStatement| Constructor and Description |
|---|
GrantRevoke(Session session) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRight(int right)
Add the specified right bit to the rights bitmap.
|
void |
addRoleName(String roleName)
Add the specified role to the list of roles.
|
void |
addTable(Table table)
Add the specified table to the list of tables.
|
int |
getType()
Get the command type as defined in CommandInterface
|
boolean |
isTransactional()
Check if this command is transactional.
|
void |
setGranteeName(String granteeName) |
void |
setOperationType(int operationType) |
int |
update()
Execute the statement.
|
isReadOnly, queryMeta, setTransactionalcheckCanceled, checkParameters, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSQL, getSQL, getSQL, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCurrentRowNumber, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toStringpublic GrantRevoke(Session session)
public void setOperationType(int operationType)
public void addRight(int right)
right - the right bitpublic void addRoleName(String roleName)
roleName - the rolepublic void setGranteeName(String granteeName)
public int update()
Preparedpublic boolean isTransactional()
PreparedisTransactional in class DefineCommandpublic void addTable(Table table)
table - the tableCopyright © 2012 JBoss by Red Hat. All Rights Reserved.