Database Verification Point Reference

prevnext

DataTable Interface


This interface is implemented by a class that encapsulates a table of string data.


Overview

public interface DataTable

Applicability

Commonly used with QualityArchitect.

This interface requires QualityArchitect.


Summary

This class contains the following methods:

Method Description
getColumns() Retrieves the column names in the table.
getData() Retrieves data from the table.
getNumCols() Retrieves the number of columns in the table.
getNumRows() Retrieves the number of rows in the table.
setColumns() Specifies the column names in the table.
setData() Specifies the data in the table.


DataTable.getColumns()

Retrieves the column names in the table.


Syntax

public java.lang.String[] getColumns()

Return Value

An array of the column names in the table.


DataTable.getData()

Retrieves data from the table.


Syntax

public java.util.Vector getData()

Return Value

A vector of arrays of data in the table. Each array represents one row of data from the recordset.


DataTable.getNumCols()

Retrieves the number of columns in the table.


Syntax

public int getNumCols()

Return Value

The number of columns in the table.


DataTable.getNumRows()

Retrieves the number of rows in the table.


Syntax

public int getNumRows()

Return Value

The number of rows in the table.


DataTable.setColumns()

Specifies the column names in the table.


Syntax

public void setColumns(java.lang.String[] asColumns)

Element Description
asColumns An array of the column names in the table.


DataTable.setData()

Specifies the data in the table. Each element in the vector is an array of strings containing one row of data.


Syntax

public void setData(java.util.Vector vData)

Element Description
vData The data in the table.

prevnext


Rational Test Script Services for Java Rational Software Corporation
Copyright (c) 2003, Rational Software Corporation http://www.rational.com
support@rational.com
info@rational.com