com.sas.table
Interface StaticRowTemplateTableInterface

All Superinterfaces:
StaticTableInterface
All Known Subinterfaces:
DataTableInterface, RowTemplateTableInterface
All Known Implementing Classes:
JDBCToDataTableAdapter

public interface StaticRowTemplateTableInterface
extends StaticTableInterface

Defines an interface for accessing row template tables. Row template tables are tables where the set of column classes defines a template for each row. In other words, the class of each cell is restricted to the class, or a subclass, of its corresponding column. A SAS data set is an example of such a table.

See Also:
RowTemplateTableInterface, StaticColumnTemplateTableInterface

Method Summary
 java.lang.Class getColumnClass(int index)
          Returns the class of a column.
 java.lang.Class[] getColumnClasses(int startIndex, int count)
          Returns the classes for a range of columns.
 
Methods inherited from interface com.sas.table.StaticTableInterface
countColumns, countRows, getCell, getCellClass, getCellClasses, getCells, getColumn, getColumnCount, getRow, getRowCount
 

Method Detail

getColumnClass

java.lang.Class getColumnClass(int index)
                               throws com.sas.table.TableException
Returns the class of a column. The column is identified by the given index. Null will be returned for columns that do not contain cells of a single class.

Parameters:
index - A one-based index that identifies the column.
Returns:
The specified column's class.
Throws:
TableException - Provides a catch-all for all non-RuntimeExceptions.
java.lang.IndexOutOfBoundsException - Thrown if index is negative, zero, or greater than the number of columns.

getColumnClasses

java.lang.Class[] getColumnClasses(int startIndex,
                                   int count)
                                   throws com.sas.table.TableException
Returns the classes for a range of columns. The range of columns is identified by the given index which serves to identify a starting column and by the given column count which defines the extent of the range. The set of classes is returned as an array with each element of the array corresponding to a column in the range. The class of columns that do not contain cells of a single class should be expressed as null.

Parameters:
startIndex - A one-based index which identifies the start of the range.
count - The number of classes to return; defines the extent of the range.
Returns:
The specified columns' classes.
Throws:
TableException - Provides a catch-all for all non-RuntimeExceptions.
java.lang.IndexOutOfBoundsException - Thrown if startIndex or count is negative, zero, or greater than the number of columns except when getColumnCount has returned -1. In that case, the implementation should return an array whose length is less than count and the caller should be prepared for this.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.