DataParameter

Overview

Stores a name/value pair.

The DataParameter class is used in several IDataAbstractService methods to pass parameters to remote commands and data tables before their execution.

Location

 

constructor

Creates a new DataParameter instance.

 

constructor

 

DataParameter()

constructor (String, VariantType)

Creates a new DataParameter instance with the specified parameter name and value, where value is an instance of the VariantType.

 

constructor(aName: String; aValue: VariantType)

 

DataParameter(String aName, VariantType aValue)

Parameters:

  • aName: The name of the parameter.
  • aValue: The type of parameter's value.

constructor (String, Object)

Creates a new DataParameter instance with the specified parameter name and value.

 

constructor(aName: String; aValue: Object)

 

DataParameter(String aName, Object aValue)

Parameters:

  • aName: The name of the parameter.
  • aValue: The value of the parameter.

getAttributeValue    (declared in ComplexType)

Returns attribute.

 

method getAttributeValue(aName: String): String

 

String getAttributeValue(String aName)

Parameters:

  • aName: Given name.

Name

 

property Name: String read write;

 

String Name { __get; __set; }

readFromMessage

Initializes the current instance from the given message.

 

method readFromMessage(aName: String; aMessage: Message)

 

void readFromMessage(String aName, Message aMessage)

Parameters:

  • aName: The name of the object to get from the message.
  • aMessage: The message to be used in initialization.

setDefaultValues

Not used.

 

class method setDefaultValues(p_Name: String; p_Value: VariantType)

 

static void setDefaultValues(String p_Name, VariantType p_Value)

Parameters:

  • p_Name:
  • p_Value:

Value

 

property Value: VariantType read write;

 

VariantType Value { __get; __set; }

writeToMessage

Serializes instance content using the given message.

 

method writeToMessage(aName: String; aMessage: Message)

 

void writeToMessage(String aName, Message aMessage)

Parameters:

  • aName: The name that should be used to store the instance in the message.
  • aMessage: The message to write the data of the class instance.

 

Name

 

property Name: String read write;

 

String Name { __get; __set; }

Value

 

property Value: VariantType read write;

 

VariantType Value { __get; __set; }

 

setDefaultValues

Not used.

 

class method setDefaultValues(p_Name: String; p_Value: VariantType)

 

static void setDefaultValues(String p_Name, VariantType p_Value)

Parameters:

  • p_Name:
  • p_Value:

 

constructor

Creates a new DataParameter instance.

 

constructor

 

DataParameter()

constructor (String, VariantType)

Creates a new DataParameter instance with the specified parameter name and value, where value is an instance of the VariantType.

 

constructor(aName: String; aValue: VariantType)

 

DataParameter(String aName, VariantType aValue)

Parameters:

  • aName: The name of the parameter.
  • aValue: The type of parameter's value.

constructor (String, Object)

Creates a new DataParameter instance with the specified parameter name and value.

 

constructor(aName: String; aValue: Object)

 

DataParameter(String aName, Object aValue)

Parameters:

  • aName: The name of the parameter.
  • aValue: The value of the parameter.

getAttributeValue    (declared in ComplexType)

Returns attribute.

 

method getAttributeValue(aName: String): String

 

String getAttributeValue(String aName)

Parameters:

  • aName: Given name.

readFromMessage

Initializes the current instance from the given message.

 

method readFromMessage(aName: String; aMessage: Message)

 

void readFromMessage(String aName, Message aMessage)

Parameters:

  • aName: The name of the object to get from the message.
  • aMessage: The message to be used in initialization.

writeToMessage

Serializes instance content using the given message.

 

method writeToMessage(aName: String; aMessage: Message)

 

void writeToMessage(String aName, Message aMessage)

Parameters:

  • aName: The name that should be used to store the instance in the message.
  • aMessage: The message to write the data of the class instance.