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.
|
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, getCreateSQLForCopy, 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 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