- java.lang.Object
-
- org.postgresql.pljava.jdbc.AbstractResultSet
-
- org.postgresql.pljava.jdbc.ObjectResultSet
-
- org.postgresql.pljava.jdbc.ReadOnlyResultSet
-
- All Implemented Interfaces:
AutoCloseable
,ResultSet
,Wrapper
- Direct Known Subclasses:
ResultSetBase
public abstract class ReadOnlyResultSet extends ObjectResultSet
Implements all methods that change the ResultSet in any way as methods that yield anUnsupportedFeatureException
.- Author:
- Thomas Hallgren
-
-
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
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyResultSet()
-
Method Summary
Modifier and Type Method Description void
cancelRowUpdates()
This feature is not supported on aReadOnlyResultSet
.void
deleteRow()
This feature is not supported on aReadOnlyResultSet
.int
getConcurrency()
ReturnsResultSet.CONCUR_READ_ONLY
.void
insertRow()
This feature is not supported on aReadOnlyResultSet
.void
moveToCurrentRow()
This is a no-op since themoveToInsertRow()
method is unsupported.void
moveToInsertRow()
This feature is not supported on aReadOnlyResultSet
.boolean
rowDeleted()
Always returns false.boolean
rowInserted()
Always returns false.boolean
rowUpdated()
Always returns false.void
updateObject(int columnIndex, Object x)
This feature is not supported on aReadOnlyResultSet
.void
updateObject(int columnIndex, Object x, int scale)
This feature is not supported on aReadOnlyResultSet
.void
updateRow()
This feature is not supported on aReadOnlyResultSet
.-
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
absolute, afterLast, beforeFirst, close, findColumn, first, getFetchDirection, getFetchSize, getHoldability, getRow, getType, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, last, next, previous, relative, setFetchDirection, setFetchSize, updateObject, updateObject, updateObject, updateObject
-
-
-
-
Method Detail
-
getConcurrency
public int getConcurrency() throws SQLException
ReturnsResultSet.CONCUR_READ_ONLY
.- Throws:
SQLException
-
cancelRowUpdates
public void cancelRowUpdates() throws SQLException
This feature is not supported on aReadOnlyResultSet
.- Throws:
SQLException
- indicating that this feature is not supported.
-
deleteRow
public void deleteRow() throws SQLException
This feature is not supported on aReadOnlyResultSet
.- Throws:
SQLException
- indicating that this feature is not supported.
-
insertRow
public void insertRow() throws SQLException
This feature is not supported on aReadOnlyResultSet
.- Throws:
SQLException
- indicating that this feature is not supported.
-
moveToCurrentRow
public void moveToCurrentRow() throws SQLException
This is a no-op since themoveToInsertRow()
method is unsupported.- Throws:
SQLException
-
moveToInsertRow
public void moveToInsertRow() throws SQLException
This feature is not supported on aReadOnlyResultSet
.- Throws:
SQLException
- indicating that this feature is not supported.
-
updateRow
public void updateRow() throws SQLException
This feature is not supported on aReadOnlyResultSet
.- Throws:
SQLException
- indicating that this feature is not supported.
-
rowDeleted
public boolean rowDeleted() throws SQLException
Always returns false.- Throws:
SQLException
-
rowInserted
public boolean rowInserted() throws SQLException
Always returns false.- Throws:
SQLException
-
rowUpdated
public boolean rowUpdated() throws SQLException
Always returns false.- Throws:
SQLException
-
updateObject
public void updateObject(int columnIndex, Object x) throws SQLException
This feature is not supported on aReadOnlyResultSet
.- Throws:
SQLException
- indicating that this feature is not supported.
-
updateObject
public void updateObject(int columnIndex, Object x, int scale) throws SQLException
This feature is not supported on aReadOnlyResultSet
.- Throws:
SQLException
- indicating that this feature is not supported.
-
-