public final class Role extends RightOwner
Constructor and Description |
---|
Role(Database database,
int id,
java.lang.String roleName,
boolean system) |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<DbObject> |
getChildren()
Get the list of dependent children (for tables, this includes indexes and
so on).
|
java.lang.String |
getCreateSQL()
Construct the CREATE ...
|
java.lang.String |
getCreateSQL(boolean ifNotExists)
Get the CREATE SQL statement for this object.
|
java.lang.String |
getCreateSQLForCopy(org.h2.table.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
|
int |
getType()
Get the object type.
|
void |
removeChildrenAndResources(SessionLocal session)
Delete all dependent children objects and resources of this object.
|
checkOwnsNoSchemas, getRightForObject, getRightForRole, grantRight, grantRole, isRoleGranted, rename, revokeTemporaryRightsOnRoles
checkRename, getComment, getCreateSQLForMeta, getDatabase, getDropSQL, getId, getModificationId, getName, getSQL, getSQL, invalidate, isTemporary, isValid, setComment, setModified, setObjectName, setTemporary, toString
public Role(Database database, int id, java.lang.String roleName, boolean system)
public java.lang.String getCreateSQLForCopy(org.h2.table.Table table, java.lang.String quotedName)
DbObject
getCreateSQLForCopy
in class DbObject
table
- the new tablequotedName
- the quoted namepublic java.lang.String getCreateSQL(boolean ifNotExists)
ifNotExists
- true if IF NOT EXISTS should be usedpublic java.lang.String getCreateSQL()
DbObject
getCreateSQL
in class DbObject
public int getType()
DbObject
public java.util.ArrayList<DbObject> getChildren()
DbObject
getChildren
in class DbObject
null
public void removeChildrenAndResources(SessionLocal session)
DbObject
removeChildrenAndResources
in class DbObject
session
- the session