Modifier and Type | Method and Description |
---|---|
OracleRow |
clone()
Creates and returns a persistent copy of this row.
|
<T> T |
getObject(int columnIndex,
Class<T> type)
Retrieves the value of the designated column
of this
OracleRow object and will convert from the
SQL type of the column to the requested Java data type, if the
conversion is supported. |
<T> T |
getObject(String columnLabel,
Class<T> type)
Retrieves the value of the designated column
of this
OracleRow object and will convert from the
SQL type of the column to the requested Java data type, if the
conversion is supported. |
<T> T getObject(int columnIndex, Class<T> type) throws SQLException
Retrieves the value of the designated column
of this OracleRow
object and will convert from the
SQL type of the column to the requested Java data type, if the
conversion is supported. If the conversion is not
supported or null is specified for the type, a
SQLException
is thrown.
At a minimum, an implementation must support the conversions defined in
Appendix B, Table B-3 and conversion of appropriate user defined SQL
types to a Java type which implements SQLData
, or Struct
.
Additional conversions may be supported and are vendor defined.
T
- the type of the class modeled by this Class objectcolumnIndex
- the first column is 1, the second is 2, ...type
- Class representing the Java data type to convert the
designated column to.type
holding the column valueSQLException
- if conversion is not supported, type is null or
another error occurs. The getCause() method of the
exception may provide a more detailed exception, for example, if
a conversion error occurs<T> T getObject(String columnLabel, Class<T> type) throws SQLException
Retrieves the value of the designated column
of this OracleRow
object and will convert from the
SQL type of the column to the requested Java data type, if the
conversion is supported. If the conversion is not
supported or null is specified for the type, a
SQLException
is thrown.
At a minimum, an implementation must support the conversions defined in
Appendix B, Table B-3 and conversion of appropriate user defined SQL
types to a Java type which implements SQLData
, or Struct
.
Additional conversions may be supported and are vendor defined.
T
- the type of the class modeled by this Class objectcolumnLabel
- the label for the column specified with the SQL AS
clause. If the SQL AS clause was not specified, then the label is the
name of the columntype
- Class representing the Java data type to convert the designated
column to.type
holding the column valueSQLException
- if conversion is not supported, type is null or
another error occurs. The getCause() method of the
exception may provide a more detailed exception, for example, if
a conversion error occursOracleRow clone()
Aside from the behavior stated here, OracleRow.clone()
does NOT
follow any typical conventions of Object.clone()
.