Here you can find the source of getMetaData(ResultSet rs)
public static ResultSetMetaData getMetaData(ResultSet rs) throws SQLException
//package com.java2s; //License from project: Open Source License import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; public class Main { public static ResultSetMetaData getMetaData(ResultSet rs) throws SQLException { ResultSetMetaData rsmd = rs.getMetaData(); return rsmd; }//w w w. j av a 2s . c o m }