List of usage examples for javax.sql.rowset JdbcRowSet getMetaData
ResultSetMetaData getMetaData() throws SQLException;
ResultSet
object's columns. From source file:com.kumarvv.setl.utils.RowSetUtil.java
/** * get meta columns/*from w w w.jav a 2 s . c o m*/ * * @param jrs * @return */ public Map<String, Integer> getMetaColumns(JdbcRowSet jrs) { if (jrs == null) { return new HashMap<>(); } try { return getMetaColumns(jrs.getMetaData()); } catch (SQLException sqle) { Logger.error("error getting metaColumns:", sqle.getMessage()); Logger.trace(sqle); return new HashMap<>(); } }