|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.oda.consumer.helper.OdaObject
org.eclipse.datatools.connectivity.oda.consumer.helper.OdaDriverObject
org.eclipse.datatools.connectivity.oda.consumer.helper.OdaResultSet
OdaResultSet is the Oda wrapper for result sets.
Method Summary | |
void |
close()
Closes the cursor associated with this IResultSet. |
java.lang.Object |
findAndInvokeMethod(java.lang.String methodName,
java.lang.Class[] parameterTypes,
java.lang.Object[] args)
|
int |
findColumn(java.lang.String columnName)
Returns the column index of the specified column name. |
java.math.BigDecimal |
getBigDecimal(int index)
Gets the value of the designated column in the current row as a decimal. |
java.math.BigDecimal |
getBigDecimal(java.lang.String columnName)
Gets the value of the designated column in the current row as a decimal. |
java.lang.String |
getBigDecimalAsString(int index)
|
java.lang.String |
getBigDecimalAsString(java.lang.String columnName)
|
IBlob |
getBlob(int index)
Gets the value of the designated column in the current row as an IBlob object. |
IBlob |
getBlob(java.lang.String columnName)
Gets the value of the designated column in the current row as an IBlob object. |
IClob |
getClob(int index)
Gets the value of the designated column in the current row as an IClob object. |
IClob |
getClob(java.lang.String columnName)
Gets the value of the designated column in the current row as an IClob object. |
java.sql.Date |
getDate(int index)
Gets the value of the designated column in the current row as a java.sql.Date. |
java.sql.Date |
getDate(java.lang.String columnName)
Gets the value of the designated column in the current row as a java.sql.Date. |
java.lang.String |
getDateAsString(int index)
|
java.lang.String |
getDateAsString(java.lang.String columnName)
|
double |
getDouble(int index)
Gets the value of the designated column in the current row as a double. |
double |
getDouble(java.lang.String columnName)
Gets the value of the designated column in the current row as a double. |
int |
getInt(int index)
Gets the value of the designated column in the current row as an int. |
int |
getInt(java.lang.String columnName)
Gets the value of the designated column in the current row as an int. |
java.lang.String |
getInterfaceName()
|
IResultSetMetaData |
getMetaData()
Returns the metadata associated with this IResultSet. |
int |
getRow()
Returns the current row's 1-based index position. |
java.lang.String |
getString(int index)
Gets the value of the designated column in the current row as a String. |
java.lang.String |
getString(java.lang.String columnName)
Gets the value of the designated column in the current row as a String. |
java.sql.Time |
getTime(int index)
Gets the value of the designated column in the current row as a java.sql.Time. |
java.sql.Time |
getTime(java.lang.String columnName)
Gets the value of the designated column in the current row as a java.sql.Time. |
java.lang.String |
getTimeAsString(int index)
|
java.lang.String |
getTimeAsString(java.lang.String columnName)
|
java.sql.Timestamp |
getTimestamp(int index)
Gets the value of the designated column in the current row as a java.sql.Timestamp. |
java.sql.Timestamp |
getTimestamp(java.lang.String columnName)
Gets the value of the designated column in the current row as a java.sql.Timestamp. |
java.lang.String |
getTimestampAsString(int index)
|
java.lang.String |
getTimestampAsString(java.lang.String columnName)
|
boolean |
next()
Moves the cursor down one row from its current position. |
void |
setMaxRows(int max)
Specifies the maximum number of rows that can be fetched from this result set. |
static void |
setThrowAndSetOdaException()
|
boolean |
wasNull()
Returns whether the value read from the previous get<type> method was invalid or null. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public IResultSetMetaData getMetaData() throws OdaException
IResultSet
getMetaData
in interface IResultSet
OdaException
- if data source error occurspublic void close() throws OdaException
IResultSet
close
in interface IResultSet
OdaException
- if data source error occurspublic void setMaxRows(int max) throws OdaException
IResultSet
setMaxRows
in interface IResultSet
max
- maximum number of rows that can be fetched from this IResultSet;
zero means there is no limit.
This value should not be greater than the maximum number of rows
specified in the related IQuery.
OdaException
- if data source error occurspublic boolean next() throws OdaException
IResultSet
next
in interface IResultSet
OdaException
- if data source error occurspublic int getRow() throws OdaException
IResultSet
getRow
in interface IResultSet
OdaException
- if data source error occurspublic java.lang.String getString(int index) throws OdaException
IResultSet
getString
in interface IResultSet
index
- column number (1-based)
OdaException
- if data source error occurspublic java.lang.String getString(java.lang.String columnName) throws OdaException
IResultSet
getString
in interface IResultSet
columnName
- column name
OdaException
- if data source error occurs.public int getInt(int index) throws OdaException
IResultSet
getInt
in interface IResultSet
index
- column number (1-based)
OdaException
- if data source error occurspublic int getInt(java.lang.String columnName) throws OdaException
IResultSet
getInt
in interface IResultSet
columnName
- column name
OdaException
- if data source error occurspublic double getDouble(int index) throws OdaException
IResultSet
getDouble
in interface IResultSet
index
- column number (1-based)
OdaException
- if data source error occurspublic double getDouble(java.lang.String columnName) throws OdaException
IResultSet
getDouble
in interface IResultSet
columnName
- column name
OdaException
- if data source error occurspublic java.math.BigDecimal getBigDecimal(int index) throws OdaException
IResultSet
getBigDecimal
in interface IResultSet
index
- column number (1-based)
OdaException
- if data source error occurspublic java.math.BigDecimal getBigDecimal(java.lang.String columnName) throws OdaException
IResultSet
getBigDecimal
in interface IResultSet
columnName
- column name
OdaException
- if data source error occurspublic java.sql.Date getDate(int index) throws OdaException
IResultSet
getDate
in interface IResultSet
index
- column number (1-based)
OdaException
- if data source error occurspublic java.sql.Date getDate(java.lang.String columnName) throws OdaException
IResultSet
getDate
in interface IResultSet
columnName
- column name
OdaException
- if data source error occurspublic java.sql.Time getTime(int index) throws OdaException
IResultSet
getTime
in interface IResultSet
index
- column number (1-based)
OdaException
- if data source error occurspublic java.sql.Time getTime(java.lang.String columnName) throws OdaException
IResultSet
getTime
in interface IResultSet
columnName
- column name
OdaException
- if data source error occurspublic java.sql.Timestamp getTimestamp(int index) throws OdaException
IResultSet
getTimestamp
in interface IResultSet
index
- column number (1-based)
OdaException
- if data source error occurspublic java.sql.Timestamp getTimestamp(java.lang.String columnName) throws OdaException
IResultSet
getTimestamp
in interface IResultSet
columnName
- column name
OdaException
- if data source error occurspublic IBlob getBlob(int index) throws OdaException
IResultSet
Note: The driver must guarantee that the returned object and its BLOB data would remain valid and accessible until this result set is closed.
getBlob
in interface IResultSet
index
- column number (1-based)
null
if the specific column has null value
OdaException
- if data source error occurspublic IBlob getBlob(java.lang.String columnName) throws OdaException
IResultSet
Note: The driver must guarantee that the returned object and its BLOB data would remain valid and accessible until this result set is closed.
getBlob
in interface IResultSet
columnName
- column name
null
if the specific column has null value
OdaException
- if data source error occurspublic IClob getClob(int index) throws OdaException
IResultSet
Note: The driver must guarantee that the returned object and its CLOB data would remain valid and accessible until this result set is closed.
getClob
in interface IResultSet
index
- column number (1-based)
null
if the specific column has null value
OdaException
- if data source error occurspublic IClob getClob(java.lang.String columnName) throws OdaException
IResultSet
Note: The driver must guarantee that the returned object and its CLOB data would remain valid and accessible until this result set is closed.
getClob
in interface IResultSet
columnName
- column name
null
if the specific column has null value
OdaException
- if data source error occurspublic boolean wasNull() throws OdaException
IResultSet
wasNull
in interface IResultSet
OdaException
- if data source error occurspublic int findColumn(java.lang.String columnName) throws OdaException
IResultSet
findColumn
in interface IResultSet
columnName
- name of the column
OdaException
- if data source error occurspublic java.lang.String getBigDecimalAsString(int index) throws OdaException
OdaException
public java.lang.String getBigDecimalAsString(java.lang.String columnName) throws OdaException
OdaException
public java.lang.String getDateAsString(int index) throws OdaException
OdaException
public java.lang.String getDateAsString(java.lang.String columnName) throws OdaException
OdaException
public java.lang.String getTimeAsString(int index) throws OdaException
OdaException
public java.lang.String getTimeAsString(java.lang.String columnName) throws OdaException
OdaException
public java.lang.String getTimestampAsString(int index) throws OdaException
OdaException
public java.lang.String getTimestampAsString(java.lang.String columnName) throws OdaException
OdaException
public java.lang.String getInterfaceName()
public static void setThrowAndSetOdaException()
public java.lang.Object findAndInvokeMethod(java.lang.String methodName, java.lang.Class[] parameterTypes, java.lang.Object[] args) throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, OdaException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
OdaException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |