Class PlotServlet.CFSqlResult
- java.lang.Object
-
- net.sf.basedb.clients.web.servlet.PlotServlet.CFSqlResult
-
- All Implemented Interfaces:
SqlResult
- Enclosing class:
- PlotServlet
private static class PlotServlet.CFSqlResult extends Object implements SqlResult
A single result row that is combined from the parent and child results. 1 --> parent A, 2 --> parent M, 3 --> parent M - child M
-
-
Constructor Summary
Constructors Constructor Description CFSqlResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.(package private) void
setResult(SqlResult parent, SqlResult child)
-
-
-
Method Detail
-
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 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
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 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
-
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 interfaceSqlResult
- Parameters:
index
- The index of the column, starting at 1- Returns:
- The string value
- Throws:
SQLException
- If an error occurs
-
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 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
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 interfaceSqlResult
- Parameters:
index
- The index of the column, starting at 1- Returns:
- The string value
- Throws:
SQLException
- If an error occurs
-
-