Skip to content

User Guide: SDKs > VoltMX Iris SDK > Invoking an Object Service > Data Transfer Objects > voltmx.sdk.dto.Column Class

voltmx.sdk.dto.Column Class

This class represents a column in a database table, which is in turn represented by a voltmx.sdk.dto.Table object. It is used when creating a query.

Note: This class is used only for offline Object Services, not for online Object Services.

Constructors

The voltmx.sdk.dto.Column class has one constructor.

voltmx.sdk.dto.Column(table, columnName) Constructor

Signature

voltmx.sdk.dto.Column(table, columnName)

Parameters

Parameter nameTypeDescription
tablevoltmx.sdk.dto.TableThe table containing the column
columnNamestringThe name of the column

Example

var dataObject = new voltmx.sdk.dto.DataObject("ObjectName");
var tblDto = new voltmx.sdk.dto.Table("ObjectName", "ObjectName", false);
var selQuery = new voltmx.sdk.dto.SelectQuery("serviceName", tblDto);
var colObj = new voltmx.sdk.dto.Column(tblDto, "field1");
var colObj2 = new voltmx.sdk.dto.Column(tblDto, "field2");
var colObj3 = new voltmx.sdk.dto.Column(tblDto, "field3");
selQuery.addColumn(colObj);
selQuery.addColumn(colObj2);
selQuery.addColumn(colObj3);
dataObject.setSelectQueryObject(selQuery);