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.

Afficher le fichier Open project: deveel/deveeldb Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected AppendTo ( SqlStringBuilder builder ) : void
builder SqlStringBuilder
Résultat void

ConfigureSecurity() protected méthode

protected ConfigureSecurity ( ExecutionContext context ) : void
context ExecutionContext
Résultat void

ExecuteStatement() protected méthode

protected ExecuteStatement ( ExecutionContext context ) : void
context ExecutionContext
Résultat void

GetData() protected méthode

protected GetData ( SerializationInfo info ) : void
info SerializationInfo
Résultat void

ISerializable() protected méthode

protected ISerializable ( SerializationInfo info, StreamingContext context ) : void
info SerializationInfo
context StreamingContext
Résultat void

ISqlFormattable() protected méthode

protected ISqlFormattable ( SqlStringBuilder builder ) : void
builder SqlStringBuilder
Résultat void

OnAfterExecute() protected méthode

protected OnAfterExecute ( ExecutionContext context ) : void
context ExecutionContext
Résultat void

OnBeforeExecute() protected méthode

protected OnBeforeExecute ( ExecutionContext context ) : void
context ExecutionContext
Résultat void

Parse() public static méthode

public static Parse ( IContext context, SqlQuery query ) : IEnumerable
context IContext
query SqlQuery
Résultat IEnumerable

Parse() public static méthode

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.
Résultat IEnumerable

Parse() public static méthode

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.
Résultat IEnumerable

PrepareExpressions() protected méthode

protected PrepareExpressions ( IExpressionPreparer preparer ) : SqlStatement
preparer IExpressionPreparer
Résultat SqlStatement

PrepareStatement() protected méthode

protected PrepareStatement ( IRequest context ) : SqlStatement
context IRequest
Résultat SqlStatement

RevokeAccess() protected méthode

protected RevokeAccess ( ObjectName resource, DbObjectType resourceType ) : void
resource ObjectName
resourceType DbObjectType
Résultat void

SqlStatement() protected méthode

protected SqlStatement ( ) : System
Résultat System

SqlStatement() protected méthode

protected SqlStatement ( SerializationInfo info, StreamingContext context ) : System
info SerializationInfo
context StreamingContext
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string