Scalable Database Server, HiRDB Version 8 UAP Development Guide

[Contents][Index][Back][Next]

15.5.2 HiRDBCommandBuilder

Organization of this subsection
(1) Constructor
(2) Properties
(3) Methods

(1) Constructor

(a) HiRDBCommandBuilder

void HiRDBCommandBuilder ()
Description: Initializes a new instance of HiRDBCommandBuilder.

void HiRDBCommandBuilder (HiRDBDataAdapter adapter)
Argument
HiRDBDataAdapter adapter: HiRDBDataAdapter object (DataAdapter property)
Description: Specifies the HiRDBDataAdapter object and initializes a new instance of HiRDBCommandBuilder.

(2) Properties

(a) DataAdapter

Type: HiRDBDataAdapter

Default value: null

Description: Acquires or sets the HiRDBDataAdapter object for which an SQL statement is to be created automatically.

(3) Methods

(a) GetDeleteCommand

HiRDBCommand GetDeleteCommand (string)

Argument
string s TableName: Table name

Return
HiRDBCommand: HiRDBCommand object that was automatically created to execute deletion processing

Description: Acquires the automatically created HiRDBCommand object for executing deletion processing on the database.

Exception: HiRDBException

(b) GetInsertCommand

HiRDBCommand GetInsertCommand (string)

Argument
string s TableName: Table name

Return
HiRDBCommand: HiRDBCommand object that was automatically created to execute insertion processing

Description: Acquires the automatically created HiRDBCommand object for executing insertion processing on the database.

Exception: HiRDBException

(c) GetUpdateCommand

HiRDBCommand GetUpdateCommand (string)

Argument
string s TableName: Table name

Return
HiRDBCommand: HiRDBCommand object that was automatically created to execute update processing

Description: Acquires the automatically created HiRDBCommand object for executing update processing on the database.

Exception: HiRDBException

(d) RefreshSchema

void RefreshSchema (string)

Argument
string s TableName: Table name

Return: void

Description: Updates database schema information to create the INSERT, UPDATE, or DELETE statement.

Exception: HiRDBException