Making batch queries in JDBC applications
The IBM® Data Server Driver for JDBC and SQLJ provides
a IBM Data Server Driver for JDBC and SQLJ-only DB2PreparedStatement interface
that lets you perform batch queries on a homogeneous batch.
Learning about a ResultSet using ResultSetMetaData methods
You cannot always know the number of columns and data types
of the columns in a table or result set. This is true especially when
you are retrieving data from a remote data source.