public abstract class BaseGrantQuery<ThisType extends BaseGrantQuery<ThisType>> extends Query<ThisType>
Modifier and Type | Class and Description |
---|---|
static class |
BaseGrantQuery.Privilege
Encapsulation of a database privilege.
|
static class |
BaseGrantQuery.TargetObject
Information about the database object upon which a privilege allows (or
disallows) action.
|
Modifier and Type | Field and Description |
---|---|
protected SqlObjectList<SqlObject> |
_grantees |
protected SqlObjectList<SqlObject> |
_privileges |
protected SqlObject |
_targetObj |
static SqlObject |
PUBLIC_GRANTEE
grantee object which represents PUBLIC access
|
ALL_SYMBOL, NULL_VALUE, QUESTION_MARK
Modifier | Constructor and Description |
---|---|
protected |
BaseGrantQuery() |
Modifier and Type | Method and Description |
---|---|
ThisType |
addCustomGrantees(Object... grantees)
Adds the given custom grantees to the query
|
ThisType |
addCustomPrivileges(Object... privileges)
Adds the given privileges to the query.
|
ThisType |
addGrantees(String... grantees)
Adds the given grantees to the query
|
ThisType |
addPrivileges(BaseGrantQuery.Privilege... privileges)
Adds the given privileges to the query.
|
protected void |
collectSchemaObjects(ValidationContext vContext)
Used during Query.validate() calls to collect the dbschema objects
referenced in a query.
|
static BaseGrantQuery.Privilege |
privilegeAll() |
static BaseGrantQuery.Privilege |
privilegeDelete() |
static BaseGrantQuery.Privilege |
privilegeInsert(Column... columns) |
static BaseGrantQuery.Privilege |
privilegeReferences(Column... columns) |
static BaseGrantQuery.Privilege |
privilegeSelect() |
static BaseGrantQuery.Privilege |
privilegeUpdate(Column... columns) |
static BaseGrantQuery.Privilege |
privilegeUsage() |
ThisType |
setCustomTarget(Object target)
Sets the target for the query.
|
ThisType |
setTarget(BaseGrantQuery.TargetObject target)
Sets the target for the query.
|
static BaseGrantQuery.TargetObject |
targetTable(Table table) |
void |
validate(ValidationContext vContext)
Runs validation on this verifiable object using a previously collected
ValidationContext.
|
appendTo, appendTo, getThisType, prependTo, validate, validateTables
addCustomization, customAppendTo, customAppendTo, maybeAppendTo, maybeAppendTo
collectSchemaObjects, doValidate, toString
toString, toString
public static final SqlObject PUBLIC_GRANTEE
protected SqlObjectList<SqlObject> _grantees
protected SqlObjectList<SqlObject> _privileges
protected SqlObject _targetObj
public ThisType addCustomGrantees(Object... grantees)
Object
-> SqlObject
conversions handled by
Converter.CUSTOM_TO_OBJ
.
public ThisType addCustomPrivileges(Object... privileges)
BaseGrantQuery.Privilege
object, created by one of the static
privilege*
methods.
Object
-> SqlObject
conversions handled by
Converter.CUSTOM_TO_OBJ
.
public ThisType addPrivileges(BaseGrantQuery.Privilege... privileges)
BaseGrantQuery.Privilege
object, created by one of the static
privilege*
methods.public ThisType setCustomTarget(Object target)
BaseGrantQuery.TargetObject
object, created by one of the static
target*
methods.
Object
-> SqlObject
conversions handled by
Converter.toCustomSqlObject(Object)
.
public ThisType setTarget(BaseGrantQuery.TargetObject target)
BaseGrantQuery.TargetObject
object, created by one of the static
target*
methods.public static BaseGrantQuery.Privilege privilegeAll()
public static BaseGrantQuery.Privilege privilegeSelect()
public static BaseGrantQuery.Privilege privilegeDelete()
public static BaseGrantQuery.Privilege privilegeInsert(Column... columns)
public static BaseGrantQuery.Privilege privilegeUpdate(Column... columns)
public static BaseGrantQuery.Privilege privilegeReferences(Column... columns)
public static BaseGrantQuery.Privilege privilegeUsage()
public static BaseGrantQuery.TargetObject targetTable(Table table)
protected void collectSchemaObjects(ValidationContext vContext)
SqlObject
collectSchemaObjects
in class Query<ThisType extends BaseGrantQuery<ThisType>>
vContext
- handle to the current validation contextpublic void validate(ValidationContext vContext) throws ValidationException
Verifiable
In general, this method will only be called internally, not by users.
validate
in interface Verifiable<ThisType extends BaseGrantQuery<ThisType>>
validate
in class Query<ThisType extends BaseGrantQuery<ThisType>>
vContext
- handle to the current, filled-in validation contextValidationException
Copyright © 2006–2021 OpenHMS. All rights reserved.