C# Class Deveel.Data.Sql.Statements.SqlStatement

Represents the foundation class of SQL statements to be executed.

A SQL Statement encapsulates the properties that are required to form a SqlPreparedStatement that can be serialized and executed.

It is prevented to a SqlStatement to be immediately executed for enforcing SqlPreparedStatement to be cached and executed in later moments, optimizing performances and re-usability.

Mostrar archivo Open project: deveel/deveeldb Class Usage Examples

Public Methods

Method Description
Parse ( IContext context, SqlQuery query ) : IEnumerable
Parse ( IContext context, string sqlSource ) : IEnumerable

Parses a given string into one of more statements.

Parse ( string sqlSource ) : IEnumerable

Parses a given string into one of more statements.

ToString ( ) : string

Protected Methods

Method Description
AppendTo ( SqlStringBuilder builder ) : void
ConfigureSecurity ( ExecutionContext context ) : void
ExecuteStatement ( ExecutionContext context ) : void
GetData ( SerializationInfo info ) : void
ISerializable ( SerializationInfo info, StreamingContext context ) : void
ISqlFormattable ( SqlStringBuilder builder ) : void
OnAfterExecute ( ExecutionContext context ) : void
OnBeforeExecute ( ExecutionContext context ) : void
PrepareExpressions ( IExpressionPreparer preparer ) : SqlStatement
PrepareStatement ( IRequest context ) : SqlStatement
RevokeAccess ( ObjectName resource, DbObjectType resourceType ) : void
SqlStatement ( ) : System
SqlStatement ( SerializationInfo info, StreamingContext context ) : System

Private Methods

Method Description
Execute ( ExecutionContext context ) : void
IPreparable ( IExpressionPreparer preparer ) : object
Prepare ( IExpressionPreparer preparer ) : SqlStatement
Prepare ( IRequest request ) : SqlStatement
Prepare ( IRequest context, IExpressionPreparer preparer ) : SqlStatement
SetSource ( SqlQuery query ) : void

Method Details

AppendTo() protected method

protected AppendTo ( SqlStringBuilder builder ) : void
builder SqlStringBuilder
return void

ConfigureSecurity() protected method

protected ConfigureSecurity ( ExecutionContext context ) : void
context ExecutionContext
return void

ExecuteStatement() protected method

protected ExecuteStatement ( ExecutionContext context ) : void
context ExecutionContext
return void

GetData() protected method

protected GetData ( SerializationInfo info ) : void
info SerializationInfo
return void

ISerializable() protected method

protected ISerializable ( SerializationInfo info, StreamingContext context ) : void
info SerializationInfo
context StreamingContext
return void

ISqlFormattable() protected method

protected ISqlFormattable ( SqlStringBuilder builder ) : void
builder SqlStringBuilder
return void

OnAfterExecute() protected method

protected OnAfterExecute ( ExecutionContext context ) : void
context ExecutionContext
return void

OnBeforeExecute() protected method

protected OnBeforeExecute ( ExecutionContext context ) : void
context ExecutionContext
return void

Parse() public static method

public static Parse ( IContext context, SqlQuery query ) : IEnumerable
context IContext
query SqlQuery
return IEnumerable

Parse() public static method

Parses a given string into one of more statements.
/// Thrown if the input string is of an invalid format and cannot form /// into a valid statement. ///
public static Parse ( IContext context, string sqlSource ) : IEnumerable
context IContext
sqlSource string The input string to be parsed.
return IEnumerable

Parse() public static method

Parses a given string into one of more statements.
/// Thrown if the input string is of an invalid format and cannot form /// into a valid statement. ///
public static Parse ( string sqlSource ) : IEnumerable
sqlSource string The input string to be parsed.
return IEnumerable

PrepareExpressions() protected method

protected PrepareExpressions ( IExpressionPreparer preparer ) : SqlStatement
preparer IExpressionPreparer
return SqlStatement

PrepareStatement() protected method

protected PrepareStatement ( IRequest context ) : SqlStatement
context IRequest
return SqlStatement

RevokeAccess() protected method

protected RevokeAccess ( ObjectName resource, DbObjectType resourceType ) : void
resource ObjectName
resourceType DbObjectType
return void

SqlStatement() protected method

protected SqlStatement ( ) : System
return System

SqlStatement() protected method

protected SqlStatement ( SerializationInfo info, StreamingContext context ) : System
info SerializationInfo
context StreamingContext
return System

ToString() public method

public ToString ( ) : string
return string