public abstract class ResultSetProxy
extends java.lang.Object
ResultSet
that exposes the bare minimal primitives. Used to enforce the policy toward the use of a ResultSet
, currently
either
ResultSetCacheAsStream
,
ResultSetDirectAccess
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
FAILED_RETR_MSG |
protected java.sql.ResultSetMetaData |
metaData |
protected java.sql.ResultSet |
rs |
Constructor and Description |
---|
ResultSetProxy(java.sql.ResultSet rs,
java.sql.ResultSetMetaData metaData) |
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getBigDecimal(ColumnMapping mapping) |
java.math.BigDecimal |
getBigDecimal(int index) |
java.sql.Blob |
getBlob(ColumnMapping mapping) |
java.sql.Blob |
getBlob(int index) |
byte[] |
getBytes(ColumnMapping mapping) |
byte[] |
getBytes(int index) |
java.sql.Clob |
getClob(ColumnMapping mapping) |
java.sql.Clob |
getClob(int index) |
double |
getDouble(ColumnMapping mapping) |
double |
getDouble(int index) |
long |
getLong(ColumnMapping mapping) |
long |
getLong(int index) |
java.lang.String |
getString(ColumnMapping mapping) |
java.lang.String |
getString(int index) |
java.lang.String |
getString(java.lang.String columnName) |
java.sql.Timestamp |
getTimestamp(ColumnMapping mapping) |
java.sql.Timestamp |
getTimestamp(int index) |
protected abstract java.lang.Object |
getValue(int sqlIndex)
Returns the value of the current row for the given index.
|
protected static final java.lang.String FAILED_RETR_MSG
protected final java.sql.ResultSet rs
protected final java.sql.ResultSetMetaData metaData
public ResultSetProxy(java.sql.ResultSet rs, java.sql.ResultSetMetaData metaData) throws java.sql.SQLException
java.sql.SQLException
protected abstract java.lang.Object getValue(int sqlIndex) throws java.sql.SQLException
null
sqlIndex
- The index of the column. Starts at 1.null
if the column's value is NULLjava.sql.SQLException
public java.sql.Clob getClob(ColumnMapping mapping) throws java.sql.SQLException
java.sql.SQLException
public java.sql.Clob getClob(int index) throws java.sql.SQLException
java.sql.SQLException
public double getDouble(ColumnMapping mapping) throws java.sql.SQLException
java.sql.SQLException
public double getDouble(int index) throws java.sql.SQLException
java.sql.SQLException
public long getLong(ColumnMapping mapping) throws java.sql.SQLException
java.sql.SQLException
public long getLong(int index) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getString(ColumnMapping mapping) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getString(int index) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getString(java.lang.String columnName) throws java.sql.SQLException
java.sql.SQLException
public byte[] getBytes(ColumnMapping mapping) throws java.sql.SQLException
java.sql.SQLException
public byte[] getBytes(int index) throws java.sql.SQLException
java.sql.SQLException
public java.sql.Blob getBlob(ColumnMapping mapping) throws java.sql.SQLException
java.sql.SQLException
public java.sql.Blob getBlob(int index) throws java.sql.SQLException
java.sql.SQLException
public java.math.BigDecimal getBigDecimal(ColumnMapping mapping) throws java.sql.SQLException
java.sql.SQLException
public java.math.BigDecimal getBigDecimal(int index) throws java.sql.SQLException
java.sql.SQLException
public java.sql.Timestamp getTimestamp(ColumnMapping mapping) throws java.sql.SQLException
java.sql.SQLException
public java.sql.Timestamp getTimestamp(int index) throws java.sql.SQLException
java.sql.SQLException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.