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 void
close()
Manually close resulsetboolean
getBoolean(String columnName)
get booleandouble
getDouble(String columnName)
get doublefloat
getFloat(String columnName)
get floatint
getInt(String columnName)
Get intlong
getLong(String columnName)
get longString
getString(String columnName)
get StringTimestamp
getTimestamp(String columnName)
get timestampboolean
next()
Move to next record.
-
-
-
Constructor Detail
-
SimpleResultSet
public SimpleResultSet(ResultSet rs)
Constructor- Parameters:
rs
- Resultset to use
-
-
Method Detail
-
next
public boolean next() throws SQLException
Move to next record. Autoclose- Returns:
- record available?
- Throws:
SQLException
-
close
public void close() throws SQLException
Manually 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
-
-