Class jet.datasource.JRResultSet

JRResultSet
public JRResultSet()
- 01 Constructs an uninitialized JRResultSet.

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.

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.

close
public abstract void close() throws JRResultSetException
- 04 Close the JResultSet and release the resources.
- Throws: JRResultSetException
- when a data source error occurs.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.