@ SuppressWarnings ( "unchecked" ) public static List < String > firstStringRow ( PreparedStatement stmt ) throws SQLException { return ( List < String > ) firstRow ( stmt , String . class ) ; }
Execute the query get the String values in the first row of the result set and close the statement .