DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
Represents the foundation class of SQL statements to be executed. More...
Public Member Functions | |
ITable | Execute (IRequest context) |
Prepares and evaluates this statement into a tabular result. More... | |
Static Public Member Functions | |
static IEnumerable< SqlStatement > | Parse (string sqlSource) |
Parses a given string into one of more statements. More... | |
static IEnumerable< SqlStatement > | Parse (IContext context, string sqlSource) |
Parses a given string into one of more statements. More... | |
static IEnumerable< SqlStatement > | Parse (IContext context, SqlQuery query) |
Protected Member Functions | |
SqlStatement () | |
SqlStatement (ObjectData data) | |
virtual void | ExecuteStatement (ExecutionContext context) |
virtual void | GetData (SerializeData data) |
Package Functions | |
void | SetSource (SqlQuery query) |
Properties | |
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 | |
void IExecutable. | Execute (ExecutionContext context) |
void ISerializable. | GetData (SerializeData data) |
ITable | PrepareAndExecute (IExpressionPreparer preparer, IRequest context) |
Static Private Attributes | |
static readonly ISqlCompiler | DefaultCompiler = new SqlDefaultCompiler() |
Represents the foundation class of SQL statements to be executed.
Definition at line 32 of file SqlStatement.cs.
|
inlineprotected |
Definition at line 33 of file SqlStatement.cs.
|
inlineprotected |
Definition at line 37 of file SqlStatement.cs.
|
inlineprivate |
Implements Deveel.Data.Sql.IExecutable.
Definition at line 62 of file SqlStatement.cs.
Prepares and evaluates this statement into a tabular result.
context | The context used to prepare and evaluate the statement. |
StatementPrepareException | Thrown if an error occurred while preparing the statement. |
Definition at line 97 of file SqlStatement.cs.
|
inlineprotectedvirtual |
Reimplemented in Deveel.Data.Sql.Statements.InsertStatement.Prepared, Deveel.Data.Sql.Statements.CreateViewStatement.Prepared, Deveel.Data.Sql.Statements.CreateTableStatement.Prepared, Deveel.Data.Sql.Statements.SelectIntoStatement.Prepared, Deveel.Data.Sql.Statements.UpdateStatement.Prepared, Deveel.Data.Sql.Statements.DropTableStatement.Prepared, Deveel.Data.Sql.Statements.DeclareCursorStatement, Deveel.Data.Sql.Statements.AlterTableStatement, Deveel.Data.Sql.Statements.InsertSelectStatement.Prepared, Deveel.Data.Sql.Statements.OpenStatement, Deveel.Data.Sql.Statements.DropViewStatement.Prepared, Deveel.Data.Sql.Statements.GrantPrivilegesStatement, Deveel.Data.Sql.Statements.SelectStatement.Prepared, Deveel.Data.Sql.Statements.LoopControlStatement, Deveel.Data.Sql.Statements.AlterUserStatement, Deveel.Data.Sql.Statements.UpdateFromCursorStatement.Prepared, Deveel.Data.Sql.Statements.CreateUserStatement, Deveel.Data.Sql.Statements.UpdateQueryStatement.Prepared, Deveel.Data.Sql.Statements.RaiseStatement, Deveel.Data.Sql.Statements.CloseStatement, Deveel.Data.Sql.Statements.DeclareVariableStatement, Deveel.Data.Sql.Statements.CreateSchemaStatement, and Deveel.Data.Sql.Statements.DropSchemaStatement.
Definition at line 66 of file SqlStatement.cs.
|
inlineprivate |
Implements Deveel.Data.Serialization.ISerializable.
Definition at line 75 of file SqlStatement.cs.
|
inlineprotectedvirtual |
Implements Deveel.Data.Serialization.ISerializable.
Reimplemented in Deveel.Data.Sql.Statements.CreateTableStatement.Prepared, Deveel.Data.Sql.Statements.CreateViewStatement.Prepared, Deveel.Data.Sql.Statements.InsertStatement.Prepared, Deveel.Data.Sql.Statements.UpdateStatement.Prepared, Deveel.Data.Sql.Statements.SelectIntoStatement.Prepared, Deveel.Data.Sql.Statements.DropTableStatement.Prepared, Deveel.Data.Sql.Statements.AlterTableStatement, Deveel.Data.Sql.Statements.OpenStatement, Deveel.Data.Sql.Statements.InsertSelectStatement.Prepared, Deveel.Data.Sql.Statements.DropViewStatement.Prepared, Deveel.Data.Sql.Statements.DeclareCursorStatement, Deveel.Data.Sql.Statements.LoopControlStatement, Deveel.Data.Sql.Statements.GrantPrivilegesStatement, Deveel.Data.Sql.Statements.SelectStatement.Prepared, Deveel.Data.Sql.Statements.UpdateQueryStatement.Prepared, Deveel.Data.Sql.Statements.AlterUserStatement, Deveel.Data.Sql.Statements.CreateUserStatement, Deveel.Data.Sql.Statements.CloseStatement, and Deveel.Data.Sql.Statements.RaiseStatement.
Definition at line 82 of file SqlStatement.cs.
|
inlinestatic |
Parses a given string into one of more statements.
sqlSource | The input string to be parsed. |
SqlParseException | Thrown if the input string is of an invalid format and cannot form into a valid statement. |
Definition at line 133 of file SqlStatement.cs.
|
inlinestatic |
Parses a given string into one of more statements.
context | |
sqlSource | The input string to be parsed. |
SqlParseException | Thrown if the input string is of an invalid format and cannot form into a valid statement. |
Definition at line 150 of file SqlStatement.cs.
|
inlinestatic |
Definition at line 158 of file SqlStatement.cs.
|
inlineprivate |
Definition at line 101 of file SqlStatement.cs.
|
inlinepackage |
Definition at line 70 of file SqlStatement.cs.
|
staticprivate |
Definition at line 154 of file SqlStatement.cs.
|
getprivate set |
Gets a boolean value indicating if this object was formed from the parsing of a SqlQuery or if it was manually created.
When this value is true
the value returned by SourceQuery is not null
.
Definition at line 60 of file SqlStatement.cs.
|
getset |
Gets the SqlQuery that is the origin of this statement.
A single SQL query can form multiple SqlStatement objects.
Definition at line 49 of file SqlStatement.cs.