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