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
- SQLException
public Date getDateTime(String name) throws SQLException
name
- SQLException
public Date getDate(String name) throws SQLException
name
- SQLException
public double getDouble(String name) throws SQLException
name
- SQLException
public Double getDoubleNull(String name) throws SQLException
name
- SQLException
public float getFloat(String name) throws SQLException
name
- SQLException
public Float getFloatNull(String name) throws SQLException
name
- SQLException
public int getInt(String name) throws SQLException
name
- SQLException
public Integer getInteger(String name) throws SQLException
name
- SQLException
public 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
- SQLException
public Date getTime(String name) throws SQLException
name
- SQLException
Copyright © 2007-2021 Universidade Federal do ParanĂ¡ - UFPR. All Rights Reserved.