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