public class SQLResultSetMetaData extends java.lang.Object implements RowMetaData, java.io.Serializable
Serializing the object results in the metadata being cached with the object. After deserialization the cached data is used until the metadata is reset using the setMetaData method.
SQLResultSetMetaData objects generate the following events:
| Constructor and Description | 
|---|
| SQLResultSetMetaData()Constructs a default SQLResultSetMetaData object. | 
| SQLResultSetMetaData(java.sql.ResultSetMetaData metadata)Constructs an SQLResultSetMetaData object with the specified metadata. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addPropertyChangeListener(java.beans.PropertyChangeListener listener)Adds a PropertyChangeListener. | 
| void | addVetoableChangeListener(java.beans.VetoableChangeListener listener)Adds the VetoableChangeListener. | 
| java.lang.String | getColumnAlignment(int columnIndex)Returns the alignment of the column specified by columnIndex. | 
| int | getColumnCount()Returns the number of columns in the result set. | 
| java.lang.String | getColumnDirection(int columnIndex)Returns the direction of the column specified by columnIndex. | 
| int | getColumnDisplaySize(int columnIndex)Returns the display size in characters of the column specified by columnIndex. | 
| java.lang.String | getColumnLabel(int columnIndex)Returns the label of the column specified by columnIndex. | 
| java.lang.String | getColumnName(int columnIndex)Returns the name of the column specified by columnIndex. | 
| int | getColumnType(int columnIndex)Returns the SQL data type of the column specified by columnIndex. | 
| java.lang.String | getColumnTypeName(int columnIndex)Returns the data type name of the column specified by columnIndex. | 
| java.sql.ResultSetMetaData | getMetaData()Returns the result set metadata. | 
| int | getPrecision(int columnIndex)Returns the number of decimal digits for the column specified by columnIndex. | 
| int | getScale(int columnIndex)Returns the number of digits to the right of the decimal point for the column
     specified by columnIndex. | 
| boolean | isNumericData(int columnIndex)Indicates if the column specified by columnIndex contains numeric data. | 
| boolean | isTextData(int columnIndex)Indicates if the column specified by columnIndex contains text data. | 
| void | removePropertyChangeListener(java.beans.PropertyChangeListener listener)Removes the PropertyChangeListener from the internal list. | 
| void | removeVetoableChangeListener(java.beans.VetoableChangeListener listener)Removes the VetoableChangeListener from the internal list. | 
| void | setColumnAlignment(int columnIndex,
                  java.lang.String alignment)Sets the specified horizontal alignment for the column data specified by columnIndex. | 
| void | setColumnDirection(int columnIndex,
                  java.lang.String dir)Sets the specified direction for the column data specified by columnIndex. | 
| void | setColumnLabel(int columnIndex,
              java.lang.String label)Sets the specified label at the column specified by columnIndex. | 
| void | setMetaData(java.sql.ResultSetMetaData metadata)Sets the result set metadata. | 
public SQLResultSetMetaData()
public SQLResultSetMetaData(java.sql.ResultSetMetaData metadata)
                     throws RowDataException
metadata - The metadata.RowDataException - If a row data error occurs.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The PropertyChangeListener.removePropertyChangeListener(java.beans.PropertyChangeListener)public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener - The VetoableChangeListener.removeVetoableChangeListener(java.beans.VetoableChangeListener)public java.lang.String getColumnAlignment(int columnIndex)
                                    throws RowDataException
getColumnAlignment in interface RowMetaDatacolumnIndex - The column index (0-based).RowDataException - If a row data error occurs.HTMLConstantspublic java.lang.String getColumnDirection(int columnIndex)
                                    throws RowDataException
getColumnDirection in interface RowMetaDatacolumnIndex - The column index (0-based).RowDataException - If a row data error occurs.HTMLConstantspublic int getColumnCount()
                   throws RowDataException
getColumnCount in interface RowMetaDataRowDataException - If a row data error occurs.public int getColumnDisplaySize(int columnIndex)
                         throws RowDataException
getColumnDisplaySize in interface RowMetaDatacolumnIndex - The column index (0-based).RowDataException - If a row data error occurs.public java.lang.String getColumnLabel(int columnIndex)
                                throws RowDataException
getColumnLabel in interface RowMetaDatacolumnIndex - The column index (0-based).RowDataException - If a row data error occurs.public java.lang.String getColumnName(int columnIndex)
                               throws RowDataException
getColumnName in interface RowMetaDatacolumnIndex - The column index (0-based).RowDataException - If a row data error occurs.public int getColumnType(int columnIndex)
                  throws RowDataException
getColumnType in interface RowMetaDatacolumnIndex - The column index (0-based).RowDataException - If a row data error occurs.public java.lang.String getColumnTypeName(int columnIndex)
                                   throws RowDataException
getColumnTypeName in interface RowMetaDatacolumnIndex - The column index (0-based).RowDataException - If a row data error occurs.public java.sql.ResultSetMetaData getMetaData()
public int getPrecision(int columnIndex)
                 throws RowDataException
getPrecision in interface RowMetaDatacolumnIndex - The column index (0-based).RowDataException - If a row data error occurs.public int getScale(int columnIndex)
             throws RowDataException
getScale in interface RowMetaDatacolumnIndex - The column index (0-based).RowDataException - If a row data error occurs.public boolean isNumericData(int columnIndex)
                      throws RowDataException
isNumericData in interface RowMetaDatacolumnIndex - The column index (0-based).RowDataException - If a row data error occurs.public boolean isTextData(int columnIndex)
                   throws RowDataException
isTextData in interface RowMetaDatacolumnIndex - The column index (0-based).RowDataException - If a row data error occurs.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The PropertyChangeListener.addPropertyChangeListener(java.beans.PropertyChangeListener)public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener - The VetoableChangeListener.addVetoableChangeListener(java.beans.VetoableChangeListener)public void setMetaData(java.sql.ResultSetMetaData metadata)
                 throws java.beans.PropertyVetoException,
                        RowDataException
metadata - The metadata.java.beans.PropertyVetoException - If a change is vetoed.RowDataException - If a row data error occurs.public void setColumnAlignment(int columnIndex,
                      java.lang.String alignment)
                        throws RowDataException
setColumnAlignment in interface RowMetaDatacolumnIndex - The column index (0-based).alignment - The horizontal column alignment.  One of the following constants
  defined in HTMLConstants:  LEFT, CENTER, RIGHT, or JUSTIFY.RowDataException - If a row data error occurs.HTMLConstantspublic void setColumnDirection(int columnIndex,
                      java.lang.String dir)
                        throws RowDataException
setColumnDirection in interface RowMetaDatacolumnIndex - The column index (0-based).dir - The column direction.RowDataException - If a row data error occurs.HTMLConstantspublic void setColumnLabel(int columnIndex,
                  java.lang.String label)
                    throws RowDataException
setColumnLabel in interface RowMetaDatacolumnIndex - The column index (0-based).label - The label.RowDataException - If a row data error occurs.