Hi,
My question is about retrieving resultsetmetadata from the resultlset.
I've seen many examples of using resultsetmetadata and they all of the form
...
ResultSet rs = statement.executeQuery("select * from Foo_Table");
ResultSetMetaData metadata = rs.getMetaData();
// process metadata, usually match column names with bean names.
...
My question is: Do I need to do it all the time I run the same query?
In other words, can I save the data I need from the ResultSetMetaData and use it later for the same query? I am concern only about column count and column names.
Am I guaranteed to have the same column count, order and types for the same query?
Thanks.