- java.lang.Object
-
- org.postgresql.pljava.jdbc.AbstractResultSet
-
- org.postgresql.pljava.jdbc.ObjectResultSet
-
- org.postgresql.pljava.jdbc.ReadOnlyResultSet
-
- org.postgresql.pljava.jdbc.ResultSetBase
-
- All Implemented Interfaces:
AutoCloseable
,ResultSet
,Wrapper
- Direct Known Subclasses:
SPIResultSet
,SyntheticResultSet
public abstract class ResultSetBase extends ReadOnlyResultSet
Provides methods that are common both for a SyntheticResultSet (which is not associated with a statement) and SPIResultSet.- 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 boolean
absolute(int row)
Cursor positioning is not implemented yet.void
afterLast()
Cursor positioning is not implemented yet.void
beforeFirst()
Cursor positioning is not implemented yet.void
close()
boolean
first()
Cursor positioning is not implemented yet.int
getFetchDirection()
Always returnsResultSet.FETCH_FORWARD
if not overridden.int
getFetchSize()
Returns the fetch size set by the constructor or withsetFetchSize(int)
.int
getHoldability()
ReturnsResultSet.CLOSE_CURSORS_AT_COMMIT
.int
getRow()
Returns the row set by the constructor or withsetRow(int)
.int
getType()
Always returnsResultSet.TYPE_FORWARD_ONLY
if not overridden.boolean
isAfterLast()
boolean
isBeforeFirst()
boolean
isClosed()
boolean
isFirst()
boolean
last()
Cursor positioning is not implemented yet.boolean
previous()
Reverse positioning is not implemented yet.boolean
relative(int rows)
Cursor positioning is not implemented yet.void
setFetchDirection(int direction)
OnlyResultSet.FETCH_FORWARD
is supported.void
setFetchSize(int fetchSize)
Sets the fetch size maintained in this class.-
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, getMetaData, getNumber, getObject, getObject, getObject, getObjectValue, 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
findColumn, isLast, next, updateObject, updateObject, updateObject, updateObject
-
-
-
-
Method Detail
-
getFetchDirection
public int getFetchDirection() throws SQLException
Always returnsResultSet.FETCH_FORWARD
if not overridden.- Throws:
SQLException
-
getFetchSize
public final int getFetchSize() throws SQLException
Returns the fetch size set by the constructor or withsetFetchSize(int)
.- Throws:
SQLException
-
getRow
public final int getRow() throws SQLException
Returns the row set by the constructor or withsetRow(int)
.- Throws:
SQLException
-
getType
public int getType() throws SQLException
Always returnsResultSet.TYPE_FORWARD_ONLY
if not overridden.- Throws:
SQLException
-
afterLast
public void afterLast() throws SQLException
Cursor positioning is not implemented yet.- Throws:
SQLException
- indicating that this feature is not supported.
-
beforeFirst
public void beforeFirst() throws SQLException
Cursor positioning is not implemented yet.- Throws:
SQLException
- indicating that this feature is not supported.
-
close
public void close() throws SQLException
- Throws:
SQLException
-
first
public boolean first() throws SQLException
Cursor positioning is not implemented yet.- Throws:
SQLException
- indicating that this feature is not supported.
-
isAfterLast
public boolean isAfterLast() throws SQLException
- Throws:
SQLException
-
isBeforeFirst
public boolean isBeforeFirst() throws SQLException
- Throws:
SQLException
-
isFirst
public boolean isFirst() throws SQLException
- Throws:
SQLException
-
last
public boolean last() throws SQLException
Cursor positioning is not implemented yet.- Throws:
SQLException
- indicating that this feature is not supported.
-
previous
public boolean previous() throws SQLException
Reverse positioning is not implemented yet.- Throws:
SQLException
- indicating that this feature is not supported.
-
absolute
public boolean absolute(int row) throws SQLException
Cursor positioning is not implemented yet.- Throws:
SQLException
- indicating that this feature is not supported.
-
relative
public boolean relative(int rows) throws SQLException
Cursor positioning is not implemented yet.- Throws:
SQLException
- indicating that this feature is not supported.
-
setFetchDirection
public void setFetchDirection(int direction) throws SQLException
OnlyResultSet.FETCH_FORWARD
is supported.- Throws:
SQLException
- indicating that this feature is not supported for other values ondirection
.
-
isClosed
public boolean isClosed() throws SQLException
- Throws:
SQLException
-
getHoldability
public int getHoldability() throws SQLException
ReturnsResultSet.CLOSE_CURSORS_AT_COMMIT
.- Throws:
SQLException
-
setFetchSize
public void setFetchSize(int fetchSize) throws SQLException
Sets the fetch size maintained in this class.- Throws:
SQLException
-
-