class O2GTableColumnCollection
Brief
The class provides access to the list of table columns.
Details
To get an instance of the class, use the
O2GGenericTableResponseReader
.getColumns
method. For example,
O2GTableColumnCollection columns = genericReader.getColumns();
To get access to a particular column, use the get method of the class. For example,
O2GTableColumn column = columns.get(mColumnID);
To get access to every table column, call another implementation of the get method in a loop. For example,
for (int i = 0; i < columns.size(); i++) {
O2GTableColumn column = columns.get(i);
}
Example
Get column identifiers and data types [hide]
private void useGenericReader(O2GGenericTableResponseReader genericReader) { O2GTableColumnCollection columns = genericReader.getColumns(); for (int i = 0; i < columns.size(); i++) { O2GTableColumn column = columns.get(i); System.out.println("Identifier: " + column.getId() + "Data Type: " + column.getType()); } }
The namespace is com.fxcore2
.
Public Methods | |
Gets a column by its index. |
|
Gets a column by its unique identifier. |
|
Gets the number of columns in a table. |