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