18 using System.Collections.Generic;
23 namespace Deveel.Data.Sql.Statements {
29 statements =
new List<SqlStatement>();
30 exceptionHandlers =
new List<ExceptionHandler>();
37 public string Label {
get; set; }
39 public IEnumerable<SqlStatement> Statements {
40 get {
return statements.AsEnumerable(); }
43 public IEnumerable<ExceptionHandler> ExceptionHandlers {
44 get {
return exceptionHandlers.AsEnumerable(); }
50 statements.Add(statement);
55 exceptionHandlers.Add(handler);
65 throw new NotImplementedException();
69 return Prepare(preparer);
74 GC.SuppressFinalize(
this);
77 protected virtual void Dispose(
bool disposing) {
79 if (statements != null)
81 if (exceptionHandlers != null)
82 exceptionHandlers.Clear();
86 exceptionHandlers = null;
void AddExceptionHandler(ExceptionHandler handler)
ICollection< SqlStatement > statements
virtual void Dispose(bool disposing)
void AddStatement(SqlStatement statement)
ICollection< ExceptionHandler > exceptionHandlers
Represents the foundation class of SQL statements to be executed.
virtual PlSqlBlock Prepare(IExpressionPreparer preparer)
Converts the underlying value of this instance into an object that can be evaluated by an expression...
An interface used to prepare a SqlExpression object.
object Prepare(IExpressionPreparer preparer)
Converts the underlying value of this instance into an object that can be evaluated by an expression...
A contract for objects that participate to a SqlExpression.Prepare phase of an expression evaluation...