|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface DataTableInterface
DataTableInterface defines an interface to a database
DataTableInterface defines methods for setting and retrieving formatted or unformatted data from a database. It supports where clause subsetting.
DataTableInterface is used in conjunction with the ROCF functionality to make an instance of the appropriate proxy for communication with the server.
Rocf| Field Summary |
|---|
| Fields inherited from interface com.sas.table.RowTemplateTableInterface |
|---|
DEFAULT_INDEX |
| Method Summary | |
|---|---|
abstract void |
close()
Closes the SAS data set if it is currently open. |
abstract void |
commitRow()
Commits whatever the current row in the data set is. |
abstract int |
getBufferBlocks()
Returns the numbr of buffer blocks. |
abstract int |
getBufferSize()
Returns the number of rows which the data set caching fetches a look-ahead read. |
abstract int |
getColumnIndex(java.lang.String columnName)
Returns the index of the specified column. |
abstract java.lang.String |
getColumnInfoUsed()
Returns the column information that is currently being returned as the column label. |
abstract java.lang.String[] |
getDisplayedColumns()
Returns which columns in the model are displayed, or null for all columns (the default). |
abstract java.lang.String |
getWhere()
Returns the where clause applied to the data set. |
abstract boolean |
isReadOnly()
Returns whether the data set is read only or editable. |
abstract void |
refresh()
refresh() causes the data in the dataset to be re-read from the SAS server. |
abstract void |
setBufferBlocks(int bufferBlocks)
Sets the data set row cache block size. |
abstract void |
setBufferSize(int lookAheadSize)
Sets the SAS data set buffering look-ahead size. |
abstract void |
setColumnInfoUsed(java.lang.String columnInfoUsed)
Sets the column information that is currently being returned as the column label. |
abstract void |
setDisplayedColumns(java.lang.String[] displayedColumns)
Sets which columns in the model are displayed, or returned to the user. |
abstract void |
setReadOnly(boolean readOnly)
Specifies whether the data set is read only or editable. |
abstract void |
setWhere(java.lang.String whereClause)
Specifies the where clause to apply to the data set. |
abstract void |
useBufferHints(com.sas.models.BufferHints hints)
Ask the local data set object to use a set of buffering hints. |
| Methods inherited from interface com.sas.table.RowTemplateTableInterface |
|---|
addColumn, addRow, addRow, deleteColumn, deleteRow, getColumnDefaultValue, getColumnDefaultValues, isColumnsDeletable, isColumnsExtendable, isColumnsInsertable, isColumnsRedefinable, isRowsDeletable, isRowsExtendable, isRowsInsertable, setColumnClass, setColumnDefaultValue |
| Methods inherited from interface com.sas.table.StaticRowTemplateTableInterface |
|---|
getColumnClass, getColumnClasses |
| Methods inherited from interface com.sas.table.TableInterface |
|---|
isCellsModifiable, isMultipleColumnUpdateSupported, isMultipleRowUpdateSupported, setCell, setCells, setColumn, setRow |
| Methods inherited from interface com.sas.table.StaticTableInterface |
|---|
countColumns, countRows, getCell, getCellClass, getCellClasses, getCells, getColumn, getColumnCount, getRow, getRowCount |
| Methods inherited from interface com.sas.table.StaticRowLabelInterface |
|---|
getRowLabel, getRowLabels, isRowLabelsSupported, isRowsLabelSupported |
| Methods inherited from interface com.sas.table.StaticColumnLabelInterface |
|---|
getColumnLabel, getColumnLabels, isColumnLabelsSupported, isColumnsLabelSupported |
| Methods inherited from interface com.sas.table.FormattedDataInterface |
|---|
setFormattedCell, setFormattedCells, setFormattedColumn, setFormattedRow |
| Methods inherited from interface com.sas.table.StaticFormattedDataInterface |
|---|
getFormattedCell, getFormattedCells, getFormattedColumn, getFormattedRow |
| Methods inherited from interface com.sas.table.StaticColumnInfoInterface |
|---|
getColumnInfo, getColumnInfoNames |
| Method Detail |
|---|
void refresh()
int getColumnIndex(java.lang.String columnName)
throws java.lang.IllegalArgumentException,
com.sas.table.TableException
columnName - The name of the column to return the index of. Case does not matter.
java.lang.IllegalArgumentException - if the column is not in the data set.
com.sas.table.TableException - if the column information cannot be retrieved.java.lang.String getColumnInfoUsed()
setColumnInfoUsed(java.lang.String)
void setColumnInfoUsed(java.lang.String columnInfoUsed)
throws com.sas.table.TableException
columnInfoUsed - A String indicating the type of information to use as the column label.
Case does not matter.
com.sas.table.TableExceptiongetColumnInfoUsed()void close()
void setWhere(java.lang.String whereClause)
whereClause - The where clause.getWhere()java.lang.String getWhere()
getWhere()boolean isReadOnly()
setReadOnly(boolean)void setReadOnly(boolean readOnly)
readOnly - true for read only, false for editable.setReadOnly(boolean)java.lang.String[] getDisplayedColumns()
void setDisplayedColumns(java.lang.String[] displayedColumns)
displayedColumns - an array of column names to be displayed. The array should be in the order
in which the columns should be returned.void setBufferSize(int lookAheadSize)
Also settable via useBufferHints() with a bufferHint.how = BufferHintsInterface.LOOKAHEAD_SIZE
bufferSize - Number of rows to read-ahead per read request.
bufferSize is multiplied by buferBlocks
to determine the number of rows the client side data set
keeps in its internal cache.setBufferBlocks(int),
getBufferSize(),
setBufferSize(int)int getBufferSize()
setBufferSize(int),
setBufferBlocks(int),
getBufferBlocks()void setBufferBlocks(int bufferBlocks)
Also settable via useBufferHints() with a bufferHint.how = BufferHintsInterface.CACHE_SIZE
bufferBlocks - Blocking factor. This number is multiplied by the bufferSize
to determine the cache size, the number of rows to store
locally in the client.getBufferBlocks(),
setBufferSize(int),
getBufferSize()int getBufferBlocks()
setBufferBlocks(int),
setBufferSize(int),
getBufferSize()void commitRow()
void useBufferHints(com.sas.models.BufferHints hints)
The DataSet object currently supports only caching of sequential reads, and row-based caching.
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||