public interface ResultSetHelper
Modifier and Type | Method and Description |
---|---|
String[] |
getColumnNames(ResultSet rs)
Returns the column Names from the ResultSet.
|
String[] |
getColumnValues(ResultSet rs)
Returns the column values from the result set.
|
String[] |
getColumnValues(ResultSet rs,
boolean trim)
Returns the column values from the result set with the values trimmed if desired.
|
String[] |
getColumnValues(ResultSet rs,
boolean trim,
String dateFormatString,
String timeFormatString)
Returns the column values from the result set with the values trimmed if desired.
|
String[] getColumnNames(ResultSet rs) throws SQLException
rs
- - ResultSetSQLException
- - thrown by the ResultSet.String[] getColumnValues(ResultSet rs) throws SQLException, IOException
rs
- - the ResultSet containing the values.SQLException
- - thrown by the ResultSet.IOException
- - thrown by the ResultSet.String[] getColumnValues(ResultSet rs, boolean trim) throws SQLException, IOException
rs
- - the ResultSet containing the values.trim
- - values should have white spaces trimmed.SQLException
- - thrown by the ResultSet.IOException
- - thrown by the ResultSet.String[] getColumnValues(ResultSet rs, boolean trim, String dateFormatString, String timeFormatString) throws SQLException, IOException
rs
- - the ResultSet containing the values.trim
- - values should have white spaces trimmed.dateFormatString
- - format String for dates.timeFormatString
- - format String for timestamps.SQLException
- - thrown by the ResultSet.IOException
- - thrown by the ResultSet.Copyright © 2015. All rights reserved.