DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Properties | Private Member Functions | Private Attributes | List of all members
Deveel.Data.Sql.Statements.PlSqlBlock Class Reference
Inheritance diagram for Deveel.Data.Sql.Statements.PlSqlBlock:
Deveel.Data.Sql.Expressions.IPreparable

Public Member Functions

 PlSqlBlock ()
 
void AddStatement (SqlStatement statement)
 
void AddExceptionHandler (ExceptionHandler handler)
 
void Dispose ()
 

Protected Member Functions

virtual PlSqlBlock Prepare (IExpressionPreparer preparer)
 Converts the underlying value of this instance into an object that can be evaluated by an expression. More...
 
virtual void Dispose (bool disposing)
 

Properties

string Label [get, set]
 
IEnumerable< SqlStatementStatements [get]
 
IEnumerable< ExceptionHandlerExceptionHandlers [get]
 

Private Member Functions

 ~PlSqlBlock ()
 
object IPreparable. Prepare (IExpressionPreparer preparer)
 Converts the underlying value of this instance into an object that can be evaluated by an expression. More...
 

Private Attributes

ICollection< SqlStatementstatements
 
ICollection< ExceptionHandlerexceptionHandlers
 

Detailed Description

Definition at line 24 of file PlSqlBlock.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Statements.PlSqlBlock.PlSqlBlock ( )
inline

Definition at line 28 of file PlSqlBlock.cs.

28  {
29  statements = new List<SqlStatement>();
30  exceptionHandlers = new List<ExceptionHandler>();
31  }
ICollection< SqlStatement > statements
Definition: PlSqlBlock.cs:25
ICollection< ExceptionHandler > exceptionHandlers
Definition: PlSqlBlock.cs:26
Deveel.Data.Sql.Statements.PlSqlBlock.~PlSqlBlock ( )
inlineprivate

Definition at line 33 of file PlSqlBlock.cs.

33  {
34  Dispose(false);
35  }

Member Function Documentation

void Deveel.Data.Sql.Statements.PlSqlBlock.AddExceptionHandler ( ExceptionHandler  handler)
inline

Definition at line 53 of file PlSqlBlock.cs.

53  {
54  // TODO: make further checks here ...
55  exceptionHandlers.Add(handler);
56  }
ICollection< ExceptionHandler > exceptionHandlers
Definition: PlSqlBlock.cs:26
void Deveel.Data.Sql.Statements.PlSqlBlock.AddStatement ( SqlStatement  statement)
inline

Definition at line 47 of file PlSqlBlock.cs.

47  {
48  // TODO: make further checks, such as if a labeled statement with
49  // the same label already exists
50  statements.Add(statement);
51  }
ICollection< SqlStatement > statements
Definition: PlSqlBlock.cs:25
void Deveel.Data.Sql.Statements.PlSqlBlock.Dispose ( )
inline

Definition at line 72 of file PlSqlBlock.cs.

72  {
73  Dispose(true);
74  GC.SuppressFinalize(this);
75  }
virtual void Deveel.Data.Sql.Statements.PlSqlBlock.Dispose ( bool  disposing)
inlineprotectedvirtual

Definition at line 77 of file PlSqlBlock.cs.

77  {
78  if (disposing) {
79  if (statements != null)
80  statements.Clear();
81  if (exceptionHandlers != null)
82  exceptionHandlers.Clear();
83  }
84 
85  statements = null;
86  exceptionHandlers = null;
87  }
ICollection< SqlStatement > statements
Definition: PlSqlBlock.cs:25
ICollection< ExceptionHandler > exceptionHandlers
Definition: PlSqlBlock.cs:26
virtual PlSqlBlock Deveel.Data.Sql.Statements.PlSqlBlock.Prepare ( IExpressionPreparer  preparer)
inlineprotectedvirtual

Converts the underlying value of this instance into an object that can be evaluated by an expression.

Parameters
preparerThe context used to prepare this object.
Returns
Returns an object that can be evaluated by an expression.

Implements Deveel.Data.Sql.Expressions.IPreparable.

Definition at line 64 of file PlSqlBlock.cs.

64  {
65  throw new NotImplementedException();
66  }
object IPreparable. Deveel.Data.Sql.Statements.PlSqlBlock.Prepare ( IExpressionPreparer  preparer)
inlineprivate

Converts the underlying value of this instance into an object that can be evaluated by an expression.

Parameters
preparerThe context used to prepare this object.
Returns
Returns an object that can be evaluated by an expression.

Implements Deveel.Data.Sql.Expressions.IPreparable.

Definition at line 68 of file PlSqlBlock.cs.

68  {
69  return Prepare(preparer);
70  }
virtual PlSqlBlock Prepare(IExpressionPreparer preparer)
Converts the underlying value of this instance into an object that can be evaluated by an expression...
Definition: PlSqlBlock.cs:64

Member Data Documentation

ICollection<ExceptionHandler> Deveel.Data.Sql.Statements.PlSqlBlock.exceptionHandlers
private

Definition at line 26 of file PlSqlBlock.cs.

ICollection<SqlStatement> Deveel.Data.Sql.Statements.PlSqlBlock.statements
private

Definition at line 25 of file PlSqlBlock.cs.

Property Documentation

IEnumerable<ExceptionHandler> Deveel.Data.Sql.Statements.PlSqlBlock.ExceptionHandlers
get

Definition at line 43 of file PlSqlBlock.cs.

string Deveel.Data.Sql.Statements.PlSqlBlock.Label
getset

Definition at line 37 of file PlSqlBlock.cs.

IEnumerable<SqlStatement> Deveel.Data.Sql.Statements.PlSqlBlock.Statements
get

Definition at line 39 of file PlSqlBlock.cs.


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