org.apache.derby.client.net
Class NetResultSetRequest

java.lang.Object
  extended by org.apache.derby.client.net.Request
      extended by org.apache.derby.client.net.NetConnectionRequest
          extended by org.apache.derby.client.net.NetPackageRequest
              extended by org.apache.derby.client.net.NetStatementRequest
                  extended by org.apache.derby.client.net.NetResultSetRequest
All Implemented Interfaces:
ConnectionRequestInterface, ResultSetRequestInterface, StatementRequestInterface
Direct Known Subclasses:
NetXAConnectionRequest

public class NetResultSetRequest
extends NetStatementRequest
implements ResultSetRequestInterface


Field Summary
 
Fields inherited from class org.apache.derby.client.net.NetStatementRequest
extdtaPositions_, overrideLid_, promototedParameters_
 
Fields inherited from class org.apache.derby.client.net.NetPackageRequest
collectionName, COLLECTIONNAME
 
Fields inherited from class org.apache.derby.client.net.Request
bytes_, ccsidManager_, netAgent_, offset_, passwordIncluded_, passwordLength_, passwordStart_
 
Constructor Summary
NetResultSetRequest(NetAgent netAgent, CcsidManager ccsidManager, int bufferSize)
           
 
Method Summary
private  void buildCLSQRY(Section section, long queryInstanceIdentifier)
           
private  void buildCNTQRY(Section section, boolean sendQryrowset, long queryInstanceIdentifier, int qryrowsetSize, boolean sendRtnextdta)
           
private  void buildCoreCNTQRY(Section section, boolean sendQryrowset, long queryInstanceIdentifier, int qryrowsetSize)
           
private  void buildOUTOVR(NetResultSet resultSet, ColumnMetaData resultSetMetaData, boolean firstOutovrBuilt, boolean hasLobs)
           
private  void buildPositioningCNTQRY(int scrollOrientation, long rowNumber, Section section, boolean sendQryrowset, long queryInstanceIdentifier, int qryrowsetSize)
           
private  void buildQRYBLKRST(int qryblkrst)
           
private  void buildQRYROWNBR(long rowNumber)
           
private  void buildQRYRTNDTA(int qryrtndta)
           
private  void buildQRYSCRORN(int scrollOrientation)
           
private  void buildRTNEXTDTA(int rtnextdta)
           
private  void buildScrollCNTQRY(int scrollOrientation, long rowNumber, Section section, boolean sendQryrowset, long queryInstanceIdentifier, int qryrowsetSize, boolean resetQueryBlocks)
           
private  int computePROTOCOLOrientation(int orientation)
           
 void writeCursorClose(NetResultSet resultSet, Section section)
           
 void writeFetch(NetResultSet resultSet, Section section, int fetchSize)
           
 void writePositioningFetch(NetResultSet resultSet, Section section, int orientation, long rowToFetch)
           
 void writeScrollableFetch(NetResultSet resultSet, Section section, int fetchSize, int orientation, long rowToFetch, boolean resetQueryBlocks)
           
 
Methods inherited from class org.apache.derby.client.net.NetStatementRequest
buildDSCSQLSTT, buildEXCSQLIMM, buildEXCSQLSET, buildEXCSQLSTT, buildMAXBLKEXT, buildOPNQRY, buildOUTOVR, buildPRPSQLSTT, buildQRYBLKSZ, buildQRYINSID, buildQRYROWSET, buildSQLCADTA, buildSQLDTA, buildSQLDTAcommandData, buildSQLDTAGRP, buildSQLDTARD, writeDescribeInput, writeDescribeOutput, writeExecute, writeExecuteCall, writeExecuteImmediate, writeOpenQuery, writeOpenQuery, writePrepare, writePrepareDescribeOutput, writeSetSpecialRegister
 
Methods inherited from class org.apache.derby.client.net.NetPackageRequest
buildCommonPKGNAMinfo, buildPKGNAMCSN, buildSQLATTRcommandData, buildSQLSTTcommandData, encryptDataStream
 
Methods inherited from class org.apache.derby.client.net.NetConnectionRequest
buildACCRDB, buildACCSEC, buildDummyEXCSAT, buildEXCSAT, buildRDBCMM, buildRDBRLLBCK, buildSECCHK, buildSYNCCTLCommit, buildSYNCCTLMigrate, buildSYNCCTLRollback, buildTYPDEFOVR, writeAccessDatabase, writeAccessSecurity, writeCommitSubstitute, writeDummyExchangeServerAttributes, writeExchangeServerAttributes, writeForget, writeLocalCommit, writeLocalRollback, writeLocalXACommit, writeLocalXARollback, writeLocalXAStart, writeNullXID, writeReleaseConversation, writeSecurityCheck, writeSYNCType, writeXaCommit, writeXaEndUnitOfWork, writeXAFlags, writeXaForget, writeXaPrepare, writeXaRecover, writeXaRollback, writeXaStartUnitOfWork, writeXATimeout, writeXID
 
Methods inherited from class org.apache.derby.client.net.Request
buildTripletHeader, clearBuffer, createCommand, createCommandData, createEncryptedCommandData, createXACommand, doesRequestContainData, ensureLength, finalizeDssLength, finalizePreviousChainedDss, flush, flushExistingDSS, flushScalarStreamSegment, flushScalarStreamSegment, initialize, markForCachingPKGNAMCSN, markLengthBytes, maskOutPassword, padBytes, padScalarStreamForError, popMarkForCachingPKGNAMCSN, prepScalarStream, sendBytes, setCcsidMgr, setCorrelationID, setDssLengthLocation, updateLengthBytes, write1Byte, write2Bytes, write4Bytes, writeBigDecimal, writeBoolean, writeByte, writeBytes, writeBytes, writeCodePoint4Bytes, writeDate, writeDDMString, writeDouble, writeFloat, writeInt, writeIntFdocaData, writeLDBytes, writeLengthCodePoint, writeLidAndLengths, writeLidAndLengths, writeLong, writeLong6Bytes, writeLongFdocaData, writeScalar1Byte, writeScalar2Bytes, writeScalar4Bytes, writeScalar8Bytes, writeScalarBytes, writeScalarBytes, writeScalarBytes, writeScalarHeader, writeScalarPaddedBytes, writeScalarPaddedBytes, writeScalarPaddedString, writeScalarStream, writeScalarStream, writeScalarStream, writeScalarStream, writeScalarString, writeScalarString, writeShort, writeShortFdocaData, writeSingleorMixedCcsidLDString, writeTime, writeTimestamp, writeUDT
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetResultSetRequest

public NetResultSetRequest(NetAgent netAgent,
                           CcsidManager ccsidManager,
                           int bufferSize)
Method Detail

writeFetch

public void writeFetch(NetResultSet resultSet,
                       Section section,
                       int fetchSize)
                throws SqlException
Specified by:
writeFetch in interface ResultSetRequestInterface
Throws:
SqlException

writeScrollableFetch

public void writeScrollableFetch(NetResultSet resultSet,
                                 Section section,
                                 int fetchSize,
                                 int orientation,
                                 long rowToFetch,
                                 boolean resetQueryBlocks)
                          throws SqlException
Specified by:
writeScrollableFetch in interface ResultSetRequestInterface
Throws:
SqlException

writePositioningFetch

public void writePositioningFetch(NetResultSet resultSet,
                                  Section section,
                                  int orientation,
                                  long rowToFetch)
                           throws SqlException
Specified by:
writePositioningFetch in interface ResultSetRequestInterface
Throws:
SqlException

writeCursorClose

public void writeCursorClose(NetResultSet resultSet,
                             Section section)
                      throws SqlException
Specified by:
writeCursorClose in interface ResultSetRequestInterface
Throws:
SqlException

buildCLSQRY

private void buildCLSQRY(Section section,
                         long queryInstanceIdentifier)
                  throws SqlException
Throws:
SqlException

buildCNTQRY

private void buildCNTQRY(Section section,
                         boolean sendQryrowset,
                         long queryInstanceIdentifier,
                         int qryrowsetSize,
                         boolean sendRtnextdta)
                  throws SqlException
Throws:
SqlException

buildCoreCNTQRY

private void buildCoreCNTQRY(Section section,
                             boolean sendQryrowset,
                             long queryInstanceIdentifier,
                             int qryrowsetSize)
                      throws SqlException
Throws:
SqlException

buildScrollCNTQRY

private void buildScrollCNTQRY(int scrollOrientation,
                               long rowNumber,
                               Section section,
                               boolean sendQryrowset,
                               long queryInstanceIdentifier,
                               int qryrowsetSize,
                               boolean resetQueryBlocks)
                        throws SqlException
Throws:
SqlException

buildPositioningCNTQRY

private void buildPositioningCNTQRY(int scrollOrientation,
                                    long rowNumber,
                                    Section section,
                                    boolean sendQryrowset,
                                    long queryInstanceIdentifier,
                                    int qryrowsetSize)
                             throws SqlException
Throws:
SqlException

buildOUTOVR

private void buildOUTOVR(NetResultSet resultSet,
                         ColumnMetaData resultSetMetaData,
                         boolean firstOutovrBuilt,
                         boolean hasLobs)
                  throws SqlException
Throws:
SqlException

buildRTNEXTDTA

private void buildRTNEXTDTA(int rtnextdta)
                     throws SqlException
Throws:
SqlException

buildQRYSCRORN

private void buildQRYSCRORN(int scrollOrientation)
                     throws SqlException
Throws:
SqlException

buildQRYBLKRST

private void buildQRYBLKRST(int qryblkrst)
                     throws SqlException
Throws:
SqlException

buildQRYROWNBR

private void buildQRYROWNBR(long rowNumber)
                     throws SqlException
Throws:
SqlException

buildQRYRTNDTA

private void buildQRYRTNDTA(int qryrtndta)
                     throws SqlException
Throws:
SqlException

computePROTOCOLOrientation

private int computePROTOCOLOrientation(int orientation)
                                throws SqlException
Throws:
SqlException

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.