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

Public Member Functions

 GrantRoleStatement (string userName, string role)
 
 GrantRoleStatement (string userName, string role, bool withAdmin)
 
- Public Member Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
ITable Execute (IRequest context)
 Prepares and evaluates this statement into a tabular result. More...
 

Properties

string Role [get, private set]
 
string UserName [get, private set]
 
bool WithAdmin [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]
 

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)
 
- Protected Member Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
 SqlStatement ()
 
 SqlStatement (ObjectData data)
 
virtual void ExecuteStatement (ExecutionContext context)
 
virtual void GetData (SerializeData data)
 
- Package Functions inherited from Deveel.Data.Sql.Statements.SqlStatement
void SetSource (SqlQuery query)
 

Detailed Description

Definition at line 20 of file GrantRoleStatement.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Statements.GrantRoleStatement.GrantRoleStatement ( string  userName,
string  role 
)
inline

Definition at line 21 of file GrantRoleStatement.cs.

22  : this(userName, role, false) {
23  }
Deveel.Data.Sql.Statements.GrantRoleStatement.GrantRoleStatement ( string  userName,
string  role,
bool  withAdmin 
)
inline

Definition at line 25 of file GrantRoleStatement.cs.

25  {
26  if (String.IsNullOrEmpty(userName))
27  throw new ArgumentNullException("userName");
28  if (String.IsNullOrEmpty(role))
29  throw new ArgumentNullException("role");
30 
31  UserName = userName;
32  Role = role;
33  WithAdmin = withAdmin;
34  }
A long string in the system.

Property Documentation

string Deveel.Data.Sql.Statements.GrantRoleStatement.Role
getprivate set

Definition at line 36 of file GrantRoleStatement.cs.

string Deveel.Data.Sql.Statements.GrantRoleStatement.UserName
getprivate set

Definition at line 38 of file GrantRoleStatement.cs.

bool Deveel.Data.Sql.Statements.GrantRoleStatement.WithAdmin
getprivate set

Definition at line 40 of file GrantRoleStatement.cs.


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