GrantRevoke
This class represents the statements GRANT RIGHT, GRANT ROLE, REVOKE RIGHT, REVOKE ROLE
Methods
void
addRight
(int right)
Add the specified right bit to the rights bitmap.
void
addRight
(int right)
Add the specified right bit to the rights bitmap.
Parameters:
right - the right bit
void
addRoleName
(String roleName)
Add the specified role to the list of roles.
void
addRoleName
(String roleName)
Add the specified role to the list of roles.
Parameters:
roleName - the role
void
addTable
(Table table)
Add the specified table to the list of tables.
void
addTable
(Table table)
Add the specified table to the list of tables.
Parameters:
table - the table
int
getType
()
int
getType
()
boolean
isRightMode
()
boolean
isRightMode
()
Returns:
true if this command is using Rights
boolean
isRoleMode
()
boolean
isRoleMode
()
Returns:
true if this command is using Roles
boolean
isTransactional
()
boolean
isTransactional
()
void
setGranteeName
(String granteeName)
void
setGranteeName
(String granteeName)
void
setOperationType
(int operationType)
void
setOperationType
(int operationType)
void
setSchema
(Schema schema)
Set the specified schema
void
setSchema
(Schema schema)
Set the specified schema
Parameters:
schema - the schema
int
update
()
int
update
()