|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--vortex.sql.vortexResultSet
This class implements the ResultSet for JDBC interface The class is designed to hold the results of database queries.
ResultSet| Constructor Summary | |
vortexResultSet(vortexRecord red)
Constructs a new result set object |
|
| Method Summary | |
void |
clearWarnings()
Clear the warning chain. |
void |
close()
Close a result set. |
int |
findColumn(java.lang.String name)
Given a column name, this method returns the column index for that name. |
java.io.InputStream |
getAsciiStream(int column)
Get the value of a column in the current row as a Java AsciiStream. |
java.io.InputStream |
getAsciiStream(java.lang.String name)
Very large ascii values in a LONGVARCHAR column can be read in small chunks from a java.io.InputStream. |
java.math.BigDecimal |
getBigDecimal(int column,
int scale)
Get the value of a column in the current row as a Java BigDecimal. |
java.math.BigDecimal |
getBigDecimal(java.lang.String name,
int scale)
Retrieve the column value as a numeric based on column name |
java.io.InputStream |
getBinaryStream(int column)
Get the value of a column in the current row as a Java BinaryStream. |
java.io.InputStream |
getBinaryStream(java.lang.String name)
Very large binary values in a LONGVARBINARY column can be read in small chunks from a java.io.InputStream. |
boolean |
getBoolean(int column)
Get the value of a column in the current row as a Java boolean. |
boolean |
getBoolean(java.lang.String name)
Retrieve the column value as a boolean based on column name |
byte |
getByte(int column)
Get the value of a column in the current row as a Java byte. |
byte |
getByte(java.lang.String name)
Get the value of a column in the current row as a Java byte. |
byte[] |
getBytes(int column)
Get the value of a column in the current row as a Java byte array. |
byte[] |
getBytes(java.lang.String name)
Retrieve the column value as a byte array based on column name |
java.lang.String |
getCursorName()
Return a cursor name |
java.sql.Date |
getDate(int column)
Get the value of a column in the current row as a Java date. |
java.sql.Date |
getDate(java.lang.String name)
Retrieve the column value as a date based on column name |
double |
getDouble(int column)
Get the value of a column in the current row as a Java double. |
double |
getDouble(java.lang.String name)
Retrieve the column value as a double based on column name |
float |
getFloat(int column)
Get the value of a column in the current row as a Java float. |
float |
getFloat(java.lang.String name)
Retrieve the column value as a float based on column name |
int |
getInt(int column)
Get the value of a column in the current row as a Java int. |
int |
getInt(java.lang.String name)
Retreive the column value as a int based on column name |
long |
getLong(int column)
Get the value of a column in the current row as a Java long. |
long |
getLong(java.lang.String name)
Retrieve the column value as a long based on column name |
java.sql.ResultSetMetaData |
getMetaData()
return meta-data on a result set. |
java.lang.Object |
getObject(int column)
Get the value of a column in the current row as a Java Object. |
java.lang.Object |
getObject(int column,
int type)
Get the value of a column in the current row as a Java Object. |
java.lang.Object |
getObject(int column,
int type,
int scale)
Get the value of a column in the current row as a Java Object. |
java.lang.Object |
getObject(java.lang.String name)
Same as above, except returning the default SQL type |
java.lang.Object |
getObject(java.lang.String name,
int type)
Get the value of a column as an object; an integral value is returned as its java.lang equivalent object; a LONGVARCHAR or LONGVARBINARY value is returned as a java.io.InputStream. |
java.lang.Object |
getObject(java.lang.String name,
int type,
int scale)
Get the value of a column as an object; an integral value is returned as its java.lang equivalent object; a LONGVARCHAR or LONGVARBINARY value is returned as a java.io.InputStream. |
short |
getShort(int column)
Get the value of a column in the current row as a Java short. |
short |
getShort(java.lang.String name)
Retrieve the column value as a short based on column name |
java.lang.String |
getString(int column)
Get the value of a column in the current row as a Java string. |
java.lang.String |
getString(java.lang.String name)
Get the value of a column in the current row as a Java String. |
java.sql.Time |
getTime(int column)
Get the value of a column in the current row as a Java time. |
java.sql.Time |
getTime(java.lang.String name)
Retrieve the column value as a time based on column name |
java.sql.Timestamp |
getTimestamp(int column)
Get the value of a column in the current row as a Java timestamp. |
java.sql.Timestamp |
getTimestamp(java.lang.String name)
Retrieve the column value as a timestamp based on column name |
java.io.InputStream |
getUnicodeStream(int column)
Get the value of a column in the current row as a Java UnicodeStream. |
java.io.InputStream |
getUnicodeStream(java.lang.String name)
Very large unicode values in a LONGVARCHAR column can be read in small chunks from a java.io.InputStream. |
java.sql.SQLWarning |
getWarnings()
Return warning message |
boolean |
isNull(int column)
JDBC specification method to determine if a column is null. |
boolean |
isNull(java.lang.String name)
column is NULL? |
boolean |
next()
Move to the next row of record, return true if there is one |
boolean |
wasNull()
JDBC specification method to determine if the last column read was null. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public vortexResultSet(vortexRecord red)
throws java.sql.SQLException
red - the vortexRecord returned from a previously executed query| Method Detail |
public boolean next()
throws java.sql.SQLException
ResultSet.next()
public boolean isNull(int column)
throws java.sql.SQLException
column - the column being tested for nullness
public boolean wasNull()
throws java.sql.SQLException
ResultSet.wasNull()
public java.lang.String getString(int column)
throws java.sql.SQLException
column - the column being retrievedResultSet.getString(int)
public byte getByte(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
public boolean getBoolean(int column)
throws java.sql.SQLException
column - the column for which the value is being retrievedResultSet.getBoolean(int)
public short getShort(int column)
throws java.sql.SQLException
column - the column being retrievedResultSet.getShort(int)
public int getInt(int column)
throws java.sql.SQLException
column - the column being retrievedResultSet.getInt(int)
public long getLong(int column)
throws java.sql.SQLException
column - the column being retrievedResultSet.getLong(int)
public float getFloat(int column)
throws java.sql.SQLException
column - the column being retrievedResultSet.getFloat(int)
public double getDouble(int column)
throws java.sql.SQLException
column - the column being retrievedResultSet.getDouble(int)
public java.math.BigDecimal getBigDecimal(int column,
int scale)
throws java.sql.SQLException
column - the column being retrievedscale - how many decimal digits after the floating point to maintainResultSet.getBigDecimal(int)
public byte[] getBytes(int column)
throws java.sql.SQLException
column - the column being retrievedResultSet.getBytes(int)
public java.sql.Date getDate(int column)
throws java.sql.SQLException
column - the column being retrievedResultSet.getDate(int)
public java.sql.Time getTime(int column)
throws java.sql.SQLException
column - the column being retrievedResultSet.getTime(int)
public java.sql.Timestamp getTimestamp(int column)
throws java.sql.SQLException
column - the column being retrievedResultSet.getTimestamp(int)
public java.io.InputStream getAsciiStream(int column)
throws java.sql.SQLException
column - the column being retrievedResultSet.getAsciiStream(int)
public java.io.InputStream getUnicodeStream(int column)
throws java.sql.SQLException
column - the column being retrievedResultSet.getAsciiStream(int)
public java.io.InputStream getBinaryStream(int column)
throws java.sql.SQLException
column - the column being retrievedResultSet.getBinaryStream(int)
public void close()
throws java.sql.SQLException
ResultSet.close()
public java.lang.String getCursorName()
throws java.sql.SQLException
ResultSet.getCursorName()
public java.sql.ResultSetMetaData getMetaData()
throws java.sql.SQLException
ResultSet.getMetaData()
public java.lang.Object getObject(int column,
int type,
int scale)
throws java.sql.SQLException
column - the column desiredtype - the SQL data type of the fieldResultSet.getObject(int)
public java.lang.Object getObject(int column,
int type)
throws java.sql.SQLException
column - The SQL column indextype - SQL type code defined by java.sql.Types
public java.lang.Object getObject(int column)
throws java.sql.SQLException
column - The SQL column indextype - SQL type code defined by java.sql.Types
public java.lang.String getString(java.lang.String name)
throws java.sql.SQLException
name - the column nameResultSet.getString(int)
public byte getByte(java.lang.String name)
throws java.sql.SQLException
name - the column nameResultSet.getByte(int)
public boolean getBoolean(java.lang.String name)
throws java.sql.SQLException
name - the column nameResultSet.getBoolean(int)
public short getShort(java.lang.String name)
throws java.sql.SQLException
name - the column nameResultSet.getShort(int)
public int getInt(java.lang.String name)
throws java.sql.SQLException
name - the column nameResultSet.getInt(int)
public long getLong(java.lang.String name)
throws java.sql.SQLException
name - the column nameResultSet.getLong(int)
public float getFloat(java.lang.String name)
throws java.sql.SQLException
name - the column nameResultSet.getFloat(int)
public double getDouble(java.lang.String name)
throws java.sql.SQLException
name - the column nameResultSet.getDouble(int)
public java.math.BigDecimal getBigDecimal(java.lang.String name,
int scale)
throws java.sql.SQLException
name - the column namescale - the scale of the numeric columnResultSet.getBigDecimal(int)
public byte[] getBytes(java.lang.String name)
throws java.sql.SQLException
name - the column nameResultSet.getByte(int)
public java.sql.Date getDate(java.lang.String name)
throws java.sql.SQLException
name - the column nameResultSet.getDate(int)
public java.sql.Time getTime(java.lang.String name)
throws java.sql.SQLException
name - the column nameResultSet.getTime(int)
public java.sql.Timestamp getTimestamp(java.lang.String name)
throws java.sql.SQLException
name - the column nameResultSet.getTimestamp(int)
public java.io.InputStream getAsciiStream(java.lang.String name)
throws java.sql.SQLException
Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a get method implicitly closes the stream.
name - the column name
public java.io.InputStream getUnicodeStream(java.lang.String name)
throws java.sql.SQLException
Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a get method implicitly closes the stream.
name - the column name
public java.io.InputStream getBinaryStream(java.lang.String name)
throws java.sql.SQLException
Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a get method implicitly closes the stream.
name - the column name
public java.lang.Object getObject(java.lang.String name,
int type,
int scale)
throws java.sql.SQLException
name - the column nametype - SQL type code defined by java.sql.Types
public java.lang.Object getObject(java.lang.String name,
int type)
throws java.sql.SQLException
name - the column nametype - SQL type code defined by java.sql.Types
public java.lang.Object getObject(java.lang.String name)
throws java.sql.SQLException
name - the column name
public boolean isNull(java.lang.String name)
throws java.sql.SQLException
name - the column name
public int findColumn(java.lang.String name)
throws java.sql.SQLException
name - the name of the column desired
public java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
Statement.getWarnings()
public void clearWarnings()
throws java.sql.SQLException
Statement.clearWarnings()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||