public class Right extends DbObjectBase
| 限定符和类型 | 字段和说明 |
|---|---|
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 |
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, traceAGGREGATE, COMMENT, CONSTANT, CONSTRAINT, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, TABLE_OR_VIEW, TRIGGER, USER, USER_DATATYPE| 构造器和说明 |
|---|
Right(Database db,
int id,
RightOwner grantee,
int grantedRight,
DbObject grantedObject) |
Right(Database db,
int id,
RightOwner grantee,
Role grantedRole) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
DbObject |
getGrantedObject() |
Role |
getGrantedRole() |
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, isValid, rename, setComment, setModified, setObjectName, setTemporary, toStringpublic 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 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 getDropSQL()
DbObjectBasegetDropSQL 在接口中 DbObjectgetDropSQL 在类中 DbObjectBasepublic String getCreateSQLForCopy(Table table, String quotedName)
DbObjecttable - the new tablequotedName - the quoted namepublic String getCreateSQL()
DbObjectBasegetCreateSQL 在接口中 DbObjectgetCreateSQL 在类中 DbObjectBasepublic int getType()
DbObjectpublic void removeChildrenAndResources(Session session)
DbObjectBaseremoveChildrenAndResources 在接口中 DbObjectremoveChildrenAndResources 在类中 DbObjectBasesession - the sessionpublic void checkRename()
DbObjectBasecheckRename 在接口中 DbObjectcheckRename 在类中 DbObjectBasepublic void setRightMask(int rightMask)
public int getRightMask()
Copyright © 2017. All rights reserved.