public class ResultSetHelper extends Object
| Constructor and Description |
|---|
ResultSetHelper(ResultSet rs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(String name)
Returns an non null boolean from the result set.
|
Date |
getDate(String name)
Returns a partial date (year, month and day) from the database.
|
Date |
getDateTime(String name)
Returns a full date (from seconds to year) from the database.
|
double |
getDouble(String name)
Returns a non null double from the result set.
|
Double |
getDoubleNull(String name)
Returns a possible null double from the result set.
|
float |
getFloat(String name)
Returns a non null float from the result set.
|
Float |
getFloatNull(String name)
Returns a possible null float from the result set.
|
int |
getInt(String name)
Returns a non null int from the result set.
|
Integer |
getInteger(String name)
Returns a possibly null integer from the result set.
|
ResultSet |
GetResultSet() |
String |
getString(String name)
Returns a string from the result set (non null).
|
Date |
getTime(String name)
Returns a partial date (hour, minute, second) from the database.
|
public ResultSetHelper(ResultSet rs)
public ResultSet GetResultSet()
public boolean getBoolean(String name) throws SQLException
name - SQLExceptionpublic Date getDateTime(String name) throws SQLException
name - SQLExceptionpublic Date getDate(String name) throws SQLException
name - SQLExceptionpublic double getDouble(String name) throws SQLException
name - SQLExceptionpublic Double getDoubleNull(String name) throws SQLException
name - SQLExceptionpublic float getFloat(String name) throws SQLException
name - SQLExceptionpublic Float getFloatNull(String name) throws SQLException
name - SQLExceptionpublic int getInt(String name) throws SQLException
name - SQLExceptionpublic Integer getInteger(String name) throws SQLException
name - SQLExceptionpublic String getString(String name) throws SQLException
Note: null string in a database doesn't make much sense. For convenience, null is never returned ("" is used instead).
name - SQLExceptionpublic Date getTime(String name) throws SQLException
name - SQLExceptionCopyright © 2007-2021 Universidade Federal do ParanĂ¡ - UFPR. All Rights Reserved.