All Packages    This Package  Previous  Next  

Class sqlj.runtime.profile.ref.RTResultSetJDBC

java.lang.Object
   |
   +----sqlj.runtime.profile.ref.RTResultSetJDBC

public class RTResultSetJDBC
extends Object
implements RTResultSet
This class implements the RTResultSet interface using a JDBC ResultSet.


Variable Index

 o rs
The underlying JDBC result set with which this class is implemented

Constructor Index

 o RTResultSetJDBC(ResultSet)
Creates a new RTResultSet that uses the passed ResultSet to implement its methods.

Method Index

 o close()
Calls the close method on the underlying result set.
 o finalize()
finalizes the super object and calls close if this iterator has not already been closed.
 o findColumn(String)
Returns the result of calling the findColumn method on the underlying result set.
 o getAsciiStreamWrapper(int)
Fetches an InputStream using the getAsciiStream method of the underlying result set.
 o getBigDecimal(int)
Fetches a BigDecimal from the underlying result set using getObject.
 o getBinaryStreamWrapper(int)
Fetches an InputStream using the getBinaryStream method of the underlying result set.
 o getBooleanNoNull(int)
Fetches the result using the getBoolean method of the underlying result set.
 o getBooleanWrapper(int)
Fetches a primitive type using the getBoolean method of the underlying result set.
 o getByteNoNull(int)
Fetches the result using the getByte method of the underlying result set.
 o getBytes(int)
Returns the result of calling the getBytes method on the underlying result set.
 o getByteWrapper(int)
Fetches a primitive type using the getByte method of the underlying result set.
 o getColumnCount()
Returns the column count using the result set meta data getColumnCount method.
 o getCursorName()
Returns the result of calling the getCursorName method on the underlying result set.
 o getDate(int)
Returns the result of calling the getDate method on the underlying result set.
 o getDoubleNoNull(int)
Fetches the result using the getDouble method of the underlying result set.
 o getDoubleWrapper(int)
Fetches a primitive type using the getDouble method of the underlying result set.
 o getFloatNoNull(int)
Fetches the result using the getFloat method of the underlying result set.
 o getFloatWrapper(int)
Fetches a primitive type using the getFloat method of the underlying result set.
 o getIntNoNull(int)
Fetches the result using the getInt method of the underlying result set.
 o getIntWrapper(int)
Fetches a primitive type using the getInt method of the underlying result set.
 o getJDBCResultSet()
Returns the underlying result set to which all method implementations are deferred.
 o getLongNoNull(int)
Fetches the result using the getLong method of the underlying result set.
 o getLongWrapper(int)
Fetches a primitive type using the getLong method of the underlying result set.
 o getObject(int, Class)
Fetches the object from the underlying result set using getObject.
 o getShortNoNull(int)
Fetches the result using the getShort method of the underlying result set.
 o getShortWrapper(int)
Fetches a primitive type using the getShort method of the underlying result set.
 o getString(int)
Returns the result of calling the getString method on the underlying result set.
 o getTime(int)
Returns the result of calling the getTime method on the underlying result set.
 o getTimestamp(int)
Returns the result of calling the getTimestamp method on the underlying result set.
 o getUnicodeStreamWrapper(int)
Fetches an InputStream using the getUnicodeStream method of the underlying result set.
 o isClosed()
Returns true is close has been called, false otherwise.
 o isValidRow()
Returns true iff the result set if currently positioned on a row.
 o next()
Returns the result of calling the next method on the underlying result set.

Variables

 o rs
 protected ResultSet rs
The underlying JDBC result set with which this class is implemented

Constructors

 o RTResultSetJDBC
 public RTResultSetJDBC(ResultSet rs)
Creates a new RTResultSet that uses the passed ResultSet to implement its methods.

Parameters:
rs - the underlying JDBC result set

Methods

 o getJDBCResultSet
 public ResultSet getJDBCResultSet()
Returns the underlying result set to which all method implementations are deferred.

 o next
 public boolean next() throws SQLException
Returns the result of calling the next method on the underlying result set.

Throws: SQLException
if an error occurs in the wrapped result set
 o getCursorName
 public String getCursorName() throws SQLException
Returns the result of calling the getCursorName method on the underlying result set.

Throws: SQLException
if an error occurs in the wrapped result set
 o findColumn
 public int findColumn(String columnName) throws SQLException
Returns the result of calling the findColumn method on the underlying result set.

Throws: SQLException
if an error occurs in the wrapped result set
 o getString
 public String getString(int columnIndex) throws SQLException
Returns the result of calling the getString method on the underlying result set.

Throws: SQLException
if an error occurs in the wrapped result set
 o getBytes
 public byte[] getBytes(int columnIndex) throws SQLException
Returns the result of calling the getBytes method on the underlying result set.

Throws: SQLException
if an error occurs in the wrapped result set
 o getDate
 public Date getDate(int columnIndex) throws SQLException
Returns the result of calling the getDate method on the underlying result set.

Throws: SQLException
if an error occurs in the wrapped result set
 o getTime
 public Time getTime(int columnIndex) throws SQLException
Returns the result of calling the getTime method on the underlying result set.

Throws: SQLException
if an error occurs in the wrapped result set
 o getTimestamp
 public Timestamp getTimestamp(int columnIndex) throws SQLException
Returns the result of calling the getTimestamp method on the underlying result set.

Throws: SQLException
if an error occurs in the wrapped result set
 o getBooleanNoNull
 public boolean getBooleanNoNull(int columnIndex) throws SQLException
Fetches the result using the getBoolean method of the underlying result set. If a subsequent call to wasNull returns true, a SQLNullException is raised. Otherwise the result is returned.

Throws: SQLNullException
if the column is null
Throws: SQLException
if an error occurs in the underlying result set
 o getByteNoNull
 public byte getByteNoNull(int columnIndex) throws SQLException
Fetches the result using the getByte method of the underlying result set. If a subsequent call to wasNull returns true, a SQLNullException is raised. Otherwise the result is returned.

Throws: SQLNullException
if the column is null
Throws: SQLException
if an error occurs in the underlying result set
 o getShortNoNull
 public short getShortNoNull(int columnIndex) throws SQLException
Fetches the result using the getShort method of the underlying result set. If a subsequent call to wasNull returns true, a SQLNullException is raised. Otherwise the result is returned.

Throws: SQLNullException
if the column is null
Throws: SQLException
if an error occurs in the underlying result set
 o getIntNoNull
 public int getIntNoNull(int columnIndex) throws SQLException
Fetches the result using the getInt method of the underlying result set. If a subsequent call to wasNull returns true, a SQLNullException is raised. Otherwise the result is returned.

Throws: SQLNullException
if the column is null
Throws: SQLException
if an error occurs in the underlying result set
 o getLongNoNull
 public long getLongNoNull(int columnIndex) throws SQLException
Fetches the result using the getLong method of the underlying result set. If a subsequent call to wasNull returns true, a SQLNullException is raised. Otherwise the result is returned.

Throws: SQLNullException
if the column is null
Throws: SQLException
if an error occurs in the underlying result set
 o getFloatNoNull
 public float getFloatNoNull(int columnIndex) throws SQLException
Fetches the result using the getFloat method of the underlying result set. If a subsequent call to wasNull returns true, a SQLNullException is raised. Otherwise the result is returned.

Throws: SQLNullException
if the column is null
Throws: SQLException
if an error occurs in the underlying result set
 o getDoubleNoNull
 public double getDoubleNoNull(int columnIndex) throws SQLException
Fetches the result using the getDouble method of the underlying result set. If a subsequent call to wasNull returns true, a SQLNullException is raised. Otherwise the result is returned.

Throws: SQLNullException
if the column is null
Throws: SQLException
if an error occurs in the underlying result set
 o getBooleanWrapper
 public Boolean getBooleanWrapper(int columnIndex) throws SQLException
Fetches a primitive type using the getBoolean method of the underlying result set. If a subsequent call to wasNull returns true, null is returned. Otherwise the appropriate wrapper object is created and returned using the value of the fetched primitive type.

Throws: SQLException
if an error occurs in the underlying result set
 o getByteWrapper
 public Byte getByteWrapper(int columnIndex) throws SQLException
Fetches a primitive type using the getByte method of the underlying result set. If a subsequent call to wasNull returns true, null is returned. Otherwise the appropriate wrapper object is created and returned using the value of the fetched primitive type.

Throws: SQLException
if an error occurs in the underlying result set
 o getShortWrapper
 public Short getShortWrapper(int columnIndex) throws SQLException
Fetches a primitive type using the getShort method of the underlying result set. If a subsequent call to wasNull returns true, null is returned. Otherwise the appropriate wrapper object is created and returned using the value of the fetched primitive type.

Throws: SQLException
if an error occurs in the underlying result set
 o getIntWrapper
 public Integer getIntWrapper(int columnIndex) throws SQLException
Fetches a primitive type using the getInt method of the underlying result set. If a subsequent call to wasNull returns true, null is returned. Otherwise the appropriate wrapper object is created and returned using the value of the fetched primitive type.

Throws: SQLException
if an error occurs in the underlying result set
 o getLongWrapper
 public Long getLongWrapper(int columnIndex) throws SQLException
Fetches a primitive type using the getLong method of the underlying result set. If a subsequent call to wasNull returns true, null is returned. Otherwise the appropriate wrapper object is created and returned using the value of the fetched primitive type.

Throws: SQLException
if an error occurs in the underlying result set
 o getFloatWrapper
 public Float getFloatWrapper(int columnIndex) throws SQLException
Fetches a primitive type using the getFloat method of the underlying result set. If a subsequent call to wasNull returns true, null is returned. Otherwise the appropriate wrapper object is created and returned using the value of the fetched primitive type.

Throws: SQLException
if an error occurs in the underlying result set
 o getDoubleWrapper
 public Double getDoubleWrapper(int columnIndex) throws SQLException
Fetches a primitive type using the getDouble method of the underlying result set. If a subsequent call to wasNull returns true, null is returned. Otherwise the appropriate wrapper object is created and returned using the value of the fetched primitive type.

Throws: SQLException
if an error occurs in the underlying result set
 o getAsciiStreamWrapper
 public AsciiStream getAsciiStreamWrapper(int columnIndex) throws SQLException
Fetches an InputStream using the getAsciiStream method of the underlying result set. If a subsequent call to wasNull returns true, null is returned. Otherwise an AsciiStream is created and returned that wraps the fetched stream.

Throws: SQLException
if an error occurs in the underlying result set
 o getBinaryStreamWrapper
 public BinaryStream getBinaryStreamWrapper(int columnIndex) throws SQLException
Fetches an InputStream using the getBinaryStream method of the underlying result set. If a subsequent call to wasNull returns true, null is returned. Otherwise a BinaryStream is created and returned that wraps the fetched stream.

Throws: SQLException
if an error occurs in the underlying result set
 o getUnicodeStreamWrapper
 public UnicodeStream getUnicodeStreamWrapper(int columnIndex) throws SQLException
Fetches an InputStream using the getUnicodeStream method of the underlying result set. If a subsequent call to wasNull returns true, null is returned. Otherwise a UnicodeStream is created and returned that wraps the fetched stream.

Throws: SQLException
if an error occurs in the underlying result set
 o getObject
 public Object getObject(int columnIndex,
                         Class objectType) throws SQLException
Fetches the object from the underlying result set using getObject. Verifies that the object fetched can be assigned to an argument having the passed class object type.

Throws: SQLException
if an error occurs in the underlying result set, or the object has an incompatible type
 o getBigDecimal
 public BigDecimal getBigDecimal(int columnIndex) throws SQLException
Fetches a BigDecimal from the underlying result set using getObject.

Throws: SQLException
if an error occurs in the underlying result set, or the object has an incompatible type
 o getColumnCount
 public int getColumnCount() throws SQLException
Returns the column count using the result set meta data getColumnCount method.

Throws: SQLException
if an error occurs in the underlying result set
 o isValidRow
 public boolean isValidRow() throws SQLException
Returns true iff the result set if currently positioned on a row.

Throws: SQLException
if an error occurs in the underlying result set
 o isClosed
 public boolean isClosed() throws SQLException
Returns true is close has been called, false otherwise.

Throws: SQLException
if an error occurs
 o close
 public void close() throws SQLException
Calls the close method on the underlying result set.

Throws: SQLException
if an error occurs in the wrapped result set
 o finalize
 protected void finalize() throws Throwable
finalizes the super object and calls close if this iterator has not already been closed.

Throws: Throwable
if an error occurs during finalization
Overrides:
finalize in class Object
See Also:
close

All Packages    This Package  Previous  Next