2.17.2: 2011-06-17

net.sf.basedb.core
Class DynamicResultIterator.SqlResultImpl

java.lang.Object
  extended by net.sf.basedb.core.DynamicResultIterator.SqlResultImpl
All Implemented Interfaces:
SqlResult
Enclosing class:
DynamicResultIterator

private class DynamicResultIterator.SqlResultImpl
extends Object
implements SqlResult

Implements the SqlResult interface.


Constructor Summary
private DynamicResultIterator.SqlResultImpl()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicResultIterator.SqlResultImpl

private DynamicResultIterator.SqlResultImpl()
Method Detail

getShort

public short getShort(int index)
               throws SQLException
Description copied from interface: SqlResult
Get the value of the specified column as a short.

Specified by:
getShort in interface SqlResult
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

public int getInt(int index)
           throws SQLException
Description copied from interface: SqlResult
Get the value of the specified column as an integer.

Specified by:
getInt in interface SqlResult
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

public float getFloat(int index)
               throws SQLException
Description copied from interface: SqlResult
Get the value of the specified column as a float.

Specified by:
getFloat in interface SqlResult
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

public String getString(int index)
                 throws SQLException
Description copied from interface: SqlResult
Get the value of the specified column as a string.

Specified by:
getString in interface SqlResult
Parameters:
index - The index of the column, starting at 1
Returns:
The string value
Throws:
SQLException - If an error occurs

getObject

public Object getObject(int index)
                 throws SQLException
Description copied from interface: SqlResult
Get the value of the specified column as an object.

Specified by:
getObject in interface SqlResult
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