All Packages Class Hierarchy This Package Previous Next Index
Interface com.ibm.as400.util.servlet.RowMetaData
- public interface RowMetaData
A RowMetaData object can be used to find out information about the columns
of a RowData object.
-
getColumnCount()
- Returns the number of columns.
-
getColumnDisplaySize(int)
- Returns the display size in characters of the column specified by columnIndex.
-
getColumnLabel(int)
- Returns the label of the column specified by columnIndex.
-
getColumnName(int)
- Returns the name of the column specified by columnIndex.
-
getColumnType(int)
- Returns the data type of the column specified by columnIndex.
-
getColumnTypeName(int)
- Returns the data type name of the column specified by columnIndex.
-
getPrecision(int)
- Returns the precision of the column specified by columnIndex.
-
getScale(int)
- Returns the scale of the column specified by columnIndex.
-
isNumericData(int)
- Indicates if the column specified by columnIndex contains numeric data.
-
isTextData(int)
- Indicates if the column specified by columnIndex contains text data.
-
setColumnLabel(int, String)
- Sets the specified label for the column specified by columnIndex.
getColumnCount
public abstract int getColumnCount() throws RowDataException
- Returns the number of columns.
- Returns:
- The number of columns.
- Throws: RowDataException
- If a row data error occurred.
getColumnDisplaySize
public abstract int getColumnDisplaySize(int columnIndex) throws RowDataException
- Returns the display size in characters of the column specified by columnIndex.
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- The display size.
- Throws: RowDataException
- If a row data error occurred.
getColumnLabel
public abstract String getColumnLabel(int columnIndex) throws RowDataException
- Returns the label of the column specified by columnIndex.
- Parameters:
- columnIndex - The column index(0-based).
- Returns:
- The label.
- Throws: RowDataException
- If a row data error occurred.
getColumnName
public abstract String getColumnName(int columnIndex) throws RowDataException
- Returns the name of the column specified by columnIndex.
- Parameters:
- columnIndex - The column index(0-based).
- Returns:
- The name.
- Throws: RowDataException
- If a row data error occurred.
getColumnType
public abstract int getColumnType(int columnIndex) throws RowDataException
- Returns the data type of the column specified by columnIndex.
For a list of values, see RowMetaDataType
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- The data type.
- Throws: RowDataException
- If a row data error occurred.
getColumnTypeName
public abstract String getColumnTypeName(int columnIndex) throws RowDataException
- Returns the data type name of the column specified by columnIndex.
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- The data type name.
- Throws: RowDataException
- If a row data error occurred.
getPrecision
public abstract int getPrecision(int columnIndex) throws RowDataException
- Returns the precision of the column specified by columnIndex.
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- The precision (number of decimal digits).
- Throws: RowDataException
- If a row data error occurred.
getScale
public abstract int getScale(int columnIndex) throws RowDataException
- Returns the scale of the column specified by columnIndex.
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- The scale (number of digits to the right of the decimal point).
- Throws: RowDataException
- If a row data error occurred.
isNumericData
public abstract boolean isNumericData(int columnIndex) throws RowDataException
- Indicates if the column specified by columnIndex contains numeric data.
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- true if numeric data; false otherwise.
- Throws: RowDataException
- If a row data error occurred.
isTextData
public abstract boolean isTextData(int columnIndex) throws RowDataException
- Indicates if the column specified by columnIndex contains text data.
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- true if text data; false otherwise.
- Throws: RowDataException
- If a row data error occurred.
setColumnLabel
public abstract void setColumnLabel(int columnIndex,
String label) throws RowDataException
- Sets the specified label for the column specified by columnIndex.
- Parameters:
- columnIndex - The column index (0-based).
- label - The label.
- Throws: RowDataException
- If a row data error occurred.
All Packages Class Hierarchy This Package Previous Next Index