OpenAPI 1.0

com.aquafold.openapi.data
Interface AQColumnStructure

All Superinterfaces:
AQDataRow

public interface AQColumnStructure
extends AQDataRow

Class describes the structure of table data. Note that it implements AQDataRow, such that the column info object can be streamed as another data row whenever the user needs column names in the output.


Method Summary
 AQColumnDescriptor getColumn(int index)
          Get column information.
 int getColumnCount()
          Returns number of columns.
 String getColumnDataType(int index)
          Get column data type, or null if unknown.
 Class<?> getColumnJavaType(int index)
          Get column java type, or null if unknown.
 String getColumnName(int index)
          Get column name.
 String[] getColumnNames()
          To get a list of column names.
 int lookupColumnIndex(String name)
          Returns column index given its name.
 
Methods inherited from interface com.aquafold.openapi.data.AQDataRow
get, getSize, getString, isNull, set
 

Method Detail

getColumn

AQColumnDescriptor getColumn(int index)
Get column information.

Parameters:
index - 0-based column index.

getColumnName

String getColumnName(int index)
Get column name.

Parameters:
index - 0-based column index.

getColumnNames

String[] getColumnNames()
To get a list of column names.

Returns:
An array of strings containing the name of the columns.

getColumnDataType

String getColumnDataType(int index)
Get column data type, or null if unknown.

Parameters:
index - 0-based column index.

getColumnJavaType

Class<?> getColumnJavaType(int index)
Get column java type, or null if unknown.

Parameters:
index - 0-based column index.

lookupColumnIndex

int lookupColumnIndex(String name)
Returns column index given its name.

Parameters:
name - Column name.

getColumnCount

int getColumnCount()
Returns number of columns.


OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.