- java.lang.Object
-
- org.postgresql.pljava.jdbc.AbstractResultSet
-
- org.postgresql.pljava.jdbc.ObjectResultSet
-
- org.postgresql.pljava.jdbc.ReadOnlyResultSet
-
- org.postgresql.pljava.jdbc.ResultSetBase
-
- org.postgresql.pljava.jdbc.SyntheticResultSet
-
- All Implemented Interfaces:
AutoCloseable
,ResultSet
,Wrapper
public class SyntheticResultSet extends ResultSetBase
A Synthetic ResultSet that provides direct access to data stored in aArrayList
; chiefly used to return tabular information from...MetaData
objects. This kind of ResultSet has nothing common with any statement.- Author:
- Filip Hrbek
-
-
Field Summary
-
Fields inherited from interface java.sql.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
-
-
Method Summary
Modifier and Type Method Description void
close()
int
findColumn(String columnName)
protected Object[]
getCurrentRow()
ResultSetMetaData
getMetaData()
Returns metadata describing thisSyntheticResultSet
, based on theResultSetField
s supplied to the constructor.protected Object
getObjectValue(int columnIndex, Class<?> type)
Returns exactly the object that was supplied atcolumnIndex
(less one) in the current row.boolean
isLast()
boolean
next()
-
Methods inherited from class org.postgresql.pljava.jdbc.ResultSetBase
absolute, afterLast, beforeFirst, first, getFetchDirection, getFetchSize, getHoldability, getRow, getType, isAfterLast, isBeforeFirst, isClosed, isFirst, last, previous, relative, setFetchDirection, setFetchSize
-
Methods inherited from class org.postgresql.pljava.jdbc.ReadOnlyResultSet
cancelRowUpdates, deleteRow, getConcurrency, insertRow, moveToCurrentRow, moveToInsertRow, rowDeleted, rowInserted, rowUpdated, updateObject, updateObject, updateRow
-
Methods inherited from class org.postgresql.pljava.jdbc.ObjectResultSet
clearWarnings, getArray, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getClob, getDate, getDate, getDouble, getFloat, getInt, getLong, getNumber, getObject, getObject, getObject, getObjectValue, getObjectValue, getRef, getShort, getString, getTime, getTime, getTimestamp, getTimestamp, getUnicodeStream, getURL, getValue, getValue, getWarnings, refreshRow, updateArray, updateAsciiStream, updateBigDecimal, updateBinaryStream, updateBlob, updateBoolean, updateByte, updateBytes, updateCharacterStream, updateClob, updateDate, updateDouble, updateFloat, updateInt, updateLong, updateNull, updateRef, updateShort, updateString, updateTime, updateTimestamp, wasNull
-
Methods inherited from class org.postgresql.pljava.jdbc.AbstractResultSet
getArray, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getClob, getCursorName, getDate, getDate, getDouble, getFloat, getInt, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getRef, getRowId, getRowId, getShort, getSQLXML, getSQLXML, getStatement, getString, getTime, getTime, getTimestamp, getTimestamp, getUnicodeStream, getURL, isWrapperFor, unwrap, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateByte, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDouble, updateFloat, updateInt, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateObject, updateObject, updateRef, updateRowId, updateRowId, updateShort, updateSQLXML, updateSQLXML, updateString, updateTime, updateTimestamp
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.sql.ResultSet
updateObject, updateObject, updateObject, updateObject
-
-
-
-
Method Detail
-
close
public void close() throws SQLException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceResultSet
- Overrides:
close
in classResultSetBase
- Throws:
SQLException
-
findColumn
public int findColumn(String columnName) throws SQLException
- Throws:
SQLException
-
getObjectValue
protected Object getObjectValue(int columnIndex, Class<?> type) throws SQLException
Returns exactly the object that was supplied atcolumnIndex
(less one) in the current row.Ignores the
type
argument and returns whatever object is there. If it is not what the caller needed, let the caller complain.- Specified by:
getObjectValue
in classObjectResultSet
- Throws:
SQLException
-
getCurrentRow
protected final Object[] getCurrentRow() throws SQLException
- Throws:
SQLException
-
isLast
public boolean isLast() throws SQLException
- Throws:
SQLException
-
next
public boolean next() throws SQLException
- Throws:
SQLException
-
getMetaData
public ResultSetMetaData getMetaData() throws SQLException
Returns metadata describing thisSyntheticResultSet
, based on theResultSetField
s supplied to the constructor.- Specified by:
getMetaData
in interfaceResultSet
- Overrides:
getMetaData
in classObjectResultSet
- Throws:
SQLException
- indicating that this feature is not supported.
-
-