|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.models.IMDBTable
public class IMDBTable
| Field Summary | |
|---|---|
protected boolean |
clearModel
|
protected OrderedCollection |
columnInfos
|
protected java.lang.String |
columnInfoUsed
|
protected java.lang.String |
currentQuery
|
protected OrderedCollection |
dataSetIDs
|
protected OrderedCollection |
dataSetNames
|
protected boolean |
readOnly
|
protected OrderedCollection |
updates
|
protected java.lang.String[][] |
updateTable
|
protected boolean |
updateTableOnly
|
| Fields inherited from class com.sas.models.SimpleTable |
|---|
allContentsChangedListeners, columnLabelsSupported, columnsLabel, columnsLabelSupported, rowLabelsSupported, rowsLabel, rowsLabelSupported |
| Fields inherited from interface com.sas.table.RowTemplateTableInterface |
|---|
DEFAULT_INDEX |
| Constructor Summary | |
|---|---|
IMDBTable()
|
|
IMDBTable(java.lang.String host,
java.lang.String port,
java.lang.String userName,
java.lang.String password)
|
|
| Method Summary | |
|---|---|
int |
_addRow(com.sas.collection.hlist.HListInterface p1,
com.sas.collection.hlist.HListInterface p2)
This method is for internal implementation only and should not be called by the user. |
int |
_close()
This method is for internal implementation only and should not be called by the user. |
void |
_commitRow()
This method is for internal implementation only and should not be called by the user. |
int |
_countRows(int p1)
Count the number of rows in the dataset, but don't read more than maxRows observations. |
int |
_deleteRow(int p1)
This method is for internal implementation only and should not be called by the user. |
com.sas.collection.hlist.HListInterface |
_finfo()
Fast info retrieval for dataset. |
com.sas.collection.hlist.HListInterface |
_fopen(java.lang.String p1,
java.lang.String p2)
Fast open for dataset. |
com.sas.collection.hlist.HListInterface |
_formatValues(java.lang.String p1,
com.sas.collection.hlist.HListInterface p2)
This method is for internal implementation only and should not be called by the user. |
com.sas.collection.hlist.HListInterface |
_getColumnAttributes(int p1)
This method is for internal implementation only and should not be called by the user. |
int |
_getColumnCount()
This method is for internal implementation only and should not be called by the user. |
com.sas.collection.hlist.HListInterface |
_getFormattedRows(int p1,
int p2)
This method is for internal implementation only and should not be called by the user. |
com.sas.collection.hlist.HListInterface |
_getMembers()
Returns the list of members in the remote SCL object. |
com.sas.collection.hlist.HListInterface |
_getPartialFormattedRows(int p1,
int p2)
This method is for internal implementation only and should not be called by the user. |
com.sas.collection.hlist.HListInterface |
_getPartialRows(int p1,
int p2)
This method is for internal implementation only and should not be called by the user. |
int |
_getRowCount()
This method is for internal implementation only and should not be called by the user. |
com.sas.collection.hlist.HListInterface |
_getRows(int p1,
int p2)
This method is for internal implementation only and should not be called by the user. |
int |
_setDataSet(java.lang.String p1,
java.lang.String p2)
This method is for internal implementation only and should not be called by the user. |
void |
_setDisplayedColumns(com.sas.collection.hlist.HListInterface p1)
This method is for internal implementation only and should not be called by the user. |
int |
_setEntry(java.lang.String p1)
This method is for internal implementation only and should not be called by the user. |
int |
_setFormattedRow(int p1,
com.sas.collection.hlist.HListInterface p2,
com.sas.collection.hlist.HListInterface p3)
This method is for internal implementation only and should not be called by the user. |
int |
_setRow(int p1,
com.sas.collection.hlist.HListInterface p2,
com.sas.collection.hlist.HListInterface p3)
This method is for internal implementation only and should not be called by the user. |
int |
_setSource(java.lang.String p1)
This method is for internal implementation only and should not be called by the user. |
void |
_setWhere(com.sas.collection.hlist.HListInterface p1)
This method is for internal implementation only and should not be called by the user. |
void |
addColumn(int p1,
java.lang.Class p2,
java.lang.Object p3)
Throws an exception since columns are not extendable |
void |
addRow(int rowIndex,
java.lang.Object[] cells)
Adds a row. |
void |
apply(com.sas.util.ApplyInterface p1)
Applies the action to every item in the collection. |
protected void |
clearAllData()
Clear all the data fields Note that this method clears all the local collections, while the initializeAllData method reallocates the collections. |
void |
close()
Closes the SAS data set if it is currently open. |
void |
commitRow()
Commits whatever the current row in the data set is. |
boolean |
contains(java.lang.Object p1)
Test for the presence of an object in this collection |
void |
contentsChanged(com.sas.collection.ContentsChangedEvent p1)
|
int |
count()
|
int |
countNodeChildren(int p1)
Counts the children of the current node. |
void |
deleteColumn(int p1)
Column deletion is not supported by this model. |
void |
deleteRow(int rowIndex)
Deleting the row will delete any associated row labels as well. |
void |
deleteRow(int rowIndex,
OrderedCollection filesIncludedInDeletion)
|
void |
enableEventsSilently(boolean p1)
Reenables events, but does so without sending an event, which enableEvents will do. |
boolean |
equals(StaticOrderedCollectionInterface p1)
Compare the current items with those in another collection and tell whether the collections are identical. |
java.lang.String[] |
formatValues(int p1,
java.lang.Object[] p2)
Formats a set of values using the pre-defined format associated with a given identifier. |
java.lang.Object |
get(int p1)
Get a value via an integer index. |
int |
getBufferBlocks()
Returns the numbr of buffer blocks. |
int |
getBufferSize()
Returns the number of rows which the data set caching fetches a look-ahead read. |
int |
getColumnIndex(java.lang.String columnName)
Returns the index of the specified column. |
java.lang.Object |
getColumnInfo(int index,
java.lang.String columnInfoName)
|
java.lang.String[] |
getColumnInfoNames()
|
java.lang.String |
getColumnInfoUsed()
Returns the column information that is currently being returned as the column label. |
java.lang.String |
getDataSet()
Returns the SAS data set name. |
java.lang.String |
getDataSetName()
|
java.lang.String |
getDataSetOptions()
Returns any options passed into setDataSet() with the data set name. |
com.sas.visuals.IconInterface |
getDefaultIcon()
Returns the default icon for the current node. |
java.lang.String[] |
getDisplayedColumns()
Returns which columns in the model are displayed, or null for all columns (the default). |
java.lang.String |
getEntry()
Returns the name of the dataform entry associated with the model. |
com.sas.visuals.IconInterface |
getExpandedIcon()
Returns the expanded icon for the current node. |
com.sas.visuals.IconInterface |
getExpandedSelectedIcon()
Returns the expandedSelected icon for the current node. |
java.lang.String |
getFormattedCell(int p1,
int p2)
Returns the formatted value of a cell. |
java.lang.String[][] |
getFormattedCells(int p1,
int p2,
int p3,
int p4)
Returns the formatted values for a block of cells. |
java.lang.String[] |
getFormattedColumn(int p1)
Returns the formatted values of all the cells in a column. |
java.lang.String[] |
getFormattedRow(int rowIndex)
Returns the formatted values of all the cells in a row. |
IMDB |
getIMDB()
|
int |
getIndex(java.lang.Object p1,
int p2)
Returns the index of the first occurrence of the item. |
int |
getIndexColumn()
Returns the index column index in the dataset. |
java.util.Enumeration |
getItems()
|
java.util.Enumeration |
getItems(int p1,
int p2)
Returns an enumeration of a subset of the items from a collection. |
int |
getLastIndex(java.lang.Object p1,
int p2)
Returns the index of the last occurrence of the item. |
int |
getLevelColumn()
Returns the level column index in the dataset. |
SimpleNodeInterface |
getNodeChild(int p1)
Returns the child node at the specified index. |
int |
getNodeChildCount()
Returns the number of children. |
SimpleNodeInterface[] |
getNodeChildren(int p1,
int p2)
Returns the specified range of children for the current node. |
java.lang.String |
getNodeExpandedText()
Returns the value of the nodeExpandedText property. |
java.lang.String |
getNodeText()
Returns the value of the nodeText property. |
java.lang.String |
getNodeType()
Returns the value of the nodeType property. |
java.lang.String |
getQuery()
|
NodeInterface |
getRoot()
Returns a NodeInterface object to serve as the root node. |
java.lang.String |
getRootText()
Returns the root node text if it has been set through the setRootText method. |
com.sas.visuals.IconInterface |
getSelectedIcon()
Returns the selected icon for the current node. |
java.lang.String |
getSource()
Returns the name of the SCL source entry associated with the model. |
int |
getTextColumn()
Returns the text column index in the dataset. |
java.lang.String |
getWhere()
Returns the where clause applied to the data set. |
protected void |
initializeAllData()
Initialize all the local data fields Note that this method reallocates all the local collections, while the clearAllData method clears the existing collections. |
boolean |
isCellsModifiable()
In this model, the cells are always modifiable, so this method always returns true. |
boolean |
isColumnsDeletable()
Column deletion is not supported in this model. |
boolean |
isColumnsExtendable()
Column extension is not supported in this model. |
boolean |
isColumnsInsertable()
Column insertion is not supported in this model. |
boolean |
isColumnsRedefinable()
Column redefinition is not supported in this model. |
boolean |
isLeafNode()
Indicates whether the current node is a leaf. |
boolean |
isMultipleRowUpdateSupported()
In this model, multiple row update is always supported, so this method always returns true. |
boolean |
isReadOnly()
Returns whether the data set is read only or editable. |
boolean |
isRowsDeletable()
Row deletion is supported if the data set is open in update mode. |
boolean |
isRowsExtendable()
Row addition is supported if the data set is open in update mode. |
boolean |
isRowsInsertable()
Column insertion is not supported in this model. |
boolean |
isRowsLabelSupported()
This model never returns a columns label. |
void |
refresh()
refresh() causes the data in the dataset to be re-read from the SAS server. |
void |
serverConnect(java.lang.String host,
java.lang.String port,
java.lang.String userName,
java.lang.String password)
|
void |
serverDisconnect()
|
void |
setBufferBlocks(int p1)
Sets the data set row cache block size. |
void |
setBufferSize(int p1)
Sets the SAS data set buffering look-ahead size. |
void |
setCell(int rowIndex,
int columnIndex,
java.lang.Object cell)
Specifies the value of a cell. |
void |
setCells(int startRowIndex,
int startColumnIndex,
int rowCount,
int columnCount,
java.lang.Object[][] cells)
Specifies the values for a block of cells. |
void |
setColumn(int columnIndex,
java.lang.Object[] cells)
Specifies the values of all the cells in a column. |
void |
setColumnInfoUsed(java.lang.String p1)
Sets the column information that is currently being returned as the column label. |
void |
setDataSet(java.lang.String dataSetName)
Specifies the SAS data set name. |
void |
setDisplayedColumns(java.lang.String[] p1)
Sets which columns in the model are displayed, or returned to the user. |
void |
setEntry(java.lang.String p1)
Specifies the name of the dataform entry associated with the model. |
void |
setFormattedCell(int rowIndex,
int columnIndex,
java.lang.String cell)
Specifies the formatted value of a cell. |
void |
setFormattedCells(int p1,
int p2,
int p3,
int p4,
java.lang.String[][] p5)
Specifies the formatted values for a block of cells. |
void |
setFormattedColumn(int columnIndex,
java.lang.String[] cells)
Specifies the formatted values of all the cells in a column. |
void |
setFormattedRow(int rowIndex,
java.lang.String[] cells)
Specifies the formatted values of all the cells in a row. |
void |
setIMDB(IMDB imdb)
|
void |
setIndexColumn(int p1)
Specifies the index column index in the dataset. |
void |
setLeafNode(boolean p1)
Specifies whether this node is the leaf node of a TreeInterface implementation. |
void |
setLevelColumn(int p1)
Specifies the level column index in the dataset. |
void |
setPendingDataSet(java.lang.String p1)
Specifies the SAS data set name, but the data set is not actually read until necessary for other method calls. |
void |
setQuery(java.lang.String request)
|
void |
setReadOnly(boolean readOnly)
Specifies whether the data set is read only or editable. |
void |
setRootText(java.lang.String p1)
Sets the root node text that will be used when the DataSetInterface is the model for a tree. |
void |
setRow(int rowIndex,
java.lang.Object[] cells)
Specifies the values of all the cells in a row. |
void |
setSource(java.lang.String p1)
Specifies the name of the SCL source entry associated with the model. |
void |
setTextColumn(int p1)
Specifies the text column index in the dataset. |
void |
setWhere(java.lang.String request)
Specifies the where clause to apply to the data set. |
void |
useBufferHints(com.sas.models.BufferHints p1)
Ask the local data set object to use a set of buffering hints. |
| Methods inherited from interface com.sas.ViewInterface |
|---|
attachModel, detachModel, getModelInterface, getRequiredInterfaces, getViewInterfaceSupportInfo, refresh, removeInterfaceTraps, setModelInterface, setRequiredInterfaces, setViewInterfaceSupportInfo, supportsRequiredInterfaces, trapInterfaceEvents |
| Methods inherited from interface com.sas.ModelInterface |
|---|
attachView, detachView |
| Methods inherited from interface com.sas.LinkPropertiesInterface |
|---|
addLink, getLinkInfo, isLinked, queryLinks, queryLinks, removeAllLinks, removeLink, setLinkInfo |
| Methods inherited from interface com.sas.table.RowTemplateTableInterface |
|---|
addRow, getColumnDefaultValue, getColumnDefaultValues, setColumnClass, setColumnDefaultValue |
| Methods inherited from interface com.sas.table.StaticRowTemplateTableInterface |
|---|
getColumnClass, getColumnClasses |
| Methods inherited from interface com.sas.table.TableInterface |
|---|
isMultipleColumnUpdateSupported |
| 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 |
| Methods inherited from interface com.sas.table.StaticColumnLabelInterface |
|---|
getColumnLabel, getColumnLabels, isColumnLabelsSupported, isColumnsLabelSupported |
| Methods inherited from interface com.sas.collection.StaticOrderedCollectionInterface |
|---|
clone |
| Methods inherited from interface com.sas.collection.ContentsChangedSource |
|---|
addContentsChangedListener, removeContentsChangedListener |
| Methods inherited from interface com.sas.util.EventGateInterface |
|---|
disableEvents, enableEvents |
| Field Detail |
|---|
protected transient OrderedCollection dataSetNames
protected transient OrderedCollection dataSetIDs
protected transient OrderedCollection updates
protected transient OrderedCollection columnInfos
protected transient boolean readOnly
protected transient boolean clearModel
protected transient java.lang.String[][] updateTable
protected transient java.lang.String currentQuery
protected transient java.lang.String columnInfoUsed
protected transient boolean updateTableOnly
| Constructor Detail |
|---|
public IMDBTable()
public IMDBTable(java.lang.String host,
java.lang.String port,
java.lang.String userName,
java.lang.String password)
| Method Detail |
|---|
public IMDB getIMDB()
public void setIMDB(IMDB imdb)
public void serverConnect(java.lang.String host,
java.lang.String port,
java.lang.String userName,
java.lang.String password)
public void serverDisconnect()
public int getNodeChildCount()
SimpleNodeInterface
getNodeChildCount in interface SimpleNodeInterface
public java.lang.String[][] getFormattedCells(int p1,
int p2,
int p3,
int p4)
throws com.sas.table.TableException
StaticFormattedDataInterfacenew Object[rowCount][colCount], with
values[0][0] containing the formatted value of the cell at
(startRowIndex, startColumnIndex).
getFormattedCells in interface StaticFormattedDataInterfacep1 - A one-based index that identifies the start of the row range.p2 - A one-based index that identifies the start of the column range.p3 - The number of rows in the row range.p4 - The number of columns in the column range.
TableException - Thrown if the query can not be satisfied (e.g. i/o-failure).StaticFormattedDataInterface.getFormattedCell(int, int),
StaticTableInterface.getColumnCount(),
StaticTableInterface.getRowCount()
public void setRow(int rowIndex,
java.lang.Object[] cells)
TableInterface
setRow in interface TableInterfacesetRow in class SimpleTablerowIndex - A one-based index that identifies the row.cells - The new values for each cell in the row.TableInterface.setRow(int, java.lang.Object[])public java.lang.String getNodeType()
NodeInterface
getNodeType in interface NodeInterface
public void setCell(int rowIndex,
int columnIndex,
java.lang.Object cell)
TableInterface
setCell in interface TableInterfacesetCell in class SimpleTablerowIndex - A one-based index that identifies the cell's row.columnIndex - A one-based index that identifies the cell's column.cell - The cell's new value.TableInterface.setCell(int, int, java.lang.Object)public boolean equals(StaticOrderedCollectionInterface p1)
StaticOrderedCollectionInterfaceequals() method is used to compare
collection items.
equals in interface StaticOrderedCollectionInterfacep1 - Another ordered collection to be compared to.
public int _setEntry(java.lang.String p1)
RemoteDataSetInterface
_setEntry in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceDataSetInterface.setEntry(java.lang.String)
public com.sas.collection.hlist.HListInterface _formatValues(java.lang.String p1,
com.sas.collection.hlist.HListInterface p2)
RemoteDataSetInterface
_formatValues in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceFormatInterface.formatValues(int, java.lang.Object[])public void apply(com.sas.util.ApplyInterface p1)
StaticCollectionInterface
apply in interface StaticCollectionInterfacep1 - An object that provides a function which takes an
object as an argument and then does something to it.
action.apply(pair) is excecuted on successive values
in this collection until all values have been operated on, or until the method
returns ApplyInterface.ABORTpublic boolean isRowsInsertable()
isRowsInsertable in interface RowTemplateTableInterfaceisRowsInsertable in class SimpleTableRowTemplateTableInterface.isColumnsInsertable()public int _countRows(int p1)
RemoteDataSetInterface
_countRows in interface com.sas.sasserver.dataset.RemoteDataSetInterfacep1 - the maximum number of rows to read.
public int _addRow(com.sas.collection.hlist.HListInterface p1,
com.sas.collection.hlist.HListInterface p2)
RemoteDataSetInterface
_addRow in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceRowTemplateTableInterface.addRow(int, java.lang.Object[])public void enableEventsSilently(boolean p1)
DataSetInterface
enableEventsSilently in interface com.sas.sasserver.dataset.DataSetInterfacep1 - If true, marks the component as dirty and needing refreshEventGateInterface.enableEvents()public java.lang.String getColumnInfoUsed()
DataTableInterface
getColumnInfoUsed in interface DataTableInterfaceDataTableInterface.setColumnInfoUsed(java.lang.String)
public SimpleNodeInterface[] getNodeChildren(int p1,
int p2)
SimpleNodeInterfacetrue then this method should return null.
getNodeChildren in interface SimpleNodeInterfacep1 - 0-based index which identifies the start of the rangep2 - the amount of children to get
true.
public java.lang.String getFormattedCell(int p1,
int p2)
throws com.sas.table.TableException
StaticFormattedDataInterface
getFormattedCell in interface StaticFormattedDataInterfacep1 - A one-based index that identifies the cell's row.p2 - A one-based index that identifies the cell's column.
TableException - Thrown if the query can not be satisfied (e.g. i/o-failure).StaticFormattedDataInterface.getFormattedCells(int, int, int, int),
StaticFormattedDataInterface.getFormattedColumn(int),
StaticFormattedDataInterface.getFormattedRow(int)
public void setFormattedRow(int rowIndex,
java.lang.String[] cells)
FormattedDataInterface
setFormattedRow in interface FormattedDataInterfacerowIndex - A one-based index that identifies the row.cells - The new formatted values for each cell in the row.FormattedDataInterface.setFormattedCell(int, int, java.lang.String)public void _setWhere(com.sas.collection.hlist.HListInterface p1)
RemoteDataSetInterface
_setWhere in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceDataTableInterface.setWhere(java.lang.String)public com.sas.collection.hlist.HListInterface _finfo()
RemoteDataSetInterface
_finfo in interface com.sas.sasserver.dataset.RemoteDataSetInterfacepublic void setPendingDataSet(java.lang.String p1)
DataSetInterface
setPendingDataSet in interface com.sas.sasserver.dataset.DataSetInterfacep1 - The SAS data set name.DataSetInterface.setDataSet(java.lang.String)
public int getColumnIndex(java.lang.String columnName)
throws com.sas.table.TableException,
java.lang.IllegalArgumentException
DataTableInterface
getColumnIndex in interface DataTableInterfacecolumnName - The name of the column to return the index of. Case does not matter.
com.sas.table.TableException - if the column information cannot be retrieved.
java.lang.IllegalArgumentException - if the column is not in the data set.public java.util.Enumeration getItems()
getItems in interface com.sas.util.Enumerablepublic java.lang.String getNodeText()
NodeInterface
getNodeText in interface NodeInterfacepublic java.lang.String getNodeExpandedText()
NodeInterface
getNodeExpandedText in interface NodeInterfacepublic void setTextColumn(int p1)
LevelDataSetInterface
setTextColumn in interface com.sas.sasserver.dataset.LevelDataSetInterfacep1 - The column index of the text column.
public void setFormattedColumn(int columnIndex,
java.lang.String[] cells)
FormattedDataInterface
setFormattedColumn in interface FormattedDataInterfacecolumnIndex - A one-based index that identifies the column.cells - The new formatted values for each cell in the column.FormattedDataInterface.setFormattedCell(int, int, java.lang.String)public boolean isColumnsRedefinable()
isColumnsRedefinable in interface RowTemplateTableInterfaceisColumnsRedefinable in class SimpleTableRowTemplateTableInterface.isColumnsRedefinable()public int _setSource(java.lang.String p1)
RemoteDataSetInterface
_setSource in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceDataSetInterface.setSource(java.lang.String)
public com.sas.collection.hlist.HListInterface _fopen(java.lang.String p1,
java.lang.String p2)
RemoteDataSetInterface
_fopen in interface com.sas.sasserver.dataset.RemoteDataSetInterfacepublic java.lang.String getSource()
DataSetInterface
getSource in interface com.sas.sasserver.dataset.DataSetInterfaceDataSetInterface.setSource(java.lang.String)public void setBufferBlocks(int p1)
DataTableInterfaceAlso settable via useBufferHints() with a bufferHint.how = BufferHintsInterface.CACHE_SIZE
setBufferBlocks in interface DataTableInterfacep1 - Blocking factor. This number is multiplied by the bufferSize
to determine the cache size, the number of rows to store
locally in the client.DataTableInterface.getBufferBlocks(),
DataTableInterface.setBufferSize(int),
DataTableInterface.getBufferSize()
public java.lang.Object getColumnInfo(int index,
java.lang.String columnInfoName)
throws com.sas.table.TableException
getColumnInfo in interface com.sas.table.StaticColumnInfoInterfacecom.sas.table.TableException
public java.lang.String[] formatValues(int p1,
java.lang.Object[] p2)
throws com.sas.table.TableException
FormatInterface
formatValues in interface FormatInterfacep1 - Identifies the format to use. This will be implementation defined.
For example, a one-based index that identifies a row or column in a
table.p2 - The set of values to format.
TableException - Thrown if the query can not be satisfied (e.g. i/o-failure).public com.sas.collection.hlist.HListInterface _getColumnAttributes(int p1)
RemoteDataSetInterface
_getColumnAttributes in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceStaticColumnInfoInterface.getColumnInfo(int, java.lang.String)public void commitRow()
DataTableInterface
commitRow in interface DataTableInterfacepublic void setDataSet(java.lang.String dataSetName)
DataSetInterface
You may also pass in options to use when the dataset is opened :
ds.setDataSetName("sasuser.class(pw=" + password + ")");
If an error occurs opening the data set (missing data set, bad password, etc...), an IllegalArgumentException will be thrown.
setDataSet in interface com.sas.sasserver.dataset.DataSetInterfacedataSetName - The SAS data set name and any options to use when opening the data set.DataSetInterface.getDataSet()public java.lang.String getDataSetOptions()
DataSetInterface
ds.setDataSet( "sasuser.pwprot(pw=\"password\")" );
then, getDataSetOptions() will return (pw="password").
getDataSetOptions in interface com.sas.sasserver.dataset.DataSetInterfacepublic boolean contains(java.lang.Object p1)
StaticCollectionInterface
contains in interface StaticCollectionInterfacep1 - the item to search for
public boolean isMultipleRowUpdateSupported()
SimpleTable
isMultipleRowUpdateSupported in interface TableInterfaceisMultipleRowUpdateSupported in class SimpleTabletrue if multiple rows can be simultaneously updated,
and false otherwise.TableInterface.isMultipleRowUpdateSupported()public com.sas.visuals.IconInterface getExpandedIcon()
NodeIconInterface
getExpandedIcon in interface NodeIconInterfacepublic void setLevelColumn(int p1)
LevelDataSetInterface
setLevelColumn in interface com.sas.sasserver.dataset.LevelDataSetInterfacep1 - The column index of the level column.
public void addRow(int rowIndex,
java.lang.Object[] cells)
RowTemplateTableInterfaceSome implementations may not allow rows to be added. This can be determined through isRowsExtendable. Some implementations may allow rows to be added, but not inserted; check isRowsInsertable. If this is the case, only DEFAULT_INDEX can be specified for index.
addRow in interface RowTemplateTableInterfaceaddRow in class SimpleTablerowIndex - The one-based position at which to insert the row; rows already
at or above that position will be shifted-up.
If DEFAULT_INDEX is specified the position of the new row is
implementation defined, but should be at the end if possible.cells - The values for each of the row's cells.RowTemplateTableInterface.addRow(int, java.lang.Object[])public int _deleteRow(int p1)
RemoteDataSetInterface
_deleteRow in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceRowTemplateTableInterface.deleteRow(int)public int _getColumnCount()
RemoteDataSetInterface
_getColumnCount in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceStaticTableInterface.getColumnCount()public void setEntry(java.lang.String p1)
DataSetInterface The DataSetInterface supports setting a dataform
entry because it is the way to create computed columns on the DATA_M model.
However, there can be a great deal of other customizing information contained within a
dataform entry. These customizations are always applied to the DATA_M model, but
may cause problems from the client side. For example, it causes problems if some
columns are set to hidden within the dataform. For best results, only use the
dataform entry to define computed columns. Implement other features, like data
validation or column display on the client side.
If the dataform entry contains definitions of one or more computed columns,
you should also create an associated SCL source entry containing
the SCL code for calculating the computed column values. The computed columns
defined in the dataform entry will show missing values until _setSource()
is called. That method associates the DATA_M model with the SCL code for computing
the column values.
setEntry in interface com.sas.sasserver.dataset.DataSetInterfacep1 - The dataform entry's three or four level name.DataSetInterface.setSource(java.lang.String),
DataSetInterface.getEntry()public java.lang.String getEntry()
DataSetInterface
getEntry in interface com.sas.sasserver.dataset.DataSetInterfaceDataSetInterface.setEntry(java.lang.String)
public void setColumnInfoUsed(java.lang.String p1)
throws com.sas.table.TableException
DataTableInterface
setColumnInfoUsed in interface DataTableInterfacep1 - A String indicating the type of information to use as the column label.
Case does not matter.
com.sas.table.TableExceptionDataTableInterface.getColumnInfoUsed()
public void setCells(int startRowIndex,
int startColumnIndex,
int rowCount,
int columnCount,
java.lang.Object[][] cells)
TableInterfacenew Object[rowCount][colCount], with
values[0][0] containing the value of the cell at
(startRowIndex, startColumnIndex).
Usually, the implementation will require that the class of each
new value match what's returned by getCellClass() for the corresponding
cell, but a common exception to
this will be implementations that allow values to be instances of
com.sas.MissingValues.
setCells in interface TableInterfacesetCells in class SimpleTablestartRowIndex - A one-based index that identifies the start of the row range.startColumnIndex - A one-based index that identifies the start of the column range.rowCount - The number of rows in the row range.columnCount - The number of columns in the column range.cells - The new values for each cell in the block.TableInterface.setCells(int, int, int, int, java.lang.Object[][])public boolean isCellsModifiable()
SimpleTable
isCellsModifiable in interface TableInterfaceisCellsModifiable in class SimpleTabletrue if cells can be modified,
and false otherwise.TableInterface.isCellsModifiable()public com.sas.visuals.IconInterface getExpandedSelectedIcon()
NodeIconInterface
getExpandedSelectedIcon in interface NodeIconInterface
public void setFormattedCell(int rowIndex,
int columnIndex,
java.lang.String cell)
FormattedDataInterface
setFormattedCell in interface FormattedDataInterfacerowIndex - A one-based index that identifies the cell's row.columnIndex - A one-based index that identifies the cell's column.cell - The cell's new formatted value.FormattedDataInterface.setFormattedCells(int, int, int, int, java.lang.String[][]),
FormattedDataInterface.setFormattedColumn(int, java.lang.String[]),
FormattedDataInterface.setFormattedRow(int, java.lang.String[])public boolean isRowsLabelSupported()
isRowsLabelSupported in interface com.sas.table.StaticRowLabelInterfaceisRowsLabelSupported in class SimpleTableStaticRowLabelInterface.isRowsLabelSupported()public boolean isRowsDeletable()
isRowsDeletable in interface RowTemplateTableInterfaceisRowsDeletable in interface SortableTableInterfaceisRowsDeletable in class SimpleTableRowTemplateTableInterface.isRowsDeletable()public boolean isColumnsDeletable()
isColumnsDeletable in interface RowTemplateTableInterfaceisColumnsDeletable in class SimpleTableRowTemplateTableInterface.isColumnsDeletable()
public com.sas.collection.hlist.HListInterface _getPartialFormattedRows(int p1,
int p2)
RemoteDataSetInterface
_getPartialFormattedRows in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceStaticFormattedDataInterface.getFormattedCells(int, int, int, int)
public com.sas.collection.hlist.HListInterface _getPartialRows(int p1,
int p2)
RemoteDataSetInterface
_getPartialRows in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceStaticTableInterface.getRow(int)public void setLeafNode(boolean p1)
DataSetInterface
setLeafNode in interface com.sas.sasserver.dataset.DataSetInterfacep1 - Whether this node is a leaf nodepublic java.lang.String getWhere()
DataTableInterface
getWhere in interface DataTableInterfaceDataTableInterface.getWhere()public java.lang.String getQuery()
public int countNodeChildren(int p1)
SimpleNodeInterfacecountNodeChildren is an instruction to determine the number of children even though that number is not readily known. To limit the potential overhead of this determination, the maximum number of children to read may be specified.
countNodeChildren in interface SimpleNodeInterface
public void setColumn(int columnIndex,
java.lang.Object[] cells)
TableInterface
setColumn in interface TableInterfacesetColumn in class SimpleTablecolumnIndex - A one-based index that identifies the column.cells - The new values for each cell in the column.TableInterface.setColumn(int, java.lang.Object[])public int getIndexColumn()
LevelDataSetInterface
getIndexColumn in interface com.sas.sasserver.dataset.LevelDataSetInterface
public java.util.Enumeration getItems(int p1,
int p2)
StaticOrderedCollectionInterface
getItems in interface StaticOrderedCollectionInterfacep1 - the index of the first item, zero based.p2 - one past the index of the last item to include in the enumeration, zero based,
or -1 to indicate the enumeration should include all remaining elements.
Note that the range of elements returned in the Enumeration does not
include the end item; this is consistent with String.substring(start, end)
for example.
public void deleteRow(int rowIndex)
SimpleTable
deleteRow in interface RowTemplateTableInterfacedeleteRow in class SimpleTablerowIndex - A one-based index that identifies the row.RowTemplateTableInterface.deleteRow(int)
public void deleteRow(int rowIndex,
OrderedCollection filesIncludedInDeletion)
public int _setRow(int p1,
com.sas.collection.hlist.HListInterface p2,
com.sas.collection.hlist.HListInterface p3)
RemoteDataSetInterface
_setRow in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceTableInterface.setRow(int, java.lang.Object[])public int getLevelColumn()
LevelDataSetInterface
getLevelColumn in interface com.sas.sasserver.dataset.LevelDataSetInterfacepublic void _setDisplayedColumns(com.sas.collection.hlist.HListInterface p1)
RemoteDataSetInterface
_setDisplayedColumns in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceDataTableInterface.setDisplayedColumns(java.lang.String[])
public com.sas.collection.hlist.HListInterface _getFormattedRows(int p1,
int p2)
RemoteDataSetInterface
_getFormattedRows in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceStaticFormattedDataInterface.getFormattedCells(int, int, int, int)
public int _setDataSet(java.lang.String p1,
java.lang.String p2)
RemoteDataSetInterface
_setDataSet in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceDataSetInterface.setDataSet(java.lang.String)public void setSource(java.lang.String p1)
DataSetInterfaceThere should also be an associated dataform entry that contains the definition of
the computed columns in the model SCL entry. The computed columns will not appear until
_setEntry() is called, setting this corresponding dataform entry.
The model SCL for a computed column must compute the value for each row as the row is displayed in the viewer and when related column values are edited. Here is an example of computing a variance between actual and predicted results for a table containing numeric columns names "actual" and "predict". The model SCL will compute values for the computed column named "variance".
INIT: ACTUAL: PREDICT: * Set the value of VARIANCE during initialization ; * or if values are modified in the ACTUAL or ; * PREDICT columns. ; variance=actual-predict; return;
setSource in interface com.sas.sasserver.dataset.DataSetInterfacep1 - The model SCL entry's three or four level name.DataSetInterface.setEntry(java.lang.String),
DataSetInterface.getSource()public boolean isLeafNode()
SimpleNodeInterfacetrue
indicates that the current node is a leaf and hence will not have any children.
isLeafNode in interface SimpleNodeInterfacetrue if the current node is a leaf, otherwise falsepublic java.lang.String[] getFormattedRow(int rowIndex)
StaticFormattedDataInterface
getFormattedRow in interface StaticFormattedDataInterfacerowIndex - A one-based index that identifies the row.
StaticFormattedDataInterface.getFormattedCell(int, int)
public int getIndex(java.lang.Object p1,
int p2)
StaticOrderedCollectionInterface
getIndex in interface StaticOrderedCollectionInterfacep1 - item to search forp2 - the position where the search should start
public boolean isColumnsExtendable()
isColumnsExtendable in interface RowTemplateTableInterfaceisColumnsExtendable in class SimpleTableRowTemplateTableInterface.isColumnsExtendable()
public void addColumn(int p1,
java.lang.Class p2,
java.lang.Object p3)
addColumn in interface RowTemplateTableInterfaceaddColumn in class SimpleTablep1 - The one-based position at which to insert the column; columns already
at or above that position will be shifted-up.
If DEFAULT_INDEX is specified the position of the new column is
implementation defined, but should be at the end if possible.p2 - The class of the column's cells.p3 - The default value for the column's cells.
com.sas.table.TableException - since columns are not exendableRowTemplateTableInterface.addColumn(int, java.lang.Class, java.lang.Object)public void useBufferHints(com.sas.models.BufferHints p1)
DataTableInterfaceThe DataSet object currently supports only caching of sequential reads, and row-based caching.
useBufferHints in interface DataTableInterfacepublic SimpleNodeInterface getNodeChild(int p1)
SimpleNodeInterfacetrue then this method should return null.
getNodeChild in interface SimpleNodeInterfacep1 - the 0-based index of the child node to retrieve
true.
public java.lang.String[] getFormattedColumn(int p1)
throws com.sas.table.TableException
StaticFormattedDataInterface
getFormattedColumn in interface StaticFormattedDataInterfacep1 - A one-based index that identifies the column.
TableException - Thrown if the query can not be satisfied (e.g. i/o-failure).StaticFormattedDataInterface.getFormattedCell(int, int)public com.sas.visuals.IconInterface getDefaultIcon()
NodeIconInterface
getDefaultIcon in interface NodeIconInterfacepublic void deleteColumn(int p1)
deleteColumn in interface RowTemplateTableInterfacedeleteColumn in class SimpleTablep1 - A one-based index that identifies the column.
com.sas.table.TableException - Thrown since columns are not deletable in this modelRowTemplateTableInterface.deleteColumn(int)
public int _setFormattedRow(int p1,
com.sas.collection.hlist.HListInterface p2,
com.sas.collection.hlist.HListInterface p3)
RemoteDataSetInterface
_setFormattedRow in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceFormattedDataInterface.setFormattedCells(int, int, int, int, java.lang.String[][])public void setReadOnly(boolean readOnly)
DataTableInterface
setReadOnly in interface DataTableInterfacereadOnly - true for read only, false for editable.DataTableInterface.setReadOnly(boolean)public java.lang.Object get(int p1)
IndexedGetInterface
get in interface IndexedGetInterfacep1 - the index of the item to fetch.
public void setIndexColumn(int p1)
LevelDataSetInterface
setIndexColumn in interface com.sas.sasserver.dataset.LevelDataSetInterfacep1 - The column index of the index column.public NodeInterface getRoot()
TreeInterface
getRoot in interface TreeInterfacepublic void contentsChanged(com.sas.collection.ContentsChangedEvent p1)
contentsChanged in interface com.sas.collection.ContentsChangedListener
public int getLastIndex(java.lang.Object p1,
int p2)
StaticOrderedCollectionInterface
getLastIndex in interface StaticOrderedCollectionInterfacep1 - the item to search forp2 - the position where the search should start
public void close()
DataTableInterface
close in interface DataTableInterfacepublic com.sas.collection.hlist.HListInterface _getMembers()
RemoteSASListInterface
_getMembers in interface RemoteSASListInterfacepublic com.sas.visuals.IconInterface getSelectedIcon()
NodeIconInterface
getSelectedIcon in interface NodeIconInterfacepublic int getTextColumn()
LevelDataSetInterface
getTextColumn in interface com.sas.sasserver.dataset.LevelDataSetInterfacepublic boolean isColumnsInsertable()
isColumnsInsertable in interface RowTemplateTableInterfaceisColumnsInsertable in class SimpleTableRowTemplateTableInterface.isColumnsInsertable()
public com.sas.collection.hlist.HListInterface _getRows(int p1,
int p2)
RemoteDataSetInterface
_getRows in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceStaticTableInterface.getRow(int)public int _getRowCount()
RemoteDataSetInterface
_getRowCount in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceStaticTableInterface.getRowCount()public void setRootText(java.lang.String p1)
DataSetInterface
setRootText in interface com.sas.sasserver.dataset.DataSetInterfacep1 - Text to return from the getRoot methodDataSetInterface.getRootText()public void setDisplayedColumns(java.lang.String[] p1)
DataTableInterface
setDisplayedColumns in interface DataTableInterfacep1 - an array of column names to be displayed. The array should be in the order
in which the columns should be returned.public java.lang.String getDataSetName()
getDataSetName in interface com.sas.sasserver.dataset.DataSetInterfacepublic int count()
count in interface com.sas.util.Countablepublic int getBufferBlocks()
DataTableInterface
getBufferBlocks in interface DataTableInterfaceDataTableInterface.setBufferBlocks(int),
DataTableInterface.setBufferSize(int),
DataTableInterface.getBufferSize()public int getBufferSize()
DataTableInterface
getBufferSize in interface DataTableInterfaceDataTableInterface.setBufferSize(int),
DataTableInterface.setBufferBlocks(int),
DataTableInterface.getBufferBlocks()public void setBufferSize(int p1)
DataTableInterfaceAlso settable via useBufferHints() with a bufferHint.how = BufferHintsInterface.LOOKAHEAD_SIZE
setBufferSize in interface DataTableInterfaceDataTableInterface.setBufferBlocks(int),
DataTableInterface.getBufferSize(),
DataTableInterface.setBufferSize(int)public java.lang.String[] getDisplayedColumns()
DataTableInterface
getDisplayedColumns in interface DataTableInterfacepublic void refresh()
DataTableInterface
refresh in interface DataTableInterface
public java.lang.String[] getColumnInfoNames()
throws com.sas.table.TableException
getColumnInfoNames in interface com.sas.table.StaticColumnInfoInterfacecom.sas.table.TableExceptionpublic void _commitRow()
RemoteDataSetInterface
_commitRow in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceDataTableInterface.commitRow()public int _close()
RemoteDataSetInterface
_close in interface com.sas.sasserver.dataset.RemoteDataSetInterfaceDataTableInterface.close()public boolean isReadOnly()
DataTableInterface
isReadOnly in interface DataTableInterfaceDataTableInterface.isReadOnly()public java.lang.String getDataSet()
DataSetInterface
getDataSet in interface com.sas.sasserver.dataset.DataSetInterfaceDataSetInterface.setDataSet(java.lang.String)
public void setFormattedCells(int p1,
int p2,
int p3,
int p4,
java.lang.String[][] p5)
throws com.sas.table.TableException
FormattedDataInterfacenew Object[rowCount][colCount], with
values[0][0] containing the value of the cell at
(startRowIndex, startColumnIndex).
setFormattedCells in interface FormattedDataInterfacep1 - A one-based index that identifies the start of the row range.p2 - A one-based index that identifies the start of the column range.p3 - The number of rows in the row range.p4 - The number of columns in the column range.p5 - The new formatted values for each cell in the block.
TableException - Thrown if the query can not be satisfied (e.g. i/o-failure).FormattedDataInterface.setFormattedCell(int, int, java.lang.String)public boolean isRowsExtendable()
isRowsExtendable in interface RowTemplateTableInterfaceisRowsExtendable in class SimpleTableRowTemplateTableInterface.isRowsExtendable()public java.lang.String getRootText()
DataSetInterface
getRootText in interface com.sas.sasserver.dataset.DataSetInterfaceDataSetInterface.setRootText(java.lang.String)public void setWhere(java.lang.String request)
DataTableInterface
setWhere in interface DataTableInterfacerequest - The where clause.DataTableInterface.getWhere()public void setQuery(java.lang.String request)
protected void initializeAllData()
clearAllData()protected void clearAllData()
initializeAllData()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||