Class Hierarchy        Index

Class COM.cloudscape.util.ColumnResultSet

java.lang.Object
   |
   +----COM.cloudscape.vti.VTITemplate
           |
           +----COM.cloudscape.util.ColumnResultSet

public class ColumnResultSet
extends VTITemplate
implements Serializable
Copyright © 1997-1999, Cloudscape, Inc. All rights reserved.

This class is used to loop through ResultSets which are stored in columns. This class wraps query text for materializing the contents of a column.


Variable Index

 o CLASS_NAME

Constructor Index

 o ColumnResultSet(String, String)
Construct a ColumnResultSet out of a SQL query.

Method Index

 o clearWarnings()
 o close()
 o findColumn(String)
 o getAsciiStream(int)
 o getAsciiStream(String)
 o getBigDecimal(int, int)
 o getBigDecimal(String, int)
 o getBinaryStream(int)
 o getBinaryStream(String)
 o getBoolean(int)
 o getBoolean(String)
 o getByte(int)
 o getByte(String)
 o getBytes(int)
 o getBytes(String)
 o getCursorName()
 o getDate(int)
 o getDate(String)
 o getDouble(int)
 o getDouble(String)
 o getFloat(int)
 o getFloat(String)
 o getInt(int)
 o getInt(String)
 o getLong(int)
 o getLong(String)
 o getMetaData()
 o getObject(int)
 o getObject(String)
 o getShort(int)
 o getShort(String)
 o getString(int)
 o getString(String)
 o getTime(int)
 o getTime(String)
 o getTimestamp(int)
 o getTimestamp(String)
 o getUnicodeStream(int)
 o getUnicodeStream(String)
 o getWarnings()
 o next()
 o setConnection(Connection)
Sets the connection which will be used to manage the query which materializes this ResultSet.
 o toString()
Describes this ColumnResultSet
 o wasNull()

Variables

 o CLASS_NAME
 public static String CLASS_NAME

Constructors

 o ColumnResultSet
 public ColumnResultSet(String queryText,
                        String description)
Construct a ColumnResultSet out of a SQL query.

Parameters:
queryText - text of the query
description - description to be returned by our toString() method

Methods

 o setConnection
 public void setConnection(Connection connection)
Sets the connection which will be used to manage the query which materializes this ResultSet.

Parameters:
connection - the connection which the query will run against
 o toString
 public String toString()
Describes this ColumnResultSet

Returns:
a description of this ColumnResultSet
Overrides:
toString in class Object
 o next
 public boolean next() throws SQLException
Throws: SQLException
thrown on error
Overrides:
next in class VTITemplate
 o close
 public void close() throws SQLException
Throws: SQLException
thrown on error
Overrides:
close in class VTITemplate
 o wasNull
 public boolean wasNull() throws SQLException
Throws: SQLException
thrown on error
Overrides:
wasNull in class VTITemplate
 o getString
 public String getString(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getString in class VTITemplate
 o getBoolean
 public boolean getBoolean(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getBoolean in class VTITemplate
 o getByte
 public byte getByte(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getByte in class VTITemplate
 o getShort
 public short getShort(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getShort in class VTITemplate
 o getInt
 public int getInt(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getInt in class VTITemplate
 o getLong
 public long getLong(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getLong in class VTITemplate
 o getFloat
 public float getFloat(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getFloat in class VTITemplate
 o getDouble
 public double getDouble(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getDouble in class VTITemplate
 o getBigDecimal
 public BigDecimal getBigDecimal(int columnIndex,
                                 int scale) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getBigDecimal in class VTITemplate
 o getBytes
 public byte[] getBytes(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getBytes in class VTITemplate
 o getDate
 public Date getDate(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getDate in class VTITemplate
 o getTime
 public Time getTime(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getTime in class VTITemplate
 o getTimestamp
 public Timestamp getTimestamp(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getTimestamp in class VTITemplate
 o getAsciiStream
 public InputStream getAsciiStream(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getAsciiStream in class VTITemplate
 o getUnicodeStream
 public InputStream getUnicodeStream(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getUnicodeStream in class VTITemplate
 o getBinaryStream
 public InputStream getBinaryStream(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getBinaryStream in class VTITemplate
 o getString
 public String getString(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getString in class VTITemplate
 o getBoolean
 public boolean getBoolean(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getBoolean in class VTITemplate
 o getByte
 public byte getByte(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getByte in class VTITemplate
 o getShort
 public short getShort(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getShort in class VTITemplate
 o getInt
 public int getInt(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getInt in class VTITemplate
 o getLong
 public long getLong(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getLong in class VTITemplate
 o getFloat
 public float getFloat(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getFloat in class VTITemplate
 o getDouble
 public double getDouble(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getDouble in class VTITemplate
 o getBigDecimal
 public BigDecimal getBigDecimal(String columnName,
                                 int scale) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getBigDecimal in class VTITemplate
 o getBytes
 public byte[] getBytes(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getBytes in class VTITemplate
 o getDate
 public Date getDate(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getDate in class VTITemplate
 o getTime
 public Time getTime(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getTime in class VTITemplate
 o getTimestamp
 public Timestamp getTimestamp(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getTimestamp in class VTITemplate
 o getAsciiStream
 public InputStream getAsciiStream(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getAsciiStream in class VTITemplate
 o getUnicodeStream
 public InputStream getUnicodeStream(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getUnicodeStream in class VTITemplate
 o getBinaryStream
 public InputStream getBinaryStream(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getBinaryStream in class VTITemplate
 o getWarnings
 public SQLWarning getWarnings() throws SQLException
Throws: SQLException
thrown on error
Overrides:
getWarnings in class VTITemplate
 o clearWarnings
 public void clearWarnings() throws SQLException
Throws: SQLException
thrown on error
Overrides:
clearWarnings in class VTITemplate
 o getCursorName
 public String getCursorName() throws SQLException
Throws: SQLException
thrown on error
Overrides:
getCursorName in class VTITemplate
 o getMetaData
 public ResultSetMetaData getMetaData() throws SQLException
Throws: SQLException
thrown on error
Overrides:
getMetaData in class VTITemplate
 o getObject
 public Object getObject(int columnIndex) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getObject in class VTITemplate
 o getObject
 public Object getObject(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
getObject in class VTITemplate
 o findColumn
 public int findColumn(String columnName) throws SQLException
Throws: SQLException
thrown on error
Overrides:
findColumn in class VTITemplate

  Class Hierarchy        Index