| 限定符和类型 | 字段和说明 |
|---|---|
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, USERADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| 构造器和说明 |
|---|
Right(Database db,
int id,
RightOwner grantee,
int grantedRight,
DbObject grantedObject) |
Right(Database db,
int id,
RightOwner grantee,
Role grantedRole) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkRename()
Check if renaming is allowed.
|
String |
getCreateSQL()
Construct the CREATE ...
|
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
|
DbObject |
getGrantedObject() |
Role |
getGrantedRole() |
DbObject |
getGrantee() |
int |
getRightMask() |
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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic 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 String getRights()
public Role getGrantedRole()
public DbObject getGrantedObject()
public DbObject getGrantee()
public String getCreateSQLForCopy(Table table, String quotedName)
DbObjectgetCreateSQLForCopy 在类中 DbObjecttable - the new tablequotedName - the quoted namepublic String getCreateSQL()
DbObjectgetCreateSQL 在类中 DbObjectpublic int getType()
DbObjectpublic void removeChildrenAndResources(SessionLocal session)
DbObjectremoveChildrenAndResources 在类中 DbObjectsession - the sessionpublic void checkRename()
DbObjectcheckRename 在类中 DbObjectpublic void setRightMask(int rightMask)
public int getRightMask()
Copyright © 2022. All rights reserved.