public class Right extends DbObjectBase
Modifier and Type | Field and Description |
---|---|
static int |
ALL
The right bit mask that means: select, insert, update, delete, and update
for this object is allowed.
|
static int |
DELETE
The right bit mask that means: deleting rows from a table is allowed.
|
static int |
INSERT
The right bit mask that means: inserting rows into a table is allowed.
|
static int |
SELECT
The right bit mask that means: selecting from a table is allowed.
|
static int |
UPDATE
The right bit mask that means: updating data is allowed.
|
comment, database, trace
AGGREGATE, COMMENT, CONSTANT, CONSTRAINT, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, TABLE_OR_VIEW, TRIGGER, USER, USER_DATATYPE
Constructor and Description |
---|
Right(Database db,
int id,
RightOwner grantee,
int grantedRight,
Table grantedRightOnTable) |
Right(Database db,
int id,
RightOwner grantee,
Role grantedRole) |
Modifier and Type | Method and Description |
---|---|
void |
checkRename()
Check if this object can be renamed.
|
String |
getCreateSQL()
Build a SQL statement to re-create this object.
|
String |
getCreateSQLForCopy(Table table,
String quotedName)
Build a SQL statement to re-create the object, or to create a copy of the
object with a different name or referencing a different table
|
String |
getDropSQL()
Build a SQL statement to drop this object.
|
Role |
getGrantedRole() |
Table |
getGrantedTable() |
DbObject |
getGrantee() |
int |
getRightMask() |
String |
getRights() |
int |
getType()
Get the object type.
|
void |
removeChildrenAndResources(Session session)
Remove all dependent objects and free all resources (files, blocks in
files) of this object.
|
void |
setRightMask(int rightMask) |
getChildren, getComment, getDatabase, getId, getModificationId, getName, getSQL, initDbObjectBase, invalidate, isTemporary, rename, setComment, setModified, setObjectName, setTemporary, toString
public static final int SELECT
public static final int DELETE
public static final int INSERT
public static final int UPDATE
public static final int ALL
public Right(Database db, int id, RightOwner grantee, Role grantedRole)
public Right(Database db, int id, RightOwner grantee, int grantedRight, Table grantedRightOnTable)
public String getRights()
public Role getGrantedRole()
public Table getGrantedTable()
public DbObject getGrantee()
public String getDropSQL()
DbObjectBase
getDropSQL
in interface DbObject
getDropSQL
in class DbObjectBase
public String getCreateSQLForCopy(Table table, String quotedName)
DbObject
table
- the new tablequotedName
- the quoted namepublic String getCreateSQL()
DbObjectBase
getCreateSQL
in interface DbObject
getCreateSQL
in class DbObjectBase
public int getType()
DbObject
public void removeChildrenAndResources(Session session)
DbObjectBase
removeChildrenAndResources
in interface DbObject
removeChildrenAndResources
in class DbObjectBase
session
- the sessionpublic void checkRename()
DbObjectBase
checkRename
in interface DbObject
checkRename
in class DbObjectBase
public void setRightMask(int rightMask)
public int getRightMask()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.