DEVFYI - Developer Resource - FYI

How can I create a custom RowSetMetaData object from scratch?

JDBC Interview Questions and Answers


(Continued from previous question...)

How can I create a custom RowSetMetaData object from scratch?

One unfortunate aspect of RowSetMetaData for custom versions is that it is an interface. This means that implementations almost have to be proprietary. The JDBC RowSet package is the most commonly available and offers the sun.jdbc.rowset.RowSetMetaDataImpl class. After instantiation, any of the RowSetMetaData setter methods may be used. The bare minimum needed for a RowSet to function is to set the Column Count for a row and the Column Types for each column in the row. For a working code example that includes a custom RowSetMetaData,

(Continued on next question...)

Other Interview Questions