Package org.apache.derby.client.net
Class NetResultSet
java.lang.Object
org.apache.derby.client.am.ClientResultSet
org.apache.derby.client.net.NetResultSet
- All Implemented Interfaces:
AutoCloseable
,ResultSet
,Wrapper
,ResultSetCallbackInterface
,UnitOfWorkListener
- Direct Known Subclasses:
NetResultSet42
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
private boolean
private final NetAgent
private final NetConnection
(package private) final NetCursor
private final NetStatement
Fields inherited from class org.apache.derby.client.am.ClientResultSet
agent_, cursor_, cursorHold_, fetchSize_, generatedSection_, isRowsetCursor_, openOnServer_, queryInstanceIdentifier_, queryTerminatingSqlca_, resultSetMetaData_, resultSetType_, rowsetSqlca_, rowsReceivedInCurrentRowset_, rowsYetToBeReceivedForRowset_, scrollable_, scrollOrientation_absolute__, scrollOrientation_after__, scrollOrientation_before__, scrollOrientation_relative__, sensitivity_, sensitivity_insensitive__, sensitivity_sensitive_dynamic__, sensitivity_sensitive_static__, sensitivity_unknown__, statement_, suggestedFetchSize_
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
ConstructorsConstructorDescriptionNetResultSet
(NetAgent netAgent, NetStatement netStatement, Cursor cursor, int qryprctyp, int sqlcsrhld, int qryattscr, int qryattsns, int qryattset, long qryinsid, int actualResultSetType, int actualResultSetConcurrency, int actualResultSetHoldability) -
Method Summary
Modifier and TypeMethodDescription(package private) void
(package private) void
protected void
protected void
Method that is invoked bycloseX()
before the result set is actually being closed.void
void
void
void
void
setFetchSize_
(int rows) void
writeCursorClose_
(Section section) void
writeFetch_
(Section section) void
writePositioningFetch_
(Section section, int orientation, long rowToFetch) void
writeScrollableFetch_
(Section section, int fetchSize, int orientation, long rowToFetch, boolean resetQueryBlocks) Methods inherited from class org.apache.derby.client.am.ClientResultSet
absolute, accumulateWarning, afterLast, beforeFirst, cancelRowUpdates, checkAndThrowReceivedQueryTerminatingException, checkForClosedResultSet, clearWarnings, close, closeX, completeLocalCommit, completeLocalRollback, completeSqlca, deleteRow, earlyCloseComplete, expandRowsetSqlca, findColumn, findColumnX, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getConnectionCallbackInterface, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getRowCount, getRowId, getRowId, getRSReturnability, getShort, getShort, getSQLXML, getSQLXML, getStatement, getStatementCallbackInterface, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, isWrapperFor, last, listenToUnitOfWork, markClosedOnServer, markLOBAsPublished, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, setRowCountEvent, setRSReturnability, setValidCursorPosition, unwrap, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
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
-
Field Details
-
netConnection_
-
netStatement_
-
netCursor_
-
netAgent_
-
isFixedRowProtocol
private boolean isFixedRowProtocol -
firstOutovrBuilt_
boolean firstOutovrBuilt_
-
-
Constructor Details
-
NetResultSet
NetResultSet(NetAgent netAgent, NetStatement netStatement, Cursor cursor, int qryprctyp, int sqlcsrhld, int qryattscr, int qryattsns, int qryattset, long qryinsid, int actualResultSetType, int actualResultSetConcurrency, int actualResultSetHoldability)
-
-
Method Details
-
parseRowset_
- Specified by:
parseRowset_
in classClientResultSet
- Throws:
SqlException
-
setFetchSize_
public void setFetchSize_(int rows) - Specified by:
setFetchSize_
in classClientResultSet
-
flowFetchToCompleteRowset
- Throws:
DisconnectException
-
writeFetch_
- Specified by:
writeFetch_
in classClientResultSet
- Throws:
SqlException
-
readFetch_
- Specified by:
readFetch_
in classClientResultSet
- Throws:
SqlException
-
writeScrollableFetch_
public void writeScrollableFetch_(Section section, int fetchSize, int orientation, long rowToFetch, boolean resetQueryBlocks) throws SqlException - Specified by:
writeScrollableFetch_
in classClientResultSet
- Throws:
SqlException
-
readScrollableFetch_
- Specified by:
readScrollableFetch_
in classClientResultSet
- Throws:
SqlException
-
writePositioningFetch_
public void writePositioningFetch_(Section section, int orientation, long rowToFetch) throws SqlException - Specified by:
writePositioningFetch_
in classClientResultSet
- Throws:
SqlException
-
readPositioningFetch_
- Specified by:
readPositioningFetch_
in classClientResultSet
- Throws:
SqlException
-
writeCursorClose_
- Specified by:
writeCursorClose_
in classClientResultSet
- Throws:
SqlException
-
readCursorClose_
- Specified by:
readCursorClose_
in classClientResultSet
- Throws:
SqlException
-
preClose_
Method that is invoked bycloseX()
before the result set is actually being closed. If QRYCLSIMP is enabled on the cursor, scan data buffer for end of data (SQL state 02000). If end of data is received, the result set is closed on the server.- Specified by:
preClose_
in classClientResultSet
- Throws:
SqlException
-
flowFetch
- Throws:
DisconnectException
SqlException
-