|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.businessobjects.customds.common.ColumnsInfo
public class ColumnsInfo
The ColumnsInfo class contains all the ColumnSpec that form the objects (columns) of the data provider.
This class allows you to add ColumnSpec with the same column name.
| Constructor Summary | |
|---|---|
ColumnsInfo()
Class Constructor |
|
| Method Summary | |
|---|---|
void |
addColumn(ColumnSpec columnSpec)
Adds the ColumnSpec to the ColumnsInfo object. |
void |
addColumns(java.util.Collection columnSpecs)
Adds the collection of ColumnSpec(s) to the ColumnsInfo object. |
void |
clear()
Clears all the ColumnSpec(s) from the ColumnsInfo object. |
java.util.Collection |
getColumnsInfo()
Internal Use Only |
ColumnSpec |
getColumnSpec(int index)
Returns the ColumnSpec object at the specified index in the ColumnsInfo object. |
ColumnSpec[] |
getColumnSpec(java.lang.String columnName)
Returns an array of ColumnSpec objects with the specified name. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnsInfo()
| Method Detail |
|---|
public void addColumn(ColumnSpec columnSpec)
throws DataSourceException
ColumnSpec to the ColumnsInfo object.
The plug-in calls this method while building objects that form a part of the data provider; that is, during
CustomDataSource.getColumnsInfo(java.util.Map) method call.
columnSpec - Contains the details of object (column) to be included in the data provider.
DataSourceException - if the ColumnSpec object is null.ColumnSpec,
DataSourceException
public void addColumns(java.util.Collection columnSpecs)
throws DataSourceException
ColumnSpec(s) to the ColumnsInfo object.
The plug-in calls this method while building objects that form part of the data provider; that is, during
CustomDataSource.getColumnsInfo(java.util.Map) method call.
columnSpecs - Contains the collection of ColumnSpec objects.
DataSourceException - if the Collection object is null, if the collection contains object other than ColumnSpec,
or if the ColumnSpec object in the collection is null.ColumnSpec,
DataSourceExceptionpublic void clear()
ColumnSpec(s) from the ColumnsInfo object.
public ColumnSpec getColumnSpec(int index)
ColumnSpec object at the specified index in the ColumnsInfo object.
index - The index of the element to return.
ColumnSpec object.
ArrayIndexOutOfBoundsException - if the index is more than or equal to the size of the collection, or less than 0.public ColumnSpec[] getColumnSpec(java.lang.String columnName)
ColumnSpec objects with the specified name.
The comparison between ColumnSpec column name and the specified column name is case sensitive.
columnName - The column name
ColumnSpec objects.public java.util.Collection getColumnsInfo()
Internal Use Only
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||