public final class FndResultSet
extends java.lang.Object
implements java.lang.AutoCloseable
This is a framework internal class! Backward compatibility is not guaranteed.
ResultSet
,
OracleResultSet
Modifier and Type | Field and Description |
---|---|
static int |
CONCUR_READ_ONLY |
static int |
CONCUR_UPDATABLE |
static int |
TYPE_FORWARD_ONLY |
Constructor and Description |
---|
FndResultSet(java.sql.ResultSet resultSet,
TimingsLogger.Counter counter)
Creates new instance of the class.
|
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.
|
void |
finishCounter() |
java.math.BigDecimal |
getBigDecimal(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.math.BigDecimal with full precision.
|
java.sql.Blob |
getBlob(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a Blob object in the Java programming language.
|
java.sql.Blob |
getBLOB(int columnIndex)
Oracle extension.
|
boolean |
getBoolean(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a boolean in the Java programming language.
|
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.
|
java.sql.Clob |
getClob(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a Clob object in the Java programming language.
|
java.sql.Clob |
getCLOB(int columnIndex)
Oracle extension.
|
java.sql.Date |
getDate(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.sql.Date object in the Java programming language.
|
double |
getDouble(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a double in the Java programming language.
|
int |
getInt(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as an int in the Java programming language.
|
long |
getLong(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a long in the Java programming language.
|
java.sql.ResultSetMetaData |
getMetaData()
Retrieves the number, types and properties of this ResultSet object's columns.
|
java.lang.String |
getString(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a String in the Java programming language.
|
java.sql.Time |
getTime(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.sql.Time object in the Java programming language.
|
java.sql.Timestamp |
getTimestamp(int columnIndex,
java.util.Calendar cal)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.sql.Timestamp object in the Java programming
language.
|
java.sql.SQLWarning |
getWarnings()
Retrieves the first warning reported by calls on this ResultSet object.
|
boolean |
next()
Moves the cursor forward one row from its current position.
|
void |
updateRow()
Updates the underlying database with the new contents of the current row
of this ResultSet object.
|
boolean |
wasNull()
Reports whether the last column read had a value of SQL NULL.
|
public static final int TYPE_FORWARD_ONLY
public static final int CONCUR_READ_ONLY
public static final int CONCUR_UPDATABLE
public FndResultSet(java.sql.ResultSet resultSet, TimingsLogger.Counter counter)
resultSet
- The java.sql.ResultSet that is about to be wrappedcounter
- Conter instance for time statistics or null.TimingsLogger
public void finishCounter()
public java.lang.String getString(int columnIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...java.sql.SQLException
- if the columnIndex is not valid; if a database access
error occurs or this method is called on a closed result setpublic boolean getBoolean(int columnIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...java.sql.SQLException
- if the columnIndex is not valid; if a database access
error occurs or this method is called on a closed result setpublic int getInt(int columnIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...java.sql.SQLException
- if the columnIndex is not valid; if a database access
error occurs or this method is called on a closed result setpublic long getLong(int columnIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...java.sql.SQLException
public java.math.BigDecimal getBigDecimal(int columnIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...java.sql.SQLException
- if the columnIndex is not valid; if a database access
error occurs or this method is called on a closed result setpublic double getDouble(int columnIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...java.sql.SQLException
- if the columnIndex is not valid; if a database access
error occurs or this method is called on a closed result setpublic java.sql.Date getDate(int columnIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...java.sql.SQLException
- if the columnIndex is not valid; if a database access
error occurs or this method is called on a closed result setpublic java.sql.Time getTime(int columnIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...java.sql.SQLException
- if the columnIndex is not valid; if a database access
error occurs or this method is called on a closed result setpublic java.sql.Timestamp getTimestamp(int columnIndex, java.util.Calendar cal) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...cal
- the java.util.Calendar object to use in constructing the timestampjava.sql.SQLException
- if the columnIndex is not valid; if a database access
error occurs or this method is called on a closed result setpublic byte[] getBytes(int columnIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...java.sql.SQLException
- if the columnIndex is not valid; if a database access
error occurs or this method is called on a closed result setpublic java.sql.Clob getClob(int columnIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...java.sql.SQLException
- if the columnIndex is not valid; if a database access
error occurs or this method is called on a closed result setpublic java.sql.Blob getBlob(int columnIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...java.sql.SQLException
- if the columnIndex is not valid; if a database access
error occurs or this method is called on a closed result setpublic java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
java.sql.SQLException
- if a database access error occurs or this method is
called on a closed result setpublic java.sql.SQLWarning getWarnings() throws java.sql.SQLException
java.sql.SQLException
- if a database access error occurs or this method is
called on a closed result setpublic boolean next() throws java.sql.SQLException
java.sql.SQLException
- if a database access error occurs or this method is
called on a closed result setpublic boolean wasNull() throws java.sql.SQLException
java.sql.SQLException
- if a database access error occurs or this method
is called on a closed result setpublic void updateRow() throws java.sql.SQLException
java.sql.SQLException
- if a database access error occurs; the result set
concurrency is CONCUR_READ_ONLY; this method is called on a closed result
set or if this method is called when the cursor is on the insert rowpublic void close() throws java.sql.SQLException
close
in interface java.lang.AutoCloseable
java.sql.SQLException
- if a database access error occurspublic java.sql.Blob getBLOB(int columnIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...java.sql.SQLException
- the column value as an oracle.sql.BLOBpublic java.sql.Clob getCLOB(int columnIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...java.sql.SQLException
- if a database access error occurs.