Class Hierarchy    Previous  Next  Index

Class COM.cloudscape.util.ColumnResultSet

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

public class ColumnResultSet
extends VTITemplate
implements java.io.Serializable
Copyright © 1998-2000, Informix Software, 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.


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()
 

Constructor Detail

 o ColumnResultSet
public ColumnResultSet(java.lang.String queryText,
                       java.lang.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

Method Detail

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

  Class Hierarchy    Previous  Next  Index