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| Modifier | Constructor and Description |
|---|---|
protected |
RightOwner(Database database,
int id,
java.lang.String name,
int traceModuleId) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkOwnsNoSchemas()
Check that this right owner does not own any schema.
|
Right |
getRightForObject(DbObject object)
Get the 'grant schema' right of this object.
|
Right |
getRightForRole(Role role)
Get the 'grant role' right of this object.
|
void |
grantRight(DbObject object,
Right right)
Grant a right for the given table.
|
void |
grantRole(Role role,
Right right)
Grant a role to this object.
|
boolean |
isRoleGranted(Role grantedRole)
Check if a role has been granted for this right owner.
|
void |
rename(java.lang.String newName)
Rename the object.
|
void |
revokeTemporaryRightsOnRoles()
Remove all the temporary rights granted on roles
|
checkRename, getChildren, getComment, getCreateSQL, getCreateSQLForCopy, getCreateSQLForMeta, getDatabase, getDropSQL, getId, getModificationId, getName, getSQL, getSQL, getType, invalidate, isTemporary, isValid, removeChildrenAndResources, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLprotected RightOwner(Database database, int id, java.lang.String name, int traceModuleId)
public void rename(java.lang.String newName)
DbObjectpublic boolean isRoleGranted(Role grantedRole)
grantedRole - the rolepublic void grantRight(DbObject object, Right right)
object - the object (table or schema)right - the rightpublic void grantRole(Role role, Right right)
role - the roleright - the right to grantpublic void revokeTemporaryRightsOnRoles()
public Right getRightForObject(DbObject object)
object - the granted object (table or schema)public Right getRightForRole(Role role)
role - the granted rolepublic final void checkOwnsNoSchemas()
DbException - if this right owner owns a schema