public interface AQResultSet extends AQDataReader
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases this ResultSet object's database and JDBC resources immediately instead
of waiting for this to happen when it is automatically closed.
|
AQSQLArray |
getArray(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as an Array object.
|
AQSQLArray |
getArray(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as an Array object.
|
java.math.BigDecimal |
getBigDecimal(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a BigDecimal with full precision.
|
java.math.BigDecimal |
getBigDecimal(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a BigDecimal with full precision.
|
AQSQLBlob |
getBlob(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object.
|
AQSQLBlob |
getBlob(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object.
|
boolean |
getBoolean(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a boolean.
|
boolean |
getBoolean(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a boolean.
|
byte |
getByte(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a byte.
|
byte |
getByte(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a byte.
|
byte[] |
getBytes(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in
the Java programming language.
|
byte[] |
getBytes(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in
the Java programming language.
|
AQSQLClob |
getClob(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a Clob object.
|
AQSQLClob |
getClob(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a Clob object.
|
AQColumnStructure |
getColumnStructure()
To get the associated column structure of the result set.
|
int |
getCurrentRow()
Retrieves the current row number.
|
java.lang.String |
getDate(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a Date object.
|
java.lang.String |
getDate(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a Date object.
|
double |
getDouble(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a double.
|
double |
getDouble(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a double.
|
float |
getFloat(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a float.
|
float |
getFloat(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a float.
|
int |
getInt(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as an int.
|
int |
getInt(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as an int.
|
long |
getLong(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as an long.
|
long |
getLong(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as an long.
|
AQSQLNClob |
getNClob(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a NClob object.
|
AQSQLNClob |
getNClob(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a NClob object.
|
java.lang.String |
getNString(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a String.
|
java.lang.String |
getNString(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a String.
|
java.lang.Object |
getObject(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as an Object.
|
java.lang.Object |
getObject(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as an Object.
|
AQDataRow |
getRow()
Extracts current data row.
|
AQSQLRowId |
getRowId(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a RowId Object.
|
AQSQLRowId |
getRowId(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a RowId Object.
|
short |
getShort(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a short.
|
short |
getShort(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a short.
|
java.lang.String |
getString(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a String.
|
java.lang.String |
getString(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a String.
|
java.lang.String |
getTime(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a Time object.
|
java.lang.String |
getTime(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a Time object.
|
java.lang.String |
getTimestamp(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a Timestamp object.
|
java.lang.String |
getTimestamp(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a Timestamp object.
|
java.lang.String |
getURL(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a URL string.
|
java.lang.String |
getURL(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a URL string.
|
boolean |
isNull(int columnIndex)
To check for null values in the column of the current row.
|
boolean |
isNull(java.lang.String columnName)
To check for null values in the column of the current row.
|
boolean |
next()
Moves the cursor froward one row from its current position.
|
read, readNextRow
AQColumnStructure getColumnStructure()
getColumnStructure
in interface AQDataReader
void close() throws java.io.IOException
close
in interface AQDataReader
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
java.io.IOException
- if an I/O error occursboolean isNull(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.boolean isNull(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column .java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on a closed result set.java.lang.String getString(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.java.lang.String getString(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on a closed result set.AQSQLArray getArray(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.AQSQLArray getArray(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on a closed result set.java.math.BigDecimal getBigDecimal(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.java.math.BigDecimal getBigDecimal(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on a closed result set.AQSQLBlob getBlob(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.
Also, if the JDBC driver does not support this operation.AQSQLBlob getBlob(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.
Also, if the JDBC driver does not support this operation.boolean getBoolean(int columnIndex) throws java.lang.Exception
If the designated column has a datatype of CHAR or VARCHAR and contains a "0" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT and contains a 0, a value of false is returned. If the designated column has a datatype of CHAR or VARCHAR and contains a "1" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT and contains a 1, a value of true is returned.
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.boolean getBoolean(java.lang.String columnName) throws java.lang.Exception
If the designated column has a datatype of CHAR or VARCHAR and contains a "0" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT and contains a 0, a value of false is returned. If the designated column has a datatype of CHAR or VARCHAR and contains a "1" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT and contains a 1, a value of true is returned.
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on a closed result set.byte getByte(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on
a closed result set.byte getByte(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on
a closed result set.byte[] getBytes(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a
closed result setbyte[] getBytes(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on
a closed result set.AQSQLClob getClob(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result setAQSQLClob getClob(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on a closed result setjava.lang.String getDate(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.java.lang.String getDate(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on a closed result set.double getDouble(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.double getDouble(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on a closed result set.float getFloat(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.float getFloat(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on a closed result set.int getInt(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result setint getInt(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on a closed result setlong getLong(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.long getLong(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.AQSQLNClob getNClob(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnName is not valid; if the driver does not support national character sets;
if the driver can detect that a data conversion error could occur; this method is called
on a closed result set or if a database access error occursAQSQLNClob getNClob(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if the driver does not support national character sets;
if the driver can detect that a data conversion error could occur; this method is called
on a closed result set or if a database access error occursjava.lang.String getNString(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.java.lang.String getNString(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on a closed result set.java.lang.Object getObject(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnLabel is not valid; if a database access error occurs or this method is called on a closed result set.java.lang.Object getObject(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnLabel is not valid; if a database access error occurs or this method is called on a closed result set.AQSQLRowId getRowId(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.AQSQLRowId getRowId(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on a closed result setshort getShort(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.short getShort(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on a closed result set.java.lang.String getTime(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.java.lang.String getTime(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on a closed result set.java.lang.String getTimestamp(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.java.lang.String getTimestamp(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnName is not valid; if a database access error occurs or this method is called on a closed result set.java.lang.String getURL(int columnIndex) throws java.lang.Exception
columnIndex
- The column index; the first column is 0, the second is 1, ...java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs; this method is called on a closed result set or if a URL is
malformed.java.lang.String getURL(java.lang.String columnName) throws java.lang.Exception
columnName
- The name of the column specified with the SQL AS clause. If the SQL AS clause was
not specified, then the label is the name of the column.java.lang.Exception
- If the columnIndex is not valid; if a database access error occurs; this method is called on a closed result set or if a URL is
malformed.boolean next() throws java.lang.Exception
java.lang.Exception
- If a database access error occurs or this method is called on a closed result set.AQDataRow getRow() throws java.lang.Exception
java.lang.Exception
- On error.int getCurrentRow() throws java.lang.Exception
java.lang.Exception
- If a database access error occurs or this method is called on a closed result set.
Copyright © 2019 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.