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(java.lang.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 |
isRightMode() |
boolean |
isRoleMode() |
boolean |
isTransactional()
Check if this command is transactional.
|
void |
setGranteeName(java.lang.String granteeName) |
void |
setOperationType(int operationType) |
void |
setSchema(Schema schema)
Set the specified schema
|
int |
update()
Execute the statement.
|
isReadOnly, queryMeta, setTransactionalcheckCanceled, checkParameters, getCteCleanups, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSession, getSQL, getSQL, getSQL, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCteCleanups, 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(java.lang.String roleName)
roleName - the rolepublic void setGranteeName(java.lang.String granteeName)
public int update()
Preparedpublic boolean isTransactional()
PreparedisTransactional in class DefineCommandpublic void addTable(Table table)
table - the tablepublic void setSchema(Schema schema)
schema - the schemapublic int getType()
Preparedpublic boolean isRoleMode()
public boolean isRightMode()