public class LensJdbcResultSet extends Object implements ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
Constructor and Description |
---|
LensJdbcResultSet(QueryResult result,
QueryResultSetMetadata metadata,
LensJdbcStatement statement)
Instantiates a new lens jdbc result set.
|
public LensJdbcResultSet(QueryResult result, QueryResultSetMetadata metadata, LensJdbcStatement statement)
result
- the resultmetadata
- the metadatastatement
- the statementpublic boolean next() throws SQLException
next
in interface ResultSet
SQLException
public void close() throws SQLException
close
in interface AutoCloseable
close
in interface ResultSet
SQLException
public boolean wasNull() throws SQLException
wasNull
in interface ResultSet
SQLException
public String getString(int i) throws SQLException
getString
in interface ResultSet
SQLException
public String getString(String colName) throws SQLException
getString
in interface ResultSet
SQLException
public boolean getBoolean(int i) throws SQLException
getBoolean
in interface ResultSet
SQLException
public boolean getBoolean(String colName) throws SQLException
getBoolean
in interface ResultSet
SQLException
public byte getByte(int i) throws SQLException
getByte
in interface ResultSet
SQLException
public byte getByte(String colName) throws SQLException
getByte
in interface ResultSet
SQLException
public short getShort(int i) throws SQLException
getShort
in interface ResultSet
SQLException
public short getShort(String colName) throws SQLException
getShort
in interface ResultSet
SQLException
public int getInt(int i) throws SQLException
getInt
in interface ResultSet
SQLException
public int getInt(String colName) throws SQLException
getInt
in interface ResultSet
SQLException
public long getLong(int i) throws SQLException
getLong
in interface ResultSet
SQLException
public long getLong(String colName) throws SQLException
getLong
in interface ResultSet
SQLException
public float getFloat(int i) throws SQLException
getFloat
in interface ResultSet
SQLException
public float getFloat(String colName) throws SQLException
getFloat
in interface ResultSet
SQLException
public double getDouble(int i) throws SQLException
getDouble
in interface ResultSet
SQLException
public double getDouble(String colName) throws SQLException
getDouble
in interface ResultSet
SQLException
public byte[] getBytes(int i) throws SQLException
getBytes
in interface ResultSet
SQLException
public byte[] getBytes(String s) throws SQLException
getBytes
in interface ResultSet
SQLException
public Date getDate(int i) throws SQLException
getDate
in interface ResultSet
SQLException
public Date getDate(String colName) throws SQLException
getDate
in interface ResultSet
SQLException
public Timestamp getTimestamp(int i) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public Timestamp getTimestamp(String colName) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public ResultSetMetaData getMetaData() throws SQLException
getMetaData
in interface ResultSet
SQLException
public Object getObject(int index) throws SQLException
getObject
in interface ResultSet
SQLException
public Object getObject(String colName) throws SQLException
getObject
in interface ResultSet
SQLException
public int findColumn(String colName) throws SQLException
findColumn
in interface ResultSet
SQLException
public SQLWarning getWarnings() throws SQLException
getWarnings
in interface ResultSet
SQLException
public void clearWarnings() throws SQLException
clearWarnings
in interface ResultSet
SQLException
public int getFetchDirection() throws SQLException
getFetchDirection
in interface ResultSet
SQLException
public int getType() throws SQLException
getType
in interface ResultSet
SQLException
public int getConcurrency() throws SQLException
getConcurrency
in interface ResultSet
SQLException
public Statement getStatement() throws SQLException
getStatement
in interface ResultSet
SQLException
public boolean isClosed() throws SQLException
isClosed
in interface ResultSet
SQLException
public Time getTime(int i) throws SQLException
getTime
in interface ResultSet
SQLException
public Time getTime(String s) throws SQLException
getTime
in interface ResultSet
SQLException
public InputStream getAsciiStream(int i) throws SQLException
getAsciiStream
in interface ResultSet
SQLException
public InputStream getUnicodeStream(int i) throws SQLException
getUnicodeStream
in interface ResultSet
SQLException
public InputStream getBinaryStream(int i) throws SQLException
getBinaryStream
in interface ResultSet
SQLException
public BigDecimal getBigDecimal(int i, int scale) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
public BigDecimal getBigDecimal(String s, int i) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
public BigDecimal getBigDecimal(String s) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
public BigDecimal getBigDecimal(int i) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
public InputStream getAsciiStream(String s) throws SQLException
getAsciiStream
in interface ResultSet
SQLException
public InputStream getUnicodeStream(String s) throws SQLException
getUnicodeStream
in interface ResultSet
SQLException
public InputStream getBinaryStream(String s) throws SQLException
getBinaryStream
in interface ResultSet
SQLException
public String getCursorName() throws SQLException
getCursorName
in interface ResultSet
SQLException
public Reader getCharacterStream(int i) throws SQLException
getCharacterStream
in interface ResultSet
SQLException
public Reader getCharacterStream(String s) throws SQLException
getCharacterStream
in interface ResultSet
SQLException
public boolean isBeforeFirst() throws SQLException
isBeforeFirst
in interface ResultSet
SQLException
public boolean isAfterLast() throws SQLException
isAfterLast
in interface ResultSet
SQLException
public boolean isFirst() throws SQLException
isFirst
in interface ResultSet
SQLException
public boolean isLast() throws SQLException
isLast
in interface ResultSet
SQLException
public void beforeFirst() throws SQLException
beforeFirst
in interface ResultSet
SQLException
public void afterLast() throws SQLException
afterLast
in interface ResultSet
SQLException
public boolean first() throws SQLException
first
in interface ResultSet
SQLException
public boolean last() throws SQLException
last
in interface ResultSet
SQLException
public int getRow() throws SQLException
getRow
in interface ResultSet
SQLException
public boolean absolute(int i) throws SQLException
absolute
in interface ResultSet
SQLException
public boolean relative(int i) throws SQLException
relative
in interface ResultSet
SQLException
public boolean previous() throws SQLException
previous
in interface ResultSet
SQLException
public void setFetchDirection(int i) throws SQLException
setFetchDirection
in interface ResultSet
SQLException
public int getFetchSize() throws SQLException
getFetchSize
in interface ResultSet
SQLException
public void setFetchSize(int i) throws SQLException
setFetchSize
in interface ResultSet
SQLException
public boolean rowUpdated() throws SQLException
rowUpdated
in interface ResultSet
SQLException
public boolean rowInserted() throws SQLException
rowInserted
in interface ResultSet
SQLException
public boolean rowDeleted() throws SQLException
rowDeleted
in interface ResultSet
SQLException
public void updateNull(int i) throws SQLException
updateNull
in interface ResultSet
SQLException
public void updateBoolean(int i, boolean b) throws SQLException
updateBoolean
in interface ResultSet
SQLException
public void updateByte(int i, byte b) throws SQLException
updateByte
in interface ResultSet
SQLException
public void updateShort(int i, short i2) throws SQLException
updateShort
in interface ResultSet
SQLException
public void updateInt(int i, int i2) throws SQLException
updateInt
in interface ResultSet
SQLException
public void updateLong(int i, long l) throws SQLException
updateLong
in interface ResultSet
SQLException
public void updateFloat(int i, float v) throws SQLException
updateFloat
in interface ResultSet
SQLException
public void updateDouble(int i, double v) throws SQLException
updateDouble
in interface ResultSet
SQLException
public void updateBigDecimal(int i, BigDecimal bigDecimal) throws SQLException
updateBigDecimal
in interface ResultSet
SQLException
public void updateString(int i, String s) throws SQLException
updateString
in interface ResultSet
SQLException
public void updateBytes(int i, byte[] bytes) throws SQLException
updateBytes
in interface ResultSet
SQLException
public void updateDate(int i, Date date) throws SQLException
updateDate
in interface ResultSet
SQLException
public void updateTime(int i, Time time) throws SQLException
updateTime
in interface ResultSet
SQLException
public void updateTimestamp(int i, Timestamp timestamp) throws SQLException
updateTimestamp
in interface ResultSet
SQLException
public void updateAsciiStream(int i, InputStream inputStream, int i2) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateBinaryStream(int i, InputStream inputStream, int i2) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateCharacterStream(int i, Reader reader, int i2) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateObject(int i, Object o, int i2) throws SQLException
updateObject
in interface ResultSet
SQLException
public void updateObject(int i, Object o) throws SQLException
updateObject
in interface ResultSet
SQLException
public void updateNull(String s) throws SQLException
updateNull
in interface ResultSet
SQLException
public void updateBoolean(String s, boolean b) throws SQLException
updateBoolean
in interface ResultSet
SQLException
public void updateByte(String s, byte b) throws SQLException
updateByte
in interface ResultSet
SQLException
public void updateShort(String s, short i) throws SQLException
updateShort
in interface ResultSet
SQLException
public void updateInt(String s, int i) throws SQLException
updateInt
in interface ResultSet
SQLException
public void updateLong(String s, long l) throws SQLException
updateLong
in interface ResultSet
SQLException
public void updateFloat(String s, float v) throws SQLException
updateFloat
in interface ResultSet
SQLException
public void updateDouble(String s, double v) throws SQLException
updateDouble
in interface ResultSet
SQLException
public void updateBigDecimal(String s, BigDecimal bigDecimal) throws SQLException
updateBigDecimal
in interface ResultSet
SQLException
public void updateString(String s, String s2) throws SQLException
updateString
in interface ResultSet
SQLException
public void updateBytes(String s, byte[] bytes) throws SQLException
updateBytes
in interface ResultSet
SQLException
public void updateDate(String s, Date date) throws SQLException
updateDate
in interface ResultSet
SQLException
public void updateTime(String s, Time time) throws SQLException
updateTime
in interface ResultSet
SQLException
public void updateTimestamp(String s, Timestamp timestamp) throws SQLException
updateTimestamp
in interface ResultSet
SQLException
public void updateAsciiStream(String s, InputStream inputStream, int i) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateBinaryStream(String s, InputStream inputStream, int i) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateCharacterStream(String s, Reader reader, int i) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateObject(String s, Object o, int i) throws SQLException
updateObject
in interface ResultSet
SQLException
public void updateObject(String s, Object o) throws SQLException
updateObject
in interface ResultSet
SQLException
public void insertRow() throws SQLException
insertRow
in interface ResultSet
SQLException
public void updateRow() throws SQLException
updateRow
in interface ResultSet
SQLException
public void deleteRow() throws SQLException
deleteRow
in interface ResultSet
SQLException
public void refreshRow() throws SQLException
refreshRow
in interface ResultSet
SQLException
public void cancelRowUpdates() throws SQLException
cancelRowUpdates
in interface ResultSet
SQLException
public void moveToInsertRow() throws SQLException
moveToInsertRow
in interface ResultSet
SQLException
public void moveToCurrentRow() throws SQLException
moveToCurrentRow
in interface ResultSet
SQLException
public Object getObject(int i, Map<String,Class<?>> stringClassMap) throws SQLException
getObject
in interface ResultSet
SQLException
public Ref getRef(int i) throws SQLException
getRef
in interface ResultSet
SQLException
public Blob getBlob(int i) throws SQLException
getBlob
in interface ResultSet
SQLException
public Clob getClob(int i) throws SQLException
getClob
in interface ResultSet
SQLException
public Array getArray(int i) throws SQLException
getArray
in interface ResultSet
SQLException
public Object getObject(String s, Map<String,Class<?>> stringClassMap) throws SQLException
getObject
in interface ResultSet
SQLException
public Ref getRef(String s) throws SQLException
getRef
in interface ResultSet
SQLException
public Blob getBlob(String s) throws SQLException
getBlob
in interface ResultSet
SQLException
public Clob getClob(String s) throws SQLException
getClob
in interface ResultSet
SQLException
public Array getArray(String s) throws SQLException
getArray
in interface ResultSet
SQLException
public Date getDate(int i, Calendar calendar) throws SQLException
getDate
in interface ResultSet
SQLException
public Date getDate(String s, Calendar calendar) throws SQLException
getDate
in interface ResultSet
SQLException
public Time getTime(int i, Calendar calendar) throws SQLException
getTime
in interface ResultSet
SQLException
public Time getTime(String s, Calendar calendar) throws SQLException
getTime
in interface ResultSet
SQLException
public Timestamp getTimestamp(int i, Calendar calendar) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public Timestamp getTimestamp(String s, Calendar calendar) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public URL getURL(int i) throws SQLException
getURL
in interface ResultSet
SQLException
public URL getURL(String s) throws SQLException
getURL
in interface ResultSet
SQLException
public void updateRef(int i, Ref ref) throws SQLException
updateRef
in interface ResultSet
SQLException
public void updateRef(String s, Ref ref) throws SQLException
updateRef
in interface ResultSet
SQLException
public void updateBlob(int i, Blob blob) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateBlob(String s, Blob blob) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateClob(int i, Clob clob) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateClob(String s, Clob clob) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateArray(int i, Array array) throws SQLException
updateArray
in interface ResultSet
SQLException
public void updateArray(String s, Array array) throws SQLException
updateArray
in interface ResultSet
SQLException
public RowId getRowId(int i) throws SQLException
getRowId
in interface ResultSet
SQLException
public RowId getRowId(String s) throws SQLException
getRowId
in interface ResultSet
SQLException
public void updateRowId(int i, RowId rowId) throws SQLException
updateRowId
in interface ResultSet
SQLException
public void updateRowId(String s, RowId rowId) throws SQLException
updateRowId
in interface ResultSet
SQLException
public int getHoldability() throws SQLException
getHoldability
in interface ResultSet
SQLException
public void updateNString(int i, String s) throws SQLException
updateNString
in interface ResultSet
SQLException
public void updateNString(String s, String s2) throws SQLException
updateNString
in interface ResultSet
SQLException
public void updateNClob(int i, NClob nClob) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNClob(String s, NClob nClob) throws SQLException
updateNClob
in interface ResultSet
SQLException
public NClob getNClob(int i) throws SQLException
getNClob
in interface ResultSet
SQLException
public NClob getNClob(String s) throws SQLException
getNClob
in interface ResultSet
SQLException
public SQLXML getSQLXML(int i) throws SQLException
getSQLXML
in interface ResultSet
SQLException
public SQLXML getSQLXML(String s) throws SQLException
getSQLXML
in interface ResultSet
SQLException
public void updateSQLXML(int i, SQLXML sqlxml) throws SQLException
updateSQLXML
in interface ResultSet
SQLException
public void updateSQLXML(String s, SQLXML sqlxml) throws SQLException
updateSQLXML
in interface ResultSet
SQLException
public String getNString(int i) throws SQLException
getNString
in interface ResultSet
SQLException
public String getNString(String s) throws SQLException
getNString
in interface ResultSet
SQLException
public Reader getNCharacterStream(int i) throws SQLException
getNCharacterStream
in interface ResultSet
SQLException
public Reader getNCharacterStream(String s) throws SQLException
getNCharacterStream
in interface ResultSet
SQLException
public void updateNCharacterStream(int i, Reader reader, long l) throws SQLException
updateNCharacterStream
in interface ResultSet
SQLException
public void updateNCharacterStream(String s, Reader reader, long l) throws SQLException
updateNCharacterStream
in interface ResultSet
SQLException
public void updateAsciiStream(int i, InputStream inputStream, long l) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateBinaryStream(int i, InputStream inputStream, long l) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateCharacterStream(int i, Reader reader, long l) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateAsciiStream(String s, InputStream inputStream, long l) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateBinaryStream(String s, InputStream inputStream, long l) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateCharacterStream(String s, Reader reader, long l) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateBlob(int i, InputStream inputStream, long l) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateBlob(String s, InputStream inputStream, long l) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateClob(int i, Reader reader, long l) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateClob(String s, Reader reader, long l) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateNClob(int i, Reader reader, long l) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNClob(String s, Reader reader, long l) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNCharacterStream(int i, Reader reader) throws SQLException
updateNCharacterStream
in interface ResultSet
SQLException
public void updateNCharacterStream(String s, Reader reader) throws SQLException
updateNCharacterStream
in interface ResultSet
SQLException
public void updateAsciiStream(int i, InputStream inputStream) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateBinaryStream(int i, InputStream inputStream) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateCharacterStream(int i, Reader reader) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateAsciiStream(String s, InputStream inputStream) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateBinaryStream(String s, InputStream inputStream) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateCharacterStream(String s, Reader reader) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateBlob(int i, InputStream inputStream) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateBlob(String s, InputStream inputStream) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateClob(int i, Reader reader) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateClob(String s, Reader reader) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateNClob(int i, Reader reader) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNClob(String s, Reader reader) throws SQLException
updateNClob
in interface ResultSet
SQLException
public <T> T getObject(int columnIndex, Class<T> type) throws SQLException
getObject
in interface ResultSet
T
- the generic typecolumnIndex
- the column indextype
- the typeSQLException
- the SQL exceptionpublic <T> T getObject(String columnLabel, Class<T> type) throws SQLException
getObject
in interface ResultSet
T
- the generic typecolumnLabel
- the column labeltype
- the typeSQLException
- the SQL exceptionpublic <T> T unwrap(Class<T> tClass) throws SQLException
unwrap
in interface Wrapper
SQLException
public boolean isWrapperFor(Class<?> aClass) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.