|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.engine.DbObjectBase
org.h2.engine.Right
public class Right
An access right. Rights are regular database objects, but have generated names.
Field Summary | |
---|---|
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. |
Fields inherited from class org.h2.engine.DbObjectBase |
---|
comment, database, trace |
Fields inherited from interface org.h2.engine.DbObject |
---|
AGGREGATE, COMMENT, CONSTANT, CONSTRAINT, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, TABLE_OR_VIEW, TRIGGER, USER, USER_DATATYPE |
Constructor Summary | |
---|---|
Right(Database db,
int id,
RightOwner grantee,
int grantedRight,
Table grantedRightOnTable)
|
|
Right(Database db,
int id,
RightOwner grantee,
Role grantedRole)
|
Method Summary | |
---|---|
void |
checkRename()
Check if this object can be renamed. |
java.lang.String |
getCreateSQL()
Build a SQL statement to re-create this object. |
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 |
java.lang.String |
getDropSQL()
Build a SQL statement to drop this object. |
Role |
getGrantedRole()
|
Table |
getGrantedTable()
|
DbObject |
getGrantee()
|
int |
getRightMask()
|
java.lang.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)
|
Methods inherited from class org.h2.engine.DbObjectBase |
---|
getChildren, getComment, getDatabase, getId, getModificationId, getName, getSQL, initDbObjectBase, invalidate, isTemporary, rename, setComment, setModified, setObjectName, setTemporary, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public Right(Database db, int id, RightOwner grantee, Role grantedRole)
public Right(Database db, int id, RightOwner grantee, int grantedRight, Table grantedRightOnTable)
Method Detail |
---|
public java.lang.String getRights()
public Role getGrantedRole()
public Table getGrantedTable()
public DbObject getGrantee()
public java.lang.String getDropSQL()
DbObjectBase
getDropSQL
in interface DbObject
getDropSQL
in class DbObjectBase
public java.lang.String getCreateSQLForCopy(Table table, java.lang.String quotedName)
DbObjectBase
getCreateSQLForCopy
in interface DbObject
getCreateSQLForCopy
in class DbObjectBase
table
- the new table namequotedName
- the new quoted name
public java.lang.String getCreateSQL()
DbObjectBase
getCreateSQL
in interface DbObject
getCreateSQL
in class DbObjectBase
public int getType()
DbObjectBase
getType
in interface DbObject
getType
in class DbObjectBase
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |