|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.util.servlet.SQLResultSetMetaData
An SQLResultSetMetaData object can be used to find out information about the columns of an SQLResultSetRowData object.
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 Summary | |
SQLResultSetMetaData()
Constructs a default SQLResultSetMetaData object. |
|
SQLResultSetMetaData(java.sql.ResultSetMetaData metadata)
Constructs an SQLResultSetMetaData object with the specified metadata. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener. |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds the VetoableChangeListener. |
int |
getColumnCount()
Returns the number of columns in the result set. |
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 |
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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SQLResultSetMetaData()
public SQLResultSetMetaData(java.sql.ResultSetMetaData metadata) throws RowDataException
metadata
- The metadata.Method Detail |
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 int getColumnCount() throws RowDataException
public int getColumnDisplaySize(int columnIndex) throws RowDataException
columnIndex
- The column index (0-based).public java.lang.String getColumnLabel(int columnIndex) throws RowDataException
columnIndex
- The column index (0-based).public java.lang.String getColumnName(int columnIndex) throws RowDataException
columnIndex
- The column index (0-based).public int getColumnType(int columnIndex) throws RowDataException
columnIndex
- The column index (0-based).public java.lang.String getColumnTypeName(int columnIndex) throws RowDataException
columnIndex
- The column index (0-based).public java.sql.ResultSetMetaData getMetaData()
public int getPrecision(int columnIndex) throws RowDataException
columnIndex
- The column index (0-based).public int getScale(int columnIndex) throws RowDataException
columnIndex
- The column index (0-based).public boolean isNumericData(int columnIndex) throws RowDataException
columnIndex
- The column index (0-based).public boolean isTextData(int columnIndex) throws RowDataException
columnIndex
- The column index (0-based).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.public void setColumnLabel(int columnIndex, java.lang.String label) throws RowDataException
columnIndex
- The column index (0-based).label
- The label.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |