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 |
ALTER_ANY_SCHEMA
The right bit mask that means: create/alter/drop schema 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 |
SCHEMA_OWNER
The right bit mask that means: user is a schema owner.
|
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.
|
AGGREGATE, comment, COMMENT, CONSTANT, CONSTRAINT, database, DOMAIN, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, SYNONYM, TABLE_OR_VIEW, trace, TRIGGER, USER
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS
Constructor and Description |
---|
Right(Database db,
int id,
RightOwner grantee,
int grantedRight,
DbObject grantedObject) |
Right(Database db,
int id,
RightOwner grantee,
Role grantedRole) |
Modifier and Type | Method and Description |
---|---|
void |
checkRename()
Check if renaming is allowed.
|
java.lang.String |
getCreateSQL()
Construct the CREATE ...
|
java.lang.String |
getCreateSQLForCopy(Table table,
java.lang.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
|
DbObject |
getGrantedObject() |
Role |
getGrantedRole() |
DbObject |
getGrantee() |
int |
getRightMask() |
java.lang.String |
getRights() |
int |
getType()
Get the object type.
|
void |
removeChildrenAndResources(SessionLocal session)
Delete all dependent children objects and resources of this object.
|
void |
setRightMask(int rightMask) |
getChildren, getComment, getCreateSQLForMeta, getDatabase, getDropSQL, getId, getModificationId, getName, getSQL, getSQL, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTraceSQL
public static final int SELECT
public static final int DELETE
public static final int INSERT
public static final int UPDATE
public static final int ALTER_ANY_SCHEMA
public static final int SCHEMA_OWNER
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, DbObject grantedObject)
public java.lang.String getRights()
public Role getGrantedRole()
public DbObject getGrantedObject()
public DbObject getGrantee()
public java.lang.String getCreateSQLForCopy(Table table, java.lang.String quotedName)
DbObject
getCreateSQLForCopy
in class DbObject
table
- the new tablequotedName
- the quoted namepublic java.lang.String getCreateSQL()
DbObject
getCreateSQL
in class DbObject
public int getType()
DbObject
public void removeChildrenAndResources(SessionLocal session)
DbObject
removeChildrenAndResources
in class DbObject
session
- the sessionpublic void checkRename()
DbObject
checkRename
in class DbObject
public void setRightMask(int rightMask)
public int getRightMask()