2.17.2: 2011-06-17

net.sf.basedb.core.query
Interface SqlResult

All Known Implementing Classes:
DynamicResultIterator.SqlResultImpl, PlotServlet.CFSqlResult

public interface SqlResult

This interface represents a single row in the results of a SqlQuery.

Version:
2.0
Author:
Nicklas
Last modified
$Date: 2009-06-23 11:28:29 +0200 (Tue, 23 Jun 2009) $

Method Summary
 float getFloat(int index)
          Get the value of the specified column as a float.
 int getInt(int index)
          Get the value of the specified column as an integer.
 Object getObject(int index)
          Get the value of the specified column as an object.
 short getShort(int index)
          Get the value of the specified column as a short.
 String getString(int index)
          Get the value of the specified column as a string.
 

Method Detail

getShort

short getShort(int index)
               throws SQLException
Get the value of the specified column as a short.

Parameters:
index - The index of the column, starting at 1
Returns:
The value, or 0 if the database contains null
Throws:
SQLException - If an error occurs

getInt

int getInt(int index)
           throws SQLException
Get the value of the specified column as an integer.

Parameters:
index - The index of the column, starting at 1
Returns:
The value, or 0 if the database contains null
Throws:
SQLException - If an error occurs

getFloat

float getFloat(int index)
               throws SQLException
Get the value of the specified column as a float.

Parameters:
index - The index of the column, starting at 1
Returns:
The value, or 0 if the database contains null
Throws:
SQLException - If an error occurs

getString

String getString(int index)
                 throws SQLException
Get the value of the specified column as a string.

Parameters:
index - The index of the column, starting at 1
Returns:
The string value
Throws:
SQLException - If an error occurs

getObject

Object getObject(int index)
                 throws SQLException
Get the value of the specified column as an object.

Parameters:
index - The index of the column, starting at 1
Returns:
The string value
Throws:
SQLException - If an error occurs

2.17.2: 2011-06-17