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 © 2005–2025. All rights reserved.