Package net.sf.basedb.core
Class DynamicResultIterator.SqlResultImpl
java.lang.Object
net.sf.basedb.core.DynamicResultIterator.SqlResultImpl
- All Implemented Interfaces:
SqlResult
- Enclosing class:
- DynamicResultIterator
Implements the SqlResult interface.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
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.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.getString
(int index) Get the value of the specified column as a string.
-
Constructor Details
-
SqlResultImpl
private SqlResultImpl()
-
-
Method Details
-
getShort
Description copied from interface:SqlResult
Get the value of the specified column as a short.- Specified by:
getShort
in interfaceSqlResult
- 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
Description copied from interface:SqlResult
Get the value of the specified column as an integer.- Specified by:
getInt
in interfaceSqlResult
- 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
Description copied from interface:SqlResult
Get the value of the specified column as a float.- Specified by:
getFloat
in interfaceSqlResult
- 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
Description copied from interface:SqlResult
Get the value of the specified column as a string.- Specified by:
getString
in interfaceSqlResult
- Parameters:
index
- The index of the column, starting at 1- Returns:
- The string value
- Throws:
SQLException
- If an error occurs
-
getObject
Description copied from interface:SqlResult
Get the value of the specified column as an object.- Specified by:
getObject
in interfaceSqlResult
- Parameters:
index
- The index of the column, starting at 1- Returns:
- The string value
- Throws:
SQLException
- If an error occurs
-