Package adams.db
Class SimpleResultSet
- java.lang.Object
-
- adams.db.SimpleResultSet
-
public class SimpleResultSet extends Object
Simplified resultset that will close itself once you get to the end- Version:
- $Revision$
- Author:
- dale
-
-
Constructor Summary
Constructors Constructor Description SimpleResultSet(ResultSet rs)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Manually close resulsetbooleangetBoolean(String columnName)get booleandoublegetDouble(String columnName)get doublefloatgetFloat(String columnName)get floatintgetInt(String columnName)Get intlonggetLong(String columnName)get longStringgetString(String columnName)get StringTimestampgetTimestamp(String columnName)get timestampbooleannext()Move to next record.
-
-
-
Constructor Detail
-
SimpleResultSet
public SimpleResultSet(ResultSet rs)
Constructor- Parameters:
rs- Resultset to use
-
-
Method Detail
-
next
public boolean next() throws SQLExceptionMove to next record. Autoclose- Returns:
- record available?
- Throws:
SQLException
-
close
public void close() throws SQLExceptionManually close resulset- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(String columnName) throws SQLException
get timestamp- Parameters:
columnName-- Returns:
- timestamp
- Throws:
SQLException
-
getLong
public long getLong(String columnName) throws SQLException
get long- Parameters:
columnName-- Returns:
- long
- Throws:
SQLException
-
getInt
public int getInt(String columnName) throws SQLException
Get int- Parameters:
columnName-- Returns:
- int
- Throws:
SQLException
-
getFloat
public float getFloat(String columnName) throws SQLException
get float- Parameters:
columnName-- Returns:
- float
- Throws:
SQLException
-
getDouble
public double getDouble(String columnName) throws SQLException
get double- Parameters:
columnName-- Returns:
- double
- Throws:
SQLException
-
getBoolean
public boolean getBoolean(String columnName) throws SQLException
get boolean- Parameters:
columnName-- Returns:
- boolean
- Throws:
SQLException
-
getString
public String getString(String columnName) throws SQLException
get String- Parameters:
columnName-- Returns:
- string
- Throws:
SQLException
-
-