18 using System.Collections.Generic;
23 namespace Deveel.Data.Sql.Statements {
27 : this(grantee, privilege, false, objName) {
31 : this(grantee, privilege, withGrant, objName, null) {
35 : this(grantee, privilege, false, objName, columns) {
40 Privilege = privilege;
43 WithGrant = withGrant;
50 Columns = data.
GetValue<
string[]>(
"Columns");
54 public IEnumerable<string> Columns {
get;
private set; }
56 public string Grantee {
get;
private set; }
62 public bool WithGrant {
get;
private set; }
67 data.
SetValue(
"Privilege", (
int)Privilege);
69 data.
SetValue(
"WithGrant", WithGrant);
80 throw new InvalidOperationException(String.Format(
"Object '{0}' was not found in the system.",
ObjectName));
82 context.
Request.
Query.GrantTo(Grantee, obj.ObjectType, obj.FullName, Privilege, WithGrant);
GrantPrivilegesStatement(string grantee, Privileges privilege, ObjectName objName)
override void GetData(SerializeData data)
GrantPrivilegesStatement(ObjectData data)
void SetValue(string key, Type type, object value)
Describes the name of an object within a database.
GrantPrivilegesStatement(string grantee, Privileges privilege, bool withGrant, ObjectName objName)
override void ExecuteStatement(ExecutionContext context)
Represents the foundation class of SQL statements to be executed.
string FullName
Gets the full reference name formatted.
GrantPrivilegesStatement(string grantee, Privileges privilege, bool withGrant, ObjectName objName, IEnumerable< string > columns)
bool GetBoolean(string key)
object GetValue(string key)
IStatement Prepare(IRequest request)
GrantPrivilegesStatement(string grantee, Privileges privilege, ObjectName objName, IEnumerable< string > columns)
string GetString(string key)