BaseCmdBuilder

BaseCmdBuilder implements the basic functionality for command builders bases on Statement objects.

Namespace:
Inetdev.Data.Query
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
Yes
Inherits from:
System.Object
Implements:
Inetdev.Data.Query.ICmdBuilder, System.IDisposable

Constructors

BaseCmdBuilder

Creates a new instance of BaseCmdBuilder.

Signature:
public Void BaseCmdBuilder(builder, statement, command)
Parameters
Name Type Summary
builder IDbCmdBuilder The IDbCmdBuilder that is building the command.
statement Statement The Statement with the information of the command to build.
command IDbCommand An IDbCommand where a command is being built.
Exceptions
Type Summary
ArgumentNullException Thrown when builder is null.
ArgumentNullException Thrown when statement is null.

Events

Type Name Summary
AddingSelectColumnEventHandler AddingSelectColumn Raised when a column is being added to a SELECT command.

Properties

Command

Gets or sets the IDbCommand that is being built.

Signature:
public IDbCommand Command { get; set; }

CommandBuilder

Gets or sets the IDbCmdBuilder that is managing the building of the SQL command.

Signature:
public IDbCmdBuilder CommandBuilder { get; set; }

DataAccessAPI

Data access API.

Signature:
protected IDbAccess DataAccessAPI { get; }

Formatter

Formatter.

Signature:
protected IDbFormatter Formatter { get; }

NameQualifier

Name qualifier.

Signature:
protected IDbNameQualifier NameQualifier { get; }

PrimaryRepository

Primary repository.

Signature:
protected Repository PrimaryRepository { get; }

StatementPreparer

Statement preparer.

Signature:
protected IDbStatementPreparer StatementPreparer { get; }

Methods

BuildCommand

Builds and returns the IDbCommand to execute.

Signature:
public IDbCommand BuildCommand()
Returns

The IDbCommand to excecute againt the database engine.

BuildCommandText

Builds the command text for the SQL commnad being built.

Signature:
public String BuildCommandText()
Returns

The command text to execute againts the database engine.

Dispose

Clean up!

Signature:
public Void Dispose()

OnAddingSelectColumn

Helps on lauching the AddingSelectColumn event.

Signature:
protected Void OnAddingSelectColumn(sender, e)
Parameters
Name Type Summary
sender Object A reference to the object raising the event.
e AddingSelectColumnEventArgs Information related to the AddingSelectColumnEventHandler event.