TDABaseCommand

Overview

The TDABaseCommand is a base class for executing commands (stored procedures or SQL statements) from the Schema published by a custom service.

Location

Instance Methods


constructor Create  override    (declared in TROComponent)

Creates a new instance.

constructor Create(AOwner: TComponent)

Parameters:

  • AOwner: Owner.

Assign  override    (declared in TROComponent)

Copies the contents of another, similar object.

procedure Assign(Source: TPersistent)

Parameters:

  • Source: Instance whose properties will be copied

Execute (string): Integer  overload

Executes the command with the given name and returns the number of affected rows.

function Execute(aCommandName: string): Integer

Parameters:

  • aCommandName: Name of the command that is declared in the schema.

Execute (string, array of string, array of variant): Integer  overload

Executes the command with the given name and input parameters and returns the number of affected rows.

function Execute(aCommandName: string; aParamNames: array of string; aParamValues: array of variant): Integer

Parameters:

  • aCommandName: Name of the command that is declared in the schema.
  • aParamNames: Specified array with input parameter names that will be encoded to UTF8 format.
  • aParamValues: specified array with input parameter values.

Execute (string, DataParameterArray): Integer  overload

Executes the command with the given name and input parameters and returns the number of affected rows.

function Execute(aCommandName: string; aInputParameters: DataParameterArray): Integer

Parameters:

  • aCommandName: Name of the command that is declared in the schema.
  • aInputParameters: Specified array with input parameters.

Execute (string, DataParameterArray, DataParameterArray): Integer  overload virtual abstract

Executes the command with the given name and input parameters and returns the number of affected rows and output parameters.

function Execute(aCommandName: string; aInputParameters: DataParameterArray; out aOutputParameters: DataParameterArray): Integer

Parameters:

  • aCommandName: Name of the command that is declared in the schema.
  • aInputParameters: Specified array with input parameters.
  • aOutputParameters: Specified array with output parameters.

ROFreeNotification    (declared in TROComponent)

Forwards notification messages to all owned RO components.

procedure ROFreeNotification(AComponent: TComponent)

Parameters:

  • AComponent: component

RORemoveFreeNotification    (declared in TROComponent)

Disables destruction notification for specified RO component.

procedure RORemoveFreeNotification(AComponent: TComponent)

Parameters:

  • AComponent: component

Descendants