10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 7: Working with Arrays, TableFields, and CollectionsThis section contains the following topics:Arrays and Table Fields—Conceptual Background (see page 205)Arrays (see page 207)Table Fields (see page 227)Table Field Operations (see page 236)Collections (see page 254)The OpenROAD Workbench lets you create table fields dynamically by firstcreating and mapping arrays. This chapter describes the components of arraysand table fields and the syntax used to access these components. It alsoexplains how to work with sets of data using dynamic arrays and table fields,and how to perform tasks that are commonly performed on arrays or tablefields.Arrays and Table Fields—Conceptual BackgroundAn array is a named set of rows in which each row is a reference variable thatpoints to an object of a given system or user class.Arrays are arranged in rows and columns. The attributes of the underlyingclass determine the columns of the array. Each column is the collection ofvalues in one specific attribute in all the rows of the array. The data in eachcolumn is of the same type (such as all names or all telephone numbers),while each row contains a single object composed of every column (such asone name and one telephone number).The following diagram illustrates this concept:Working with Arrays, Table Fields, and Collections 205

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!