public class GrantRevoke extends DefineCommand
transactional
create, 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, setTransactional
checkCanceled, checkParameters, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSQL, getSQL, getSQL, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCurrentRowNumber, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toString
public 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()
Prepared
public boolean isTransactional()
Prepared
isTransactional
in class DefineCommand
public void addTable(Table table)
table
- the tableCopyright © 2012 JBoss by Red Hat. All Rights Reserved.