|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A JXTRResultSet object implements a result set like view for the information returned by executing a jXTransformer query.
Consider the following query:
select
e.EmpId,
xml_element('names',
xml_element('first-name', e.FirstName),
xml_element('last-name', e.LastName)),
xml_element('dates',
xml_element('start-of-contract',e.HireDate
xml_element('end-of-contract',e.EndDate))
from Employees e
Executing this query with JXTRQuery.executeQuery() will return a
JXTRResulSet object. This result set object will have three columns: the
first is a regular JDBC integer column, while the second and third columns
are XML typed columns (see JXTRQuery.XMLTYPE). The contents of these
columns can be extracted using the methods defined in JXTRColInfo.
Moving to the next row is done by invoking next().
It is important to note that JXTRResultSet implements a read only and forward only type of result set. Furthermore, column values must be retrieved in sequence (left to right).
| Method Summary | |
void |
clearWarnings()
Clears all the warnings reported on this object. |
void |
close()
Closes all JDBC resources associated with this result set. |
int |
findColumn(java.lang.String columnName)
Maps the specified ResultSet column name to its ResultSet column index. |
java.io.InputStream |
getAsciiStream(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as an AsciiStream. |
java.io.InputStream |
getAsciiStream(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as an AsciiStream. |
java.math.BigDecimal |
getBigDecimal(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a BigDecimal. |
java.math.BigDecimal |
getBigDecimal(int columnIndex,
int scale)
Gets the value of the designated column in the current row of this JXTRResultSet as a BigDecimal. |
java.math.BigDecimal |
getBigDecimal(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a BigDecimal. |
java.math.BigDecimal |
getBigDecimal(java.lang.String columnName,
int scale)
Gets the value of the designated column in the current row of this JXTRResultSet as a BigDecimal. |
java.io.InputStream |
getBinaryStream(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a BinaryStream. |
java.io.InputStream |
getBinaryStream(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a BinaryStream. |
java.sql.Blob |
getBlob(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a Blob. |
java.sql.Blob |
getBlob(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a Blob. |
boolean |
getBoolean(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a boolean. |
boolean |
getBoolean(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a boolean. |
byte |
getByte(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a byte. |
byte |
getByte(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a byte. |
byte[] |
getBytes(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a byte array. |
byte[] |
getBytes(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a byte array. |
java.io.Reader |
getCharacterStream(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a CharacterStream. |
java.io.Reader |
getCharacterStream(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a CharacterStream. |
java.sql.Clob |
getClob(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a Clob. |
java.sql.Clob |
getClob(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a Clob. |
java.sql.Date |
getDate(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a Date. |
java.sql.Date |
getDate(int columnIndex,
java.util.Calendar calendar)
Gets the value of the designated column in the current row of this JXTRResultSet as a Date. |
java.sql.Date |
getDate(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a Date. |
java.sql.Date |
getDate(java.lang.String columnName,
java.util.Calendar calendar)
Gets the value of the designated column in the current row of this JXTRResultSet as a Date. |
double |
getDouble(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a double. |
double |
getDouble(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a double. |
float |
getFloat(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a float. |
float |
getFloat(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a float. |
int |
getInt(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as an int. |
int |
getInt(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as an int. |
long |
getLong(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a long. |
long |
getLong(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a long. |
JXTRResultSetMetaData |
getMetaData()
Retrieves the meta data object associated with this result set. |
java.lang.Object |
getObject(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a Java Object. |
java.lang.Object |
getObject(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a Java Object. |
short |
getShort(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a short. |
short |
getShort(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a short. |
java.lang.String |
getString(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a String. |
java.lang.String |
getString(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a String. |
java.sql.Time |
getTime(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a Time. |
java.sql.Time |
getTime(int columnIndex,
java.util.Calendar calendar)
Gets the value of the designated column in the current row of this JXTRResultSet as a Time. |
java.sql.Time |
getTime(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a Time. |
java.sql.Time |
getTime(java.lang.String columnName,
java.util.Calendar calendar)
Gets the value of the designated column in the current row of this JXTRResultSet as a Time. |
java.sql.Timestamp |
getTimestamp(int columnIndex)
Gets the value of the designated column in the current row of this JXTRResultSet as a Timestamp. |
java.sql.Timestamp |
getTimestamp(int columnIndex,
java.util.Calendar calendar)
Gets the value of the designated column in the current row of this JXTRResultSet as a Timestamp. |
java.sql.Timestamp |
getTimestamp(java.lang.String columnName)
Gets the value of the designated column in the current row of this JXTRResultSet as a Timestamp. |
java.sql.Timestamp |
getTimestamp(java.lang.String columnName,
java.util.Calendar calendar)
Gets the value of the designated column in the current row of this JXTRResultSet as a Timestamp. |
JXTRWarning |
getWarnings()
Retrieves the first warning reported by calls on this object. |
boolean |
next()
Move to the next row. |
boolean |
wasNull()
Reports whether the last column that was read had a value of SQL NULL. |
| Method Detail |
public void close()
throws JXTRException
JXTRException
public boolean next()
throws JXTRException
true
when a row is retrieved and false when the end of
the result set is reached.
JXTRException
public boolean wasNull()
throws JXTRException
Currently, this method always returns false for columns of type JXTRQuery.XML_TYPE.
JXTRException
public JXTRResultSetMetaData getMetaData()
throws JXTRException
Retrieves the meta data object associated with this result set.
JXTRExceptionJXTRResultSetMetaData
public int findColumn(java.lang.String columnName)
throws JXTRException
columnName - Name of the column
JXTRException - if a database error occurs or the
columnName is invalid
public java.lang.Object getObject(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Java Object.
This method returns the value of the column as a Java object. The type of the Java object will be the default Java object type corresponding to the column's SQL type, or com.ddtek.jxtr.JXTRColInfo for XML columns. If the value is a SQL NULL, the driver returns a Java null.
columnIndex - 1 based column index.
JXTRException
public byte getByte(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a byte.
This method returns the value of the column as a byte.
If the column's SQL type doesn't correspond to a byte, the method will
try to convert it.
To check if the column is SQL NULL, wasNull() must be called.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public short getShort(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a short.
This method returns the value of the column as a short.
If the column's SQL type doesn't correspond to a short, the method will
try to convert it.
To check if the column value is SQL NULL, wasNull() must be
called.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public int getInt(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as an int.
This method returns the value of the column as a int.
If the column's SQL type doesn't correspond to a int, the method will
try to convert it.
To check if the column value is SQL NULL, wasNull() must be
called.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public long getLong(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a long.
This method returns the value of the column as a long.
If the column's SQL type doesn't correspond to a long, the method will
try to convert it.
To check if the column value is SQL NULL, wasNull() must be
called.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public float getFloat(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a float.
This method returns the value of the column as a float.
If the column's SQL type doesn't correspond to a float, the method will
try to convert it.
To check if the column value is SQL NULL, wasNull() must be
called.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public double getDouble(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a double.
This method returns the value of the column as a double.
If the column's SQL type doesn't correspond to a double, the method will
try to convert it.
To check if the column value is SQL NULL, wasNull() must be
called.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public java.math.BigDecimal getBigDecimal(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a BigDecimal.
This method returns the value of the column as a BigDecimal. If the column's SQL type doesn't correspond to a BigDecimal, the method will try to convert it. If the value is a SQL NULL, the driver returns a Java null.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public java.math.BigDecimal getBigDecimal(int columnIndex,
int scale)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a BigDecimal.
This method returns the value of the column as a BigDecimal. If the column's SQL type doesn't correspond to a BigDecimal, the method will try to convert it. If the value is a SQL NULL, the driver returns a Java null.
columnIndex - 1 based column index.scale - the number of digits of the decimal point.
JXTRException - if a conversion is not supported or fails
public boolean getBoolean(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a boolean.
This method returns the value of the column as a boolean.
If the column's SQL type doesn't correspond to a boolean, the method will
try to convert it.
To check if the column value is SQL NULL, wasNull() must be
called.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public java.lang.String getString(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a String.
This method returns the value of the column as a String. If the value is a SQL NULL, the driver returns a Java null.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public byte[] getBytes(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a byte array.
This method returns the value of the column as a byte array. If the value is a SQL NULL, the driver returns a Java null.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public java.sql.Date getDate(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Date.
This method returns the value of the column as a Date. If the value is a SQL NULL, the driver returns a Java null.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public java.sql.Date getDate(int columnIndex,
java.util.Calendar calendar)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Date.
This method returns the value of the column as a Date. If the value is a SQL NULL, the driver returns a Java null. This method uses the specified calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone information.
columnIndex - 1 based column index.calendar - Calendar object used in the date construction.
JXTRException - if a conversion is not supported or fails
public java.sql.Time getTime(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Time.
This method returns the value of the column as a Time. If the value is a SQL NULL, the driver returns a Java null.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public java.sql.Time getTime(int columnIndex,
java.util.Calendar calendar)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Time.
This method returns the value of the column as a Time. If the value is a SQL NULL, the driver returns a Java null. This method uses the specified calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone information.
columnIndex - 1 based column index.calendar - Calendar object used in the time construction.
JXTRException - if a conversion is not supported or fails
public java.sql.Timestamp getTimestamp(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Timestamp.
This method returns the value of the column as a Timestamp. If the value is a SQL NULL, the driver returns a Java null.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public java.sql.Timestamp getTimestamp(int columnIndex,
java.util.Calendar calendar)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Timestamp.
This method returns the value of the column as a Timestamp. If the value is a SQL NULL, the driver returns a Java null. This method uses the specified calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone information.
columnIndex - 1 based column index.calendar - Calendar object used in the timestamp construction.
JXTRException - if a conversion is not supported or fails
public java.io.InputStream getAsciiStream(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as an AsciiStream.
This method returns the value of the column as an AsciiStream. If the value is a SQL NULL, the driver returns a Java null.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public java.io.InputStream getBinaryStream(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a BinaryStream.
This method returns the value of the column as a BinaryStream. If the value is a SQL NULL, the driver returns a Java null.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public java.io.Reader getCharacterStream(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a CharacterStream.
This method returns the value of the column as a CharacterStream. If the value is a SQL NULL, the driver returns a Java null.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public java.sql.Clob getClob(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Clob.
This method returns the value of the column as a Clob. If the value is a SQL NULL, the driver returns a Java null.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public java.sql.Blob getBlob(int columnIndex)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Blob.
This method returns the value of the column as a Blob. If the value is a SQL NULL, the driver returns a Java null.
columnIndex - 1 based column index.
JXTRException - if a conversion is not supported or fails
public java.lang.Object getObject(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Java Object.
This method returns the value of the column as a Java object. The type of the Java object will be the default Java object type corresponding to the column's SQL type, or com.ddtek.jxtr.JXTRColInfo, for XML columns. If the value is a SQL NULL, the driver returns a Java null.
columnName - Name of the column.
JXTRException
public byte getByte(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a byte.
This method returns the value of the column as a byte.
If the column's SQL type doesn't correspond to a byte, the method will
try to convert it.
To check if the column value is SQL NULL, wasNull() must be
called.
columnName - Name of the column.
JXTRException - if a conversion is not supported or fails
public short getShort(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a short.
This method returns the value of the column as a short.
If the column's SQL type doesn't correspond to a short, the method will
try to convert it.
To check if the column value is SQL NULL, wasNull() must be
called.
columnName - Name of the column.
JXTRException - if a conversion is not supported or fails
public int getInt(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as an int.
This method returns the value of the column as an int.
If the column's SQL type doesn't correspond to an int, the method will
try to convert it.
To check if the column value is SQL NULL, wasNull() must be
called.
columnName - Name of the column.
JXTRException - if a conversion is not supported or fails
public long getLong(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a long.
This method returns the value of the column as a long.
If the column's SQL type doesn't correspond to a long, the method will
try to convert it.
To check if the column value is SQL NULL, wasNull() must be
called.
columnName - Name of the column.
JXTRException - if a convertion is not supported or fails
public float getFloat(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a float.
This method returns the value of the column as a float.
If the column's SQL type doesn't correspond to a float, the method will
try to convert it.
To check if the column value is SQL NULL, wasNull() must be
called.
columnName - Name of the column.
JXTRException - if a conversion is not supported or fails
public double getDouble(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a double.
This method returns the value of the column as a double.
If the column's SQL type doesn't correspond to a double, the method will
try to convert it.
To check if the column value is SQL NULL, wasNull() must be
called.
columnName - Name of the column.
JXTRException - if a convertion is not supported or fails
public java.math.BigDecimal getBigDecimal(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a BigDecimal.
This method returns the value of the column as a BigDecimal. If the column's SQL type doesn't correspond to a BigDecimal, the method will try to convert it. If the value is a SQL NULL, the driver returns a Java null.
columnName - Name of the column.
JXTRException - if a conversion is not supported or fails
public java.math.BigDecimal getBigDecimal(java.lang.String columnName,
int scale)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a BigDecimal.
This method returns the value of the column as a BigDecimal. If the column's SQL type doesn't correspond to a BigDecimal, the method will try to convert it. If the value is a SQL NULL, the driver returns a Java null.
columnName - Name of the column.scale - Number of digits of the decimal point.
JXTRException - if a conversion is not supported or fails
public boolean getBoolean(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a boolean.
This method returns the value of the column as a boolean.
If the column's SQL type doesn't correspond to a boolean, the method will
try to convert it.
To check if the column value is SQL NULL, wasNull() must be
called.
columnName - Name of the column.
JXTRException - if a conversion is not supported or fails
public java.lang.String getString(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a String.
This method returns the value of the column as a String. If the value is a SQL NULL, the driver returns a Java null.
columnName - Name of the column.
JXTRException - if a conversion is not supported or fails
public byte[] getBytes(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a byte array.
This method returns the value of the column as a byte array. If the value is a SQL NULL, the driver returns a Java null.
columnName - Name of the column.
JXTRException - if a conversion is not supported or fails
public java.sql.Date getDate(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Date.
This method returns the value of the column as a Date. If the value is a SQL NULL, the driver returns a Java null.
columnName - Name of the column.
JXTRException - if a convertion is not supported or fails
public java.sql.Date getDate(java.lang.String columnName,
java.util.Calendar calendar)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Date.
This method returns the value of the column as a Date. If the value is a SQL NULL, the driver returns a Java null. This method uses the specified calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone information.
columnName - Name of the column.calendar - Calendar object used in the date construction.
JXTRException - if a conversion is not supported or fails
public java.sql.Time getTime(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Time.
This method returns the value of the column as a Time. If the value is a SQL NULL, the driver returns a Java null.
columnName - Name of the column.
JXTRException - if a conversion is not supported or fails
public java.sql.Time getTime(java.lang.String columnName,
java.util.Calendar calendar)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Time.
This method returns the value of the column as a Time. If the value is a SQL NULL, the driver returns a Java null. This method uses the specified calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone information.
columnName - Name of the column.calendar - Calendar object used in the time construction.
JXTRException - if a convertion is not supported or fails
public java.sql.Timestamp getTimestamp(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Timestamp.
This method returns the value of the column as a Timestamp. If the value is a SQL NULL, the driver returns a Java null.
columnName - Name of the column.
JXTRException - if a conversion is not supported or fails
public java.sql.Timestamp getTimestamp(java.lang.String columnName,
java.util.Calendar calendar)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Timestamp.
This method returns the value of the column as a Timestamp. If the value is a SQL NULL, the driver returns a Java null. This method uses the specified calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone information.
columnName - Name of the column.calendar - Calendar object used in the timestamp construction.
JXTRException - if a conversion is not supported or fails
public java.io.InputStream getAsciiStream(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as an AsciiStream.
This method returns the value of the column as an AsciiStream. If the value is a SQL NULL, the driver returns a Java null.
columnName - Name of the column.
JXTRException - if a conversion is not supported or fails
public java.io.InputStream getBinaryStream(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a BinaryStream.
This method returns the value of the column as a BinaryStream. If the value is a SQL NULL, the driver returns a Java null.
columnName - Name of the column.
JXTRException - if a conversion is not supported or fails
public java.io.Reader getCharacterStream(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a CharacterStream.
This method returns the value of the column as a CharacterStream. If the value is a SQL NULL, the driver returns a Java null.
columnName - Name of the column.
JXTRException - if a conversion is not supported or fails
public java.sql.Clob getClob(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Clob.
This method returns the value of the column as a Clob. If the value is a SQL NULL, the driver returns a Java null.
columnName - Name of the column.
JXTRException - if a conversion is not supported or fails
public java.sql.Blob getBlob(java.lang.String columnName)
throws JXTRException
Gets the value of the designated column in the current row of this JXTRResultSet as a Blob.
This method returns the value of the column as a Blob. If the value is a SQL NULL, the driver returns a Java null.
columnName - Name of the column.
JXTRException - if a convertion is not supported or fails
public JXTRWarning getWarnings()
throws JXTRException
The warning chain is automatically cleared each time a new row is read.
This method cannot be called on a closed JXTRResultSet object;
doing so will cause an JXTRException to be thrown.
Note: This warning chain only covers warnings caused by
JXTRResultSet methods. Any warning caused by JXTRQuery
methods are chained on the JXTRQuery object.
JXTRException - if this method is called on a closed object.
public void clearWarnings()
throws JXTRException
getWarnings will
return null until a new warning is reported
for this object.
JXTRException - if an error occurs when clearing the warnings.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||