DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Static Public Member Functions | List of all members
Deveel.Data.Sql.Statements.StatementExtensions Class Reference

Static Public Member Functions

static IStatement Prepare (this IStatement statement, IExpressionPreparer preparer)
 
static IStatement PrepareStatement (this IStatement statement, IRequest context)
 
static IStatement Prepare (this IStatement statement, IExpressionPreparer preparer, IRequest context)
 Prepares this statement and returns an object that can be executed within a given context. More...
 

Detailed Description

Definition at line 6 of file StatementExtensions.cs.

Member Function Documentation

static IStatement Deveel.Data.Sql.Statements.StatementExtensions.Prepare ( this IStatement  statement,
IExpressionPreparer  preparer 
)
inlinestatic

Definition at line 7 of file StatementExtensions.cs.

7  {
8  if (statement is IPreparable)
9  statement = ((IPreparable) statement).Prepare(preparer) as IStatement;
10 
11  return statement;
12  }
A contract for objects that participate to a SqlExpression.Prepare phase of an expression evaluation...
Definition: IPreparable.cs:30
static IStatement Deveel.Data.Sql.Statements.StatementExtensions.Prepare ( this IStatement  statement,
IExpressionPreparer  preparer,
IRequest  context 
)
inlinestatic

Prepares this statement and returns an object that can be executed within a given context.

Parameters
statement
preparerAn object used to prepare the expressions contained in the statement.
contextThe execution context used to prepare the statement properties.
Returns
Returns an instance of SqlStatement that represents the prepared version of this statement and that will be executed in a later moment.
Exceptions
StatementPrepareExceptionThrown if an error occurred while preparing the statement.

Definition at line 35 of file StatementExtensions.cs.

35  {
36  if (statement is IPreparable)
37  statement = ((IPreparable) statement).Prepare(preparer) as IStatement;
38 
39  if (statement == null)
40  return null;
41 
42  if (statement is IPreparableStatement)
43  statement = ((IPreparableStatement) statement).Prepare(context);
44 
45  return statement;
46  }
A contract for objects that participate to a SqlExpression.Prepare phase of an expression evaluation...
Definition: IPreparable.cs:30
static IStatement Deveel.Data.Sql.Statements.StatementExtensions.PrepareStatement ( this IStatement  statement,
IRequest  context 
)
inlinestatic

Definition at line 14 of file StatementExtensions.cs.

14  {
15  if (statement is IPreparableStatement)
16  statement = ((IPreparableStatement) statement).Prepare(context);
17 
18  return statement;
19  }

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