Class jet.datasource.JRResultSet

 o JRResultSet


 public JRResultSet()

01 Constructs an uninitialized JRResultSet.

 o initialize


 public abstract void initialize(JRColDesc colDescs[],

                                 String args[]) throws JRResultSetException

02 Initialize this JRResultSet.
Parameters:
colDescs - the descriptions of columns in the result set.
args - the arguments of this class.
Throws: JRResultSetException
when a data source error occurs.

 o next


 public abstract boolean next() throws JRResultSetException

03 Fetches a new row of data and returns true if it is OK.
Returns:
s false if no more data.
Throws: JRResultSetException
when a data source error occurs.

 o close


 public abstract void close() throws JRResultSetException

04 Close the JResultSet and release the resources.
Throws: JRResultSetException
when a data source error occurs.

 o wasNull


 public abstract boolean wasNull() throws JRResultSetException

05 To judge whether the last column read had NULL value.
Returns:
true if last column read was SQL NULL.
Throws: JRResultSetException
when a data source error occurs.

 o getString


 public abstract String getString(int columnIndex) throws JRResultSetException

06 Get the value of a column in the current row as a Java String.
Parameters:
columnIndex - the index number of the column.
Returns:
the column value as Java String.
Throws: JRResultSetException
if a data source error occurs.

 o getBoolean


 public abstract boolean getBoolean(int columnIndex) throws JRResultSetException

07 Get the value of a column in the current row as a Java boolean.
Parameters:
columnIndex - the index number of the column.
Returns:
the column value, if the value is NULL, return false.
Throws: JRResultSetException
if a data source error occurs.

 o getByte


 public abstract byte getByte(int columnIndex) throws JRResultSetException

08 Get the value of a column in the current row as a Java byte.
Parameters:
columnIndex - the index number of the column.
Returns:
the column value, if the value is NULL,return 0.
Throws: JRResultSetException
if a data source error occurs.

 o getShort


 public abstract short getShort(int columnIndex) throws JRResultSetException

09 Get the value of a column in the current row as a Java short.
Parameters:
columnIndex - the index number of the column.
Returns:
the column value, if the value is NULL,return 0.
Throws: JRResultSetException
if a data source error occurs.

 o getInt


 public abstract int getInt(int columnIndex) throws JRResultSetException

10 Get the value of a column in the current row as a Java int.
Parameters:
columnIndex - the index number of the column.
Returns:
the column value, if the value is NULL,return 0.
Throws: JRResultSetException
if a data source error occurs.

 o getLong


 public abstract long getLong(int columnIndex) throws JRResultSetException

11 Get the value of a column in the current row as a Java long
Parameters:
columnIndex - the index number of the column.
Returns:
the column value, if the value is NULL,return 0.
Throws: JRResultSetException
if a data source error occurs.

 o getFloat


 public abstract float getFloat(int columnIndex) throws JRResultSetException

12 Get the value of a column in the current row as a Java float.
Parameters:
columnIndex - the index number of the column.
Returns:
the column value, if the value is NULL,return 0.
Throws: JRResultSetException
if a data source error occurs.

 o getDouble


 public abstract double getDouble(int columnIndex) throws JRResultSetException

13 Get the value of a column in the current row as a Java double.
Parameters:
columnIndex - the index number of the column.
Returns:
the column value, if the value is NULL,return 0.
Throws: JRResultSetException
if a data source error occurs.

 o getBigDecimal


 public abstract BigDecimal getBigDecimal(int columnIndex,

                                          int scale) throws JRResultSetException

14 Get the value of a column in the current row as a java.lang.BigDecimal object.
Parameters:
columnIndex - the index number of the column.
scale - the number of digits to the right of the decimal.
Returns:
the column value, if the value is NULL,return null.
Throws: JRResultSetException
if a data source error occurs.

 o getDate


 public abstract Date getDate(int columnIndex) throws JRResultSetException

15 Get the value of a column in the current row as a java.sql.Date object.
Parameters:
columnIndex - the index number of the column.
Returns:
the column value, if the value is NULL,return null.
Throws: JRResultSetException
if a data source error occurs.

 o getTime


 public abstract Time getTime(int columnIndex) throws JRResultSetException

16 Get the value of a column in the current row as a java.sql.Time object.
Parameters:
columnIndex - the index number of the column.
Returns:
the column value, if the value is NULL,return null.
Throws: JRResultSetException
if a data source error occurs.

 o getTimestamp


 public abstract Timestamp getTimestamp(int columnIndex) throws JRResultSetException

17 Get the value of a column in the current row as a java.sql.Timestamp object.
Parameters:
columnIndex - the index number of the column.
Returns:
the column value, if the value is NULL,return null.
Throws: JRResultSetException
if a data source error occurs.

 o getBinaryStream


 public abstract InputStream getBinaryStream(int columnIndex) throws JRResultSetException

18 Get the value of a column in the current row as a stream of uninterpreted bytes, then this column value can be read in chunks from the this stream.
Parameters:
columnIndex - the index number of the column.
Returns:
the column value, if the value is NULL,return null.
Throws: JRResultSetException
if a data source error occurs.