DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Properties | Private Member Functions | List of all members
Deveel.Data.Sql.Statements.GrantPrivilegesStatement Class Reference
Inheritance diagram for Deveel.Data.Sql.Statements.GrantPrivilegesStatement:
Deveel.Data.Sql.Statements.SqlStatement Deveel.Data.Sql.Statements.IPreparableStatement Deveel.Data.Sql.Statements.IStatement Deveel.Data.Serialization.ISerializable Deveel.Data.Sql.Statements.IStatement Deveel.Data.Sql.IExecutable Deveel.Data.Sql.IExecutable

Public Member Functions

 GrantPrivilegesStatement (string grantee, Privileges privilege, ObjectName objName)
 
 GrantPrivilegesStatement (string grantee, Privileges privilege, bool withGrant, ObjectName objName)
 
 GrantPrivilegesStatement (string grantee, Privileges privilege, ObjectName objName, IEnumerable< string > columns)
 
 GrantPrivilegesStatement (string grantee, Privileges privilege, bool withGrant, ObjectName objName, IEnumerable< string > columns)
 
- Public Member Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
ITable Execute (IRequest context)
 Prepares and evaluates this statement into a tabular result. More...
 

Protected Member Functions

override void GetData (SerializeData data)
 
override void ExecuteStatement (ExecutionContext context)
 
- Protected Member Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
 SqlStatement ()
 
 SqlStatement (ObjectData data)
 

Properties

IEnumerable< string > Columns [get, private set]
 
string Grantee [get, private set]
 
Privileges Privilege [get, private set]
 
ObjectName ObjectName [get, private set]
 
bool WithGrant [get, private set]
 
- Properties inherited from Deveel.Data.Sql.Statements.SqlStatement
SqlQuery SourceQuery [get, set]
 Gets the SqlQuery that is the origin of this statement. More...
 
bool IsFromQuery [get, private set]
 Gets a boolean value indicating if this object was formed from the parsing of a SqlQuery or if it was manually created. More...
 
- Properties inherited from Deveel.Data.Sql.Statements.IStatement
SqlQuery SourceQuery [get]
 

Private Member Functions

 GrantPrivilegesStatement (ObjectData data)
 
IStatement IPreparableStatement. Prepare (IRequest context)
 

Additional Inherited Members

- Static Public Member Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
static IEnumerable< SqlStatementParse (string sqlSource)
 Parses a given string into one of more statements. More...
 
static IEnumerable< SqlStatementParse (IContext context, string sqlSource)
 Parses a given string into one of more statements. More...
 
static IEnumerable< SqlStatementParse (IContext context, SqlQuery query)
 
- Package Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
void SetSource (SqlQuery query)
 

Detailed Description

Definition at line 25 of file GrantPrivilegesStatement.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Statements.GrantPrivilegesStatement.GrantPrivilegesStatement ( string  grantee,
Privileges  privilege,
ObjectName  objName 
)
inline

Definition at line 26 of file GrantPrivilegesStatement.cs.

27  : this(grantee, privilege, false, objName) {
28  }
Deveel.Data.Sql.Statements.GrantPrivilegesStatement.GrantPrivilegesStatement ( string  grantee,
Privileges  privilege,
bool  withGrant,
ObjectName  objName 
)
inline

Definition at line 30 of file GrantPrivilegesStatement.cs.

31  : this(grantee, privilege, withGrant, objName, null) {
32  }
Deveel.Data.Sql.Statements.GrantPrivilegesStatement.GrantPrivilegesStatement ( string  grantee,
Privileges  privilege,
ObjectName  objName,
IEnumerable< string >  columns 
)
inline

Definition at line 34 of file GrantPrivilegesStatement.cs.

35  : this(grantee, privilege, false, objName, columns) {
36  }
Deveel.Data.Sql.Statements.GrantPrivilegesStatement.GrantPrivilegesStatement ( string  grantee,
Privileges  privilege,
bool  withGrant,
ObjectName  objName,
IEnumerable< string >  columns 
)
inline
Deveel.Data.Sql.Statements.GrantPrivilegesStatement.GrantPrivilegesStatement ( ObjectData  data)
inlineprivate

Member Function Documentation

override void Deveel.Data.Sql.Statements.GrantPrivilegesStatement.ExecuteStatement ( ExecutionContext  context)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Sql.Statements.SqlStatement.

Definition at line 77 of file GrantPrivilegesStatement.cs.

77  {
78  var obj = context.Request.Query.FindObject(ObjectName);
79  if (obj == null)
80  throw new InvalidOperationException(String.Format("Object '{0}' was not found in the system.", ObjectName));
81 
82  context.Request.Query.GrantTo(Grantee, obj.ObjectType, obj.FullName, Privilege, WithGrant);
83  }
A long string in the system.
override void Deveel.Data.Sql.Statements.GrantPrivilegesStatement.GetData ( SerializeData  data)
inlineprotectedvirtual
IStatement IPreparableStatement. Deveel.Data.Sql.Statements.GrantPrivilegesStatement.Prepare ( IRequest  context)
inlineprivate

Property Documentation

IEnumerable<string> Deveel.Data.Sql.Statements.GrantPrivilegesStatement.Columns
getprivate set

Definition at line 54 of file GrantPrivilegesStatement.cs.

string Deveel.Data.Sql.Statements.GrantPrivilegesStatement.Grantee
getprivate set

Definition at line 56 of file GrantPrivilegesStatement.cs.

ObjectName Deveel.Data.Sql.Statements.GrantPrivilegesStatement.ObjectName
getprivate set

Definition at line 60 of file GrantPrivilegesStatement.cs.

Privileges Deveel.Data.Sql.Statements.GrantPrivilegesStatement.Privilege
getprivate set

Definition at line 58 of file GrantPrivilegesStatement.cs.

bool Deveel.Data.Sql.Statements.GrantPrivilegesStatement.WithGrant
getprivate set

Definition at line 62 of file GrantPrivilegesStatement.cs.


The documentation for this class was generated from the following file: