Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Uses of Class
org.apache.derby.impl.drda.DRDAProtocolException

Uses of DRDAProtocolException in org.apache.derby.impl.drda
 

Methods in org.apache.derby.impl.drda that return DRDAProtocolException
protected static DRDAProtocolException DRDAProtocolException.newDisconnectException(DRDAConnThread agent, java.lang.Object[] args)
           
protected static DRDAProtocolException DRDAProtocolException.newAgentError(DRDAConnThread agent, int svrcod, java.lang.String rdbnam, java.lang.String srvdgn)
           
 

Methods in org.apache.derby.impl.drda that throw DRDAProtocolException
private  void TestProto.processIncludeFile()
          Process include file
private  void TestProto.processFile(java.lang.String filename)
          Process a command file
private  void TestProto.processCommand()
          Process a command
private  void TestProto.skipDss()
          Skip a DSS communication
private  void TestProto.skipDdm()
          Skip the a Ddm communication
private  void TestProto.checkError()
          Check error sent back to application requester
private  void TestProto.readLengthAndCodePoint()
          Read length and codepoint and check against required values
private  void TestProto.checkSQLCARD(int sqlCode, java.lang.String sqlState)
          Check the value of SQLCARD
protected  void DRDAXAProtocol.parseSYNCCTL()
          Parse SYNCCTL - Parse SYNCCTL command for XAMGR lvl 7
protected  int DRDAXAProtocol.parseSYNCTYPE()
          parse SYNCTYPE for XAMGR lvl 7 return synctype value CodePoint.SYNCTYPE_NEW_UOW -> XAResource.start() CodePoint.SYNCTYPE_END_UOW -> XAResource.end() CodePoint.SYNCTYPE_PREPARE -> XAResource.prepare() CodePoint.SYNCTYPE_MIGRATE -> not supported //SYNCPT MGR LEVEL 5 CodePoint.SYNCTYPE_REQ_COMMIT -> not supported //SYNCPT MGR LEVEL 5 CodePoint.SYNCTYPE_COMMITTED -> XAResource.commit() or local commit for null XID CodePoint.SYNCTYPE_REQ_LOG -> not supported CodePoint.SYNCTYPE_REQ_FORGET -> XAResource.forget() CodePoint.SYNCTYPE_ROLLBACK -> XAResource.rollback() CodePoint.SYNCTYPE_MIGRATED -> not supported CodePoint.SYNCTYPE_INDOUBT -> XAResource.recover();
private  javax.transaction.xa.Xid DRDAXAProtocol.parseXID()
          Parse XID formatId -1 translates into a null XID and a local transaction
private  int DRDAXAProtocol.parseXIDSHR()
          parse XIDSHR
private  int DRDAXAProtocol.parseXAFlags()
          parse XAFlags
private  void DRDAXAProtocol.startXATransaction(javax.transaction.xa.Xid xid, int xaflags)
          Start the xa transaction.
private  void DRDAXAProtocol.commitTransaction(javax.transaction.xa.Xid xid, int xaflags)
          Commit the xa transaction.
private  void DRDAXAProtocol.commitLocalTransaction()
          Commit local transaction.
private  void DRDAXAProtocol.commitXATransaction(javax.transaction.xa.Xid xid, int xaflags)
          Commit the xa transaction.
private  void DRDAXAProtocol.rollbackTransaction(javax.transaction.xa.Xid xid)
          Rollback transaction
private  void DRDAXAProtocol.rollbackLocalTransaction()
          Rollback a local transaction
private  void DRDAXAProtocol.rollbackXATransaction(javax.transaction.xa.Xid xid)
          Rollback the xa transaction.
private  void DRDAXAProtocol.endXA(javax.transaction.xa.Xid xid, int xaflags)
          End the xa transaction.
private  void DRDAXAProtocol.prepareXATransaction(javax.transaction.xa.Xid xid)
          Prepare the xa transaction.
private  void DRDAXAProtocol.forgetXATransaction(javax.transaction.xa.Xid xid)
          Forget the xa transaction.
private  void DRDAXAProtocol.recoverXA()
           
private  void DRDAXAProtocol.recoverXA(int xaflags)
          Call recover.
private  void DRDAXAProtocol.writeSYNCCRD(int synctype, int xaRetVal, javax.transaction.xa.Xid[] xids)
          Write SYNCCRD (SYNCCTL response)
private  void DRDAXAProtocol.writePRPHRCLST(javax.transaction.xa.Xid[] xids)
          write PRPHRCLST (indoubt list)
private  void DRDAXAProtocol.writeXID(javax.transaction.xa.Xid xid)
          write XID
protected  void DRDAConnThread.markCommunicationsFailure(java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.String arg4)
          Indicate a communications failure
protected  void DRDAConnThread.throwSyntaxrm(int errcd, int cpArg)
          Syntax error
protected  void DRDAConnThread.agentError(java.lang.String msg)
          Agent error - something very bad happened
protected  void DRDAConnThread.missingCodePoint(int codePoint)
          Missing code point
protected  void DRDAConnThread.writeRDBNAM(java.lang.String rdbnam)
          Write RDBNAM
private  void DRDAConnThread.processCommands()
          Process DRDA commands we can receive once server attributes have been exchanged.
private  void DRDAConnThread.errorInChain(java.sql.SQLException e)
          If there's a severe error in the DDM chain, and if the header indicates "terminate chain on error", we stop processing further commands in the chain nor do we send any reply for them.
private  void DRDAConnThread.exchangeServerAttributes()
          Exchange server attributes with application requester
private  boolean DRDAConnThread.parseDRDAConnection()
           
private  void DRDAConnThread.writeRDBfailure(int codePoint)
          Write RDB Failure Instance Variables SVRCOD - Severity Code - required RDBNAM - Relational Database name - required SRVDGN - Server Diagnostics - optional (not sent for now)
private  int DRDAConnThread.verifyUserIdPassword()
          Verify userId and password Username and password is verified by making a connection to the database
private  int DRDAConnThread.getConnFromDatabaseName()
          Get connection from a database name Username and password is verified by making a connection to the database
private  void DRDAConnThread.parseEXCSAT()
          Parses EXCSAT (Exchange Server Attributes) Instance variables EXTNAM(External Name) - optional MGRLVLLS(Manager Levels) - optional SPVNAM(Supervisor Name) - optional SRVCLSNM(Server Class Name) - optional SRVNAM(Server Name) - optional, ignorable SRVRLSLV(Server Product Release Level) - optional, ignorable
private  void DRDAConnThread.parseEXCSAT2()
          Parses EXCSAT2 (Exchange Server Attributes) Instance variables EXTNAM(External Name) - optional MGRLVLLS(Manager Levels) - optional SPVNAM(Supervisor Name) - optional SRVCLSNM(Server Class Name) - optional SRVNAM(Server Name) - optional, ignorable SRVRLSLV(Server Product Release Level) - optional, ignorable
private  void DRDAConnThread.parseMGRLVLLS(int time)
          Parse manager levels Instance variables MGRLVL - repeatable, required CODEPOINT CCSIDMGR - CCSID Manager CMNAPPC - LU 6.2 Conversational Communications Manager CMNSYNCPT - SNA LU 6.2 SyncPoint Conversational Communications Manager CMNTCPIP - TCP/IP Communication Manager DICTIONARY - Dictionary RDB - Relational Database RSYNCMGR - Resynchronization Manager SECMGR - Security Manager SQLAM - SQL Application Manager SUPERVISOR - Supervisor SYNCPTMGR - Sync Point Manager VALUE On the second appearance of this codepoint, it can only add managers
private  void DRDAConnThread.writeEXCSATRD()
          Write reply to EXCSAT command Instance Variables EXTNAM - External Name (optional) MGRLVLLS - Manager Level List (optional) SRVCLSNM - Server Class Name (optional) - used by JCC SRVNAM - Server Name (optional) SRVRLSLV - Server Product Release Level (optional)
private  void DRDAConnThread.writeMGRLEVELS()
          Write manager levels The target server must not provide information for any target managers unless the source explicitly requests it.
private  int DRDAConnThread.parseACCSEC()
          Parse Access Security If the target server supports the SECMEC requested by the application requester then a single value is returned and it is identical to the SECMEC value in the ACCSEC command.
private  java.lang.String DRDAConnThread.parseOPNQRY()
          Parse OPNQRY Instance Variables RDBNAM - relational database name - optional PKGNAMCSN - RDB Package Name, Consistency Token and Section Number - required QRYBLKSZ - Query Block Size - required QRYBLKCTL - Query Block Protocol Control - optional MAXBLKEXT - Maximum Number of Extra Blocks - optional - default value 0 OUTOVROPT - Output Override Option QRYROWSET - Query Rowset Size - optional - level 7 MONITOR - Monitor events - optional.
private  void DRDAConnThread.parseOPNQRYobjects(DRDAStatement stmt)
          Parse OPNQRY objects Objects TYPDEFNAM - Data type definition name - optional TYPDEFOVR - Type defintion overrides - optional SQLDTA- SQL Program Variable Data - optional If TYPDEFNAM and TYPDEFOVR are supplied, they apply to the objects sent with the statement.
private  int DRDAConnThread.parseOUTOVROPT()
          Parse OUTOVROPT - this indicates whether output description can be overridden on just the first CNTQRY or on any CNTQRY
private  int DRDAConnThread.parseQRYBLKSZ()
          Parse QRYBLSZ - this gives the maximum size of the query blocks that can be returned to the requester
private  int DRDAConnThread.parseQRYROWSET(int minVal)
          Parse QRYROWSET - this is the number of rows to return
private  int DRDAConnThread.parseQRYCLSIMP()
          Parse a QRYCLSIMP - Implicitly close non-scrollable cursor after end of data.
private  int DRDAConnThread.parseQRYCLSRLS()
           
private  int DRDAConnThread.parseQRYOPTVAL()
           
private  void DRDAConnThread.writeQRYPOPRM()
          Write a QRYPOPRM - Query Previously opened Instance Variables SVRCOD - Severity Code - required - 8 ERROR RDBNAM - Relational Database Name - required PKGNAMCSN - RDB Package Name, Consistency Token, and Section Number - required
private  void DRDAConnThread.writeQRYNOPRM(int svrCod)
          Write a QRYNOPRM - Query Not Opened Instance Variables SVRCOD - Severity Code - required - 4 Warning 8 ERROR RDBNAM - Relational Database Name - required PKGNAMCSN - RDB Package Name, Consistency Token, and Section Number - required
private  void DRDAConnThread.writeOPNQFLRM(java.sql.SQLException e)
          Write a OPNQFLRM - Open Query Failure Instance Variables SVRCOD - Severity Code - required - 8 ERROR RDBNAM - Relational Database Name - required
private  void DRDAConnThread.writePKGNAMCSN(java.lang.String pkgcnstknStr)
          Write PKGNAMCSN Instance Variables NAMESYMDR - database name - not validated RDBCOLID - RDB Collection Identifier PKGID - RDB Package Identifier PKGCNSTKN - RDB Package Consistency Token PKGSN - RDB Package Section Number There are two possible formats, fixed and extended which includes length information for the strings
private  void DRDAConnThread.writePKGNAMCSN()
           
private  DRDAStatement DRDAConnThread.parseCNTQRY()
          Parse CNTQRY - Continue Query Instance Variables RDBNAM - Relational Database Name - optional PKGNAMCSN - RDB Package Name, Consistency Token, and Section Number - required QRYBLKSZ - Query Block Size - required QRYRELSCR - Query Relative Scrolling Action - optional QRYSCRORN - Query Scroll Orientation - optional - level 7 QRYROWNBR - Query Row Number - optional QRYROWSNS - Query Row Sensitivity - optional - level 7 QRYBLKRST - Query Block Reset - optional - level 7 QRYRTNDTA - Query Returns Data - optional - level 7 QRYROWSET - Query Rowset Size - optional - level 7 QRYRFRTBL - Query Refresh Answer Set Table - optional NBRROW - Number of Fetch or Insert Rows - optional MAXBLKEXT - Maximum number of extra blocks - optional RTNEXTDTA - Return of EXTDTA Option - optional MONITOR - Monitor events - optional.
private  void DRDAConnThread.skipRemainder(boolean onlySkipSameIds)
          Skip remainder of current DSS and all chained DSS'es
private  void DRDAConnThread.parseCNTQRYobjects(DRDAStatement stmt)
          Parse CNTQRY objects Instance Variables OUTOVR - Output Override Descriptor - optional
private  void DRDAConnThread.parseOUTOVR(DRDAStatement stmt)
          Parse OUTOVR - Output Override Descriptor This specifies the output format for data to be returned as output to a SQL statement or as output from a query.
private  void DRDAConnThread.writeOPNQRYRM(boolean isDssObject, DRDAStatement stmt)
          Write OPNQRYRM - Open Query Complete Instance Variables SVRCOD - Severity Code - required QRYPRCTYP - Query Protocol Type - required SQLCSRHLD - Hold Cursor Position - optional QRYATTSCR - Query Attribute for Scrollability - optional - level 7 QRYATTSNS - Query Attribute for Sensitivity - optional - level 7 QRYATTUPD - Query Attribute for Updatability -optional - level 7 QRYINSID - Query Instance Identifier - required - level 7 SRVDGN - Server Diagnostic Information - optional
private  void DRDAConnThread.writeENDQRYRM(int svrCod)
          Write ENDQRYRM - query process has terminated in such a manner that the query or result set is now closed.
private  void DRDAConnThread.writeABNUOWRM()
          Write ABNUOWRM - query process has terminated in an error condition such as deadlock or lock timeout.
private  java.lang.String DRDAConnThread.parseRDBNAM()
          Parse database name
private  void DRDAConnThread.writeACCSECRD(int securityCheckCode)
          Write ACCSECRD If the security mechanism is known, we just send it back along with the security token if encryption is going to be used.
private  int DRDAConnThread.parseSECCHK()
          Parse security check Instance Variables SECMGRNM - security manager name - optional, ignorable SECMEC - security mechanism - required SECTKN - security token - optional, (required if encryption used) PASSWORD - password - optional, (required if security mechanism uses it) NEWPASSWORD - new password - optional, (required if sec mech.
private  void DRDAConnThread.writeSECCHKRM(int securityCheckCode)
          Write security check reply Instance variables SVRCOD - serverity code - required SECCHKCD - security check code - required SECTKN - security token - optional, ignorable SVCERRNO - security service error number SRVDGN - Server Diagnostic Information
private  int DRDAConnThread.parseACCRDB()
          Parse access RDB Instance variables RDBACCCL - RDB Access Manager Class - required must be SQLAM CRRTKN - Correlation Token - required RDBNAM - Relational database name -required PRDID - Product specific identifier - required TYPDEFNAM - Data Type Definition Name -required TYPDEFOVR - Type definition overrides -required RDBALWUPD - RDB Allow Updates optional PRDDTA - Product Specific Data - optional - ignorable STTDECDEL - Statement Decimal Delimiter - optional STTSTRDEL - Statement String Delimiter - optional TRGDFTRT - Target Default Value Return - optional
private  java.lang.String DRDAConnThread.parseTYPDEFNAM()
          Parse TYPDEFNAM
private  void DRDAConnThread.writeACCRDBRM(int svrcod)
          Write Access to RDB Completed Instance Variables SVRCOD - severity code - 0 info, 4 warning -required PRDID - product specific identifier -required TYPDEFNAM - type definition name -required TYPDEFOVR - type definition overrides - required RDBINTTKN - token which can be used to interrupt DDM commands - optional CRRTKN - correlation token - only returned if we didn't get one from requester SRVDGN - server diagnostic information - optional PKGDFTCST - package default character subtype - optional USRID - User ID at the target system - optional SRVLST - Server List
private  void DRDAConnThread.writeTYPDEFOVR()
           
private  void DRDAConnThread.parseTYPDEFOVR(DRDAStatement st)
          Parse Type Defintion Overrides TYPDEF Overrides specifies the Coded Character SET Identifiers (CCSIDs) that are in a named TYPDEF.
private  int DRDAConnThread.parsePRPSQLSTT()
          Parse PRPSQLSTT - Prepare SQL Statement Instance Variables RDBNAM - Relational Database Name - optional PKGNAMCAN - RDB Package Name, Consistency Token, and Section Number - required RTNSQLDA - Return SQL Descriptor Area - optional MONITOR - Monitor events - optional.
private  java.lang.String DRDAConnThread.parsePRPSQLSTTobjects(DRDAStatement stmt)
          Parse PRPSQLSTT objects Objects TYPDEFNAM - Data type definition name - optional TYPDEFOVR - Type defintion overrides - optional SQLSTT - SQL Statement required SQLATTR - Cursor attributes on prepare - optional - level 7 If TYPDEFNAM and TYPDEFOVR are supplied, they apply to the objects sent with the statement.
private  boolean DRDAConnThread.parseTYPSQLDA()
          Parse TYPSQLDA - Type of the SQL Descriptor Area
protected  void DRDAConnThread.parseSQLATTR(DRDAStatement stmt)
          Parse SQLATTR - Cursor attributes on prepare This is an encoded string.
private  boolean DRDAConnThread.parseDSCSQLSTT()
          Parse DSCSQLSTT - Describe SQL Statement previously prepared Instance Variables TYPSQLDA - sqlda type expected (output or input) RDBNAM - relational database name - optional PKGNAMCSN - RDB Package Name, Consistency Token and Section Number - required MONITOR - Monitor events - optional.
private  void DRDAConnThread.parseEXCSQLSTT()
          Parse EXCSQLSTT - Execute non-cursor SQL Statement previously prepared Instance Variables RDBNAM - relational database name - optional PKGNAMCSN - RDB Package Name, Consistency Token and Section Number - required OUTEXP - Output expected NBRROW - Number of rows to be inserted if it's an insert PRCNAM - procedure name if specified by host variable, not needed for Cloudscape QRYBLKSZ - query block size MAXRSLCNT - max resultset count MAXBLKEXT - Max number of extra blocks RSLSETFLG - resultset flag RDBCMTOK - RDB Commit Allowed - optional OUTOVROPT - output override option QRYROWSET - Query Rowset Size - Level 7 MONITOR - Monitor events - optional.
private  void DRDAConnThread.parseRDBCMTOK()
          Parse RDBCMTOK - tells the database whether to allow commits or rollbacks to be executed as part of the command Since we don't have a SQL commit or rollback command, we will just ignore this for now
private  void DRDAConnThread.parseEXCSQLSTTobjects(DRDAStatement stmt)
          Parse EXCSQLSTT command objects Command Objects TYPDEFNAM - Data Type Definition Name - optional TYPDEFOVR - TYPDEF Overrides -optional SQLDTA - optional, variable data, specified if prpared statement has input parameters EXTDTA - optional, externalized FD:OCA data OUTOVR - output override descriptor, not allowed for stored procedure calls If TYPDEFNAM and TYPDEFOVR are supplied, they apply to the objects sent with the statement.
private  void DRDAConnThread.writeSQLCINRD(DRDAStatement stmt)
          Write SQLCINRD - result set column information
private  void DRDAConnThread.writeSQLRSLRD(DRDAStatement stmt)
          Write SQLRSLRD - result set reply data
private  void DRDAConnThread.writeRSLSETRM(DRDAStatement stmt)
          Write RSLSETRM Instance variables SVRCOD - Severity code - Information only - required PKGSNLST - list of PKGNAMCSN -required SRVDGN - Server Diagnostic Information -optional
private  void DRDAConnThread.parseSQLDTA(DRDAStatement stmt)
          Parse SQLDTA - SQL program variable data and handle exception.
private  void DRDAConnThread.parseSQLDTA_work(DRDAStatement stmt)
          Parse SQLDTA - SQL program variable data Instance Variables FDODSC - FD:OCA data descriptor - required FDODTA - FD:OCA data - optional
private  java.util.ArrayList DRDAConnThread.readAndSetParams(int i, DRDAStatement stmt, int drdaType, org.apache.derby.impl.jdbc.EmbedParameterSetMetaData pmeta, java.util.ArrayList paramExtPositions, int paramLenNumBytes)
          Read different types of input parameters and set them in PreparedStatement
private  long DRDAConnThread.readLobLength(int extLenIndicator)
           
private  void DRDAConnThread.readAndSetAllExtParams(DRDAStatement stmt)
           
private  void DRDAConnThread.readAndSetExtParam(int i, DRDAStatement stmt, int drdaType, int extLen)
          Read different types of input parameters and set them in PreparedStatement
private  int DRDAConnThread.parseEXCSQLIMM()
          Parse EXCSQLIMM - Execute Immediate Statement Instance Variables RDBNAM - relational database name - optional PKGNAMCSN - RDB Package Name, Consistency Token and Section Number - required RDBCMTOK - RDB Commit Allowed - optional MONITOR - Monitor Events - optional Command Objects TYPDEFNAM - Data Type Definition Name - optional TYPDEFOVR - TYPDEF Overrides -optional SQLSTT - SQL Statement -required
private  boolean DRDAConnThread.parseEXCSQLSET()
          Parse EXCSQLSET - Execute Set SQL Environment Instance Variables RDBNAM - relational database name - optional PKGNAMCT - RDB Package Name, Consistency Token - optional MONITOR - Monitor Events - optional Command Objects TYPDEFNAM - Data Type Definition Name - required TYPDEFOVR - TYPDEF Overrides - required SQLSTT - SQL Statement - required (at least one; may be more)
private  java.lang.String DRDAConnThread.parseEXECSQLIMMobjects()
          Parse EXCSQLIMM objects Objects TYPDEFNAM - Data type definition name - optional TYPDEFOVR - Type defintion overrides SQLSTT - SQL Statement required If TYPDEFNAM and TYPDEFOVR are supplied, they apply to the objects sent with the statement.
private  void DRDAConnThread.parseEXCSQLSETobjects()
          Parse EXCSQLSET objects Objects TYPDEFNAM - Data type definition name - optional TYPDEFOVR - Type defintion overrides - optional SQLSTT - SQL Statement - required (a list of at least one) Objects may follow in one DSS or in several DSS chained together.
private  void DRDAConnThread.writeRDBUPDRM()
          Write RDBUPDRM Instance variables SVRCOD - Severity code - Information only - required RDBNAM - Relational database name -required SRVDGN - Server Diagnostic Information -optional
private  java.lang.String DRDAConnThread.parsePKGNAMCT()
           
private  java.lang.String DRDAConnThread.parsePKGNAMCSN()
          Parse PKGNAMCSN - RDB Package Name, Consistency Token, and Section Number Instance Variables NAMESYMDR - database name - not validated RDBCOLID - RDB Collection Identifier PKGID - RDB Package Identifier PKGCNSTKN - RDB Package Consistency Token PKGSN - RDB Package Section Number
private  java.lang.String DRDAConnThread.parseSQLSTTDss()
          Parse SQLSTT Dss
private  java.lang.String DRDAConnThread.parseEncodedString()
          Parse an encoded data string from the Application Requester
private  java.lang.String DRDAConnThread.parseVCMorVCS()
          Parse variable character mixed byte or variable character single byte Format I2 - VCM Length N bytes - VCM value I2 - VCS Length N bytes - VCS value Only 1 of VCM length or VCS length can be non-zero
private  java.lang.String DRDAConnThread.parseNOCMorNOCS()
          Parse nullable character mixed byte or nullable character single byte Format 1 byte - null indicator I4 - mixed character length N bytes - mixed character string 1 byte - null indicator I4 - single character length N bytes - single character length string
private  java.lang.String DRDAConnThread.parseCcsidMBC(int length)
          Parse mixed character string
private  java.lang.String DRDAConnThread.parseCcsidSBC(int length)
          Parse single byte character string
private  DRDAStatement DRDAConnThread.parseCLSQRY()
          Parse CLSQRY Instance Variables RDBNAM - relational database name - optional PKGNAMCSN - RDB Package Name, Consistency Token and Section Number - required QRYINSID - Query Instance Identifier - required - level 7 MONITOR - Monitor events - optional.
private  void DRDAConnThread.parseMONITOR()
          Parse MONITOR DRDA spec says this is optional.
private  void DRDAConnThread.writeSQLCARDs(java.sql.SQLException e, int updateCount)
           
private  void DRDAConnThread.writeSQLCARDs(java.sql.SQLException e, int updateCount, boolean sendSQLERRRM)
           
private  void DRDAConnThread.writeSQLCARD(java.sql.SQLException e, int severity, int updateCount, long rowCount)
           
private  void DRDAConnThread.writeNullSQLCARDobject()
          Write a null SQLCARD as an object
private  void DRDAConnThread.writeSQLERRRM(int severity)
          Write SQLERRRM Instance Variables SVRCOD - Severity Code - required
private  void DRDAConnThread.writeCMDCHKRM(int severity)
          Write CMDCHKRM Instance Variables SVRCOD - Severity Code - required
private  void DRDAConnThread.writeSQLCAGRP(java.sql.SQLException e, int sqlcode, int updateCount, long rowCount)
          Write SQLCAGRP SQLCAGRP : FDOCA EARLY GROUP SQL Communcations Area Group Description FORMAT FOR SQLAM <= 6 SQLCODE; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLSTATE; DRDA TYPE FCS; ENVLID 0x30; Length Override 5 SQLERRPROC; DRDA TYPE FCS; ENVLID 0x30; Length Override 8 SQLCAXGRP; DRDA TYPE N-GDA; ENVLID 0x52; Length Override 0 FORMAT FOR SQLAM >= 7 SQLCODE; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLSTATE; DRDA TYPE FCS; ENVLID 0x30; Length Override 5 SQLERRPROC; DRDA TYPE FCS; ENVLID 0x30; Length Override 8 SQLCAXGRP; DRDA TYPE N-GDA; ENVLID 0x52; Length Override 0 SQLDIAGGRP; DRDA TYPE N-GDA; ENVLID 0x56; Length Override 0
private  void DRDAConnThread.writeSQLCAXGRP(int updateCount, long rowCount, java.lang.String sqlerrmc, java.sql.SQLException nextException)
          Write SQLCAXGRP SQLCAXGRP : EARLY FDOCA GROUP SQL Communications Area Exceptions Group Description FORMAT FOR SQLAM <= 6 SQLRDBNME; DRDA TYPE FCS; ENVLID 0x30; Length Override 18 SQLERRD1; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLERRD2; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLERRD3; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLERRD4; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLERRD5; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLERRD6; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLWARN0; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN1; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN2; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN3; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN4; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN5; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN6; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN7; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN8; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN9; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARNA; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLERRMSG_m; DRDA TYPE VCM; ENVLID 0x3E; Length Override 70 SQLERRMSG_s; DRDA TYPE VCS; ENVLID 0x32; Length Override 70 FORMAT FOR SQLAM >= 7 SQLERRD1; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLERRD2; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLERRD3; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLERRD4; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLERRD5; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLERRD6; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLWARN0; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN1; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN2; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN3; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN4; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN5; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN6; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN7; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN8; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARN9; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLWARNA; DRDA TYPE FCS; ENVLID 0x30; Length Override 1 SQLRDBNAME; DRDA TYPE VCS; ENVLID 0x32; Length Override 255 SQLERRMSG_m; DRDA TYPE VCM; ENVLID 0x3E; Length Override 70 SQLERRMSG_s; DRDA TYPE VCS; ENVLID 0x32; Length Override 70
private  void DRDAConnThread.writeSQLDIAGGRP(java.sql.SQLException nextException)
          Write SQLDIAGGRP: SQL Diagnostics Group Description - Identity 0xD1 Nullable Group SQLDIAGSTT; DRDA TYPE N-GDA; ENVLID 0xD3; Length Override 0 SQLDIAGCN; DRFA TYPE N-RLO; ENVLID 0xF6; Length Override 0 SQLDIAGCI; DRDA TYPE N-RLO; ENVLID 0xF5; Length Override 0
private  void DRDAConnThread.writeSQLDIAGSTT()
           
private  void DRDAConnThread.writeSQLDIAGCI(java.sql.SQLException nextException)
          writeSQLDIAGCI: SQL Diagnostics Condition Information Array - Identity 0xF5 SQLNUMROW; ROW LID 0x68; ELEMENT TAKEN 0(all); REP FACTOR 1 SQLDCIROW; ROW LID 0xE5; ELEMENT TAKEN 0(all); REP FACTOR 0(all)
private  void DRDAConnThread.writeSQLNUMROW(java.sql.SQLException nextException)
          writeSQLNUMROW: Writes SQLNUMROW : FDOCA EARLY ROW SQL Number of Elements Row Description FORMAT FOR SQLAM LEVELS SQLNUMGRP; GROUP LID 0x58; ELEMENT TAKEN 0(all); REP FACTOR 1
private  void DRDAConnThread.writeSQLNUMGRP(java.sql.SQLException nextException)
          writeSQLNUMGRP: Writes SQLNUMGRP : FDOCA EARLY GROUP SQL Number of Elements Group Description FORMAT FOR ALL SQLAM LEVELS SQLNUM; DRDA TYPE I2; ENVLID 0x04; Length Override 2
private  void DRDAConnThread.writeSQLDCROW(long rowNum, int sqlCode, java.lang.String sqlState, java.lang.String dbname, java.lang.String sqlerrmc)
          writeSQLDCROW: SQL Diagnostics Condition Row - Identity 0xE5 SQLDCGRP; GROUP LID 0xD5; ELEMENT TAKEN 0(all); REP FACTOR 1
private  void DRDAConnThread.writeSQLDCGRP(long rowNum, int sqlCode, java.lang.String sqlState, java.lang.String dbname, java.lang.String sqlerrmc)
          writeSQLDCGRP: SQL Diagnostics Condition Group Description SQLDCCODE; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLDCSTATE; DRDA TYPE FCS; ENVLID Ox30; Lengeh Override 5 SQLDCREASON; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLDCLINEN; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLDCROWN; DRDA TYPE FD; ENVLID 0x0E; Lengeh Override 31 SQLDCER01; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLDCER02; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLDCER03; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLDCER04; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLDCPART; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLDCPPOP; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLDCMSGID; DRDA TYPE FCS; ENVLID 0x30; Length Override 10 SQLDCMDE; DRDA TYPE FCS; ENVLID 0x30; Length Override 8 SQLDCPMOD; DRDA TYPE FCS; ENVLID 0x30; Length Override 5 SQLDCRDB; DRDA TYPE VCS; ENVLID 0x32; Length Override 255 SQLDCTOKS; DRDA TYPE N-RLO; ENVLID 0xF7; Length Override 0 SQLDCMSG_m; DRDA TYPE NVMC; ENVLID 0x3F; Length Override 32672 SQLDCMSG_S; DRDA TYPE NVCS; ENVLID 0x33; Length Override 32672 SQLDCCOLN_m; DRDA TYPE NVCM ; ENVLID 0x3F; Length Override 255 SQLDCCOLN_s; DRDA TYPE NVCS; ENVLID 0x33; Length Override 255 SQLDCCURN_m; DRDA TYPE NVCM; ENVLID 0x3F; Length Override 255 SQLDCCURN_s; DRDA TYPE NVCS; ENVLID 0x33; Length Override 255 SQLDCPNAM_m; DRDA TYPE NVCM; ENVLID 0x3F; Length Override 255 SQLDCPNAM_s; DRDA TYPE NVCS; ENVLID 0x33; Length Override 255 SQLDCXGRP; DRDA TYPE N-GDA; ENVLID 0xD3; Length Override 1
private  void DRDAConnThread.writeSQLDIAGCN()
           
private  void DRDAConnThread.writeSQLDARD(DRDAStatement stmt, boolean rtnOutput, java.sql.SQLException e)
          Write SQLDARD SQLDARD : FDOCA EARLY ARRAY SQL Descriptor Area Row Description with SQL Communications Area FORMAT FOR SQLAM <= 6 SQLCARD; ROW LID 0x64; ELEMENT TAKEN 0(all); REP FACTOR 1 SQLNUMROW; ROW LID 0x68; ELEMENT TAKEN 0(all); REP FACTOR 1 SQLDAROW; ROW LID 0x60; ELEMENT TAKEN 0(all); REP FACTOR 0(all) FORMAT FOR SQLAM >= 7 SQLCARD; ROW LID 0x64; ELEMENT TAKEN 0(all); REP FACTOR 1 SQLDHROW; ROW LID 0xE0; ELEMENT TAKEN 0(all); REP FACTOR 1 SQLNUMROW; ROW LID 0x68; ELEMENT TAKEN 0(all); REP FACTOR 1
private  void DRDAConnThread.writeQRYDSC(DRDAStatement stmt, boolean FDODSConly)
          Write QRYDSC - Query Answer Set Description
private  void DRDAConnThread.writeSQLDTAGRP(DRDAStatement stmt, java.sql.ResultSetMetaData rsmeta, org.apache.derby.impl.jdbc.EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first)
          Write SQLDTAGRP SQLDAGRP : Late FDOCA GROUP SQL Data Value Group Descriptor LENGTH - length of the SQLDTAGRP TRIPLET_TYPE - NGDA for first, CPT for following ID - SQLDTAGRP_LID for first, NULL_LID for following For each column DRDA TYPE LENGTH OVERRIDE For numeric/decimal types PRECISON SCALE otherwise LENGTH or DISPLAY_WIDTH
private  void DRDAConnThread.writeSQLDHROW(DRDAStatement stmt)
           
private  void DRDAConnThread.writeQRYDTA(DRDAStatement stmt)
          Write QRYDTA - Query Answer Set Data Contains some or all of the answer set data resulting from a query returns true if there is more data, false if we reached the end Instance Variables Byte string
private  boolean DRDAConnThread.writeFDODTA(DRDAStatement stmt)
           
private  void DRDAConnThread.splitQRYDTA(DRDAStatement stmt, int blksize)
          Split QRYDTA into blksize chunks
private  void DRDAConnThread.doneData(DRDAStatement stmt, java.sql.ResultSet rs)
          Done data Send SQLCARD for the end of the data
private  boolean DRDAConnThread.positionCursor(DRDAStatement stmt, java.sql.ResultSet rs)
          Position cursor for insensitive scrollable cursors
private  void DRDAConnThread.writeSQLDAGRP(java.sql.ResultSetMetaData rsmeta, org.apache.derby.impl.jdbc.EmbedParameterSetMetaData pmeta, int elemNum, boolean rtnOutput)
          Write SQLDAGRP SQLDAGRP : EARLY FDOCA GROUP SQL Data Area Group Description FORMAT FOR SQLAM <= 6 SQLPRECISION; DRDA TYPE I2; ENVLID 0x04; Length Override 2 SQLSCALE; DRDA TYPE I2; ENVLID 0x04; Length Override 2 SQLLENGTH; DRDA TYPE I4; ENVLID 0x02; Length Override 4 SQLTYPE; DRDA TYPE I2; ENVLID 0x04; Length Override 2 SQLCCSID; DRDA TYPE FB; ENVLID 0x26; Length Override 2 SQLNAME_m; DRDA TYPE VCM; ENVLID 0x3E; Length Override 30 SQLNAME_s; DRDA TYPE VCS; ENVLID 0x32; Length Override 30 SQLLABEL_m; DRDA TYPE VCM; ENVLID 0x3E; Length Override 30 SQLLABEL_s; DRDA TYPE VCS; ENVLID 0x32; Length Override 30 SQLCOMMENTS_m; DRDA TYPE VCM; ENVLID 0x3E; Length Override 254 SQLCOMMENTS_m; DRDA TYPE VCS; ENVLID 0x32; Length Override 254 FORMAT FOR SQLAM == 6 SQLPRECISION; DRDA TYPE I2; ENVLID 0x04; Length Override 2 SQLSCALE; DRDA TYPE I2; ENVLID 0x04; Length Override 2 SQLLENGTH; DRDA TYPE I8; ENVLID 0x16; Length Override 8 SQLTYPE; DRDA TYPE I2; ENVLID 0x04; Length Override 2 SQLCCSID; DRDA TYPE FB; ENVLID 0x26; Length Override 2 SQLNAME_m; DRDA TYPE VCM; ENVLID 0x3E; Length Override 30 SQLNAME_s; DRDA TYPE VCS; ENVLID 0x32; Length Override 30 SQLLABEL_m; DRDA TYPE VCM; ENVLID 0x3E; Length Override 30 SQLLABEL_s; DRDA TYPE VCS; ENVLID 0x32; Length Override 30 SQLCOMMENTS_m; DRDA TYPE VCM; ENVLID 0x3E; Length Override 254 SQLCOMMENTS_m; DRDA TYPE VCS; ENVLID 0x32; Length Override 254 SQLUDTGRP; DRDA TYPE N-GDA; ENVLID 0x51; Length Override 0 FORMAT FOR SQLAM >= 7 SQLPRECISION; DRDA TYPE I2; ENVLID 0x04; Length Override 2 SQLSCALE; DRDA TYPE I2; ENVLID 0x04; Length Override 2 SQLLENGTH; DRDA TYPE I8; ENVLID 0x16; Length Override 8 SQLTYPE; DRDA TYPE I2; ENVLID 0x04; Length Override 2 SQLCCSID; DRDA TYPE FB; ENVLID 0x26; Length Override 2 SQLDOPTGRP; DRDA TYPE N-GDA; ENVLID 0xD2; Length Override 0
private  void DRDAConnThread.writeVCMorVCS(java.lang.String s)
          Write variable character mixed byte or single byte The preference is to write mixed byte if it is defined for the server, since that is our default and we don't allow it to be changed, we always write mixed byte.
private  void DRDAConnThread.writeSQLUDTGRP(java.sql.ResultSetMetaData rsmeta, org.apache.derby.impl.jdbc.EmbedParameterSetMetaData pmeta, int jdbcElemNum, boolean rtnOutput)
           
private  void DRDAConnThread.writeSQLDOPTGRP(java.sql.ResultSetMetaData rsmeta, org.apache.derby.impl.jdbc.EmbedParameterSetMetaData pmeta, int jdbcElemNum, boolean rtnOutput)
           
private  void DRDAConnThread.writeSQLDXGRP(java.sql.ResultSetMetaData rsmeta, org.apache.derby.impl.jdbc.EmbedParameterSetMetaData pmeta, int jdbcElemNum, boolean rtnOutput)
           
protected  void DRDAConnThread.writeFdocaVal(int index, java.lang.Object val, int drdaType, int precision, int scale, boolean valNull, DRDAStatement stmt)
          Write Fdoca Value to client
private  void DRDAConnThread.checkRequired(int codePoint)
          Check whether we have seen all the required code points
private  void DRDAConnThread.tooMany(int codePoint)
          Seen too many of this code point
private  void DRDAConnThread.tooBig(int codePoint)
          Object too big
private  void DRDAConnThread.badObjectLength(int codePoint)
          Object length not allowed
private  void DRDAConnThread.rdbNotFound(java.lang.String rdbnam)
          RDB not found
private  void DRDAConnThread.invalidValue(int codePoint)
          Invalid value for this code point
protected  void DRDAConnThread.invalidCodePoint(int codePoint)
          Invalid codepoint for this command
protected  void DRDAConnThread.codePointNotSupported(int codePoint)
          Don't support this code point
private  void DRDAConnThread.valueNotSupported(int codePoint)
          Don't support this value
private  void DRDAConnThread.verifyRequiredObject(int codePoint, int reqCodePoint)
          Verify that the code point is the required code point
private  void DRDAConnThread.verifyInOrderACCSEC_SECCHK(int codePoint, int reqCodePoint)
          Verify that the code point is in the right order
private  void DRDAConnThread.rdbnamMismatch(int codePoint)
          Database name given under code point doesn't match previous database names
private  void DRDAConnThread.checkValidTypDefNam(java.lang.String typdefnam)
          check that the given typdefnam is acceptable
private  void DRDAConnThread.checkLength(int codepoint, int reqlen)
          Check that the length is equal to the required length for this codepoint
private  boolean DRDAConnThread.readBoolean(int codepoint)
          Read and check a boolean value
private  void DRDAConnThread.setDatabase(int codePoint)
          Set the current database
(package private)  void DRDAConnThread.writeEXTDTA(DRDAStatement stmt)
           
private  void DRDAConnThread.checkWarning(java.sql.Connection conn, java.sql.Statement stmt, java.sql.ResultSet rs, int updateCount, boolean alwaysSend, boolean sendWarn)
          Check SQLWarning and write SQLCARD as needed.
private  void DRDAConnThread.finalizeChain()
          Finalize the current DSS chain and send it if needed.
protected  int DDMWriter.writeScalarStream(boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte)
           
protected  int DDMWriter.prepScalarStream(boolean chainedWithSameCorrelator, int codePoint, boolean writeNullByte, int leftToRead)
           
protected  int DDMWriter.flushScalarStreamSegment(int leftToRead, int bytesToRead)
           
protected  void DDMWriter.padScalarStreamForError(int leftToRead, int bytesToRead)
           
protected  void DDMWriter.writeLDString(java.lang.String s)
          Write length delimited string
protected  void DDMWriter.writeLDString(java.lang.String s, int index)
          Write length delimited string
protected  void DDMWriter.writeString(java.lang.String s)
          Write string with default encoding
protected  void DDMWriter.writeString(java.lang.String s, int length)
          Write string with default encoding and specified length
protected  void DDMWriter.finalizeChain(byte currChainByte, java.io.OutputStream socketOutputStream)
          Finalize the current DSS chain and send it if needed.
protected  boolean DDMReader.isCmd()
          Check for the command protocol
protected  int DDMReader.readDssHeader()
          Read DSS header DSS Header format is 2 bytes - length 1 byte - 'D0' - indicates DDM data 1 byte - DSS format |---|---------|----------| | 0 | flags | type | |---|---------|----------| | 0 | 1 2 3 | 4 5 6 7 | |---|---------|----------| bit 0 - '0' bit 1 - '0' - unchained, '1' - chained bit 2 - '0' - do not continue on error, '1' - continue on error bit 3 - '0' - next DSS has different correlator, '1' - next DSS has same correlator type - 1 - Request DSS - 2 - Reply DSS - 3 - Object DSS - 4 - Communications DSS - 5 - Request DSS where no reply is expected 2 bytes - request correlation id
protected  void DDMReader.readReplyDss()
          Read Reply DSS This is used in testing the protocol.
protected  int DDMReader.readLengthAndCodePoint()
          Read the DDM Length and CodePoint
protected  int DDMReader.getCodePoint()
          Get the next CodePoint from a collection
protected  int DDMReader.getCodePoint(int codePointCheck)
          Get the next CodePoint from a collection and check that it matches the specified CodePoint
protected  byte DDMReader.readByte()
          Read byte value
protected  int DDMReader.readUnsignedByte()
          Read byte value and mask out high order bytes before returning
protected  int DDMReader.readNetworkShort()
          Read network short value
protected  int DDMReader.readSignedNetworkShort()
          Read signed network short value
protected  short DDMReader.readShort(int byteOrder)
          Read platform short value
protected  int DDMReader.readNetworkInt()
          Read network int value
protected  int DDMReader.readInt(int byteOrder)
          Read platform int value
protected  long DDMReader.readNetworkLong()
          Read network long value
protected  long DDMReader.readNetworkSixByteLong()
          Read network six byte value and put it in a long v
protected  long DDMReader.readLong(int byteOrder)
          Read platform long value
protected  float DDMReader.readFloat(int byteOrder)
          Read platform float value
protected  double DDMReader.readDouble(int byteOrder)
          Read platform double value
protected  java.math.BigDecimal DDMReader.readBigDecimal(int precision, int scale)
          Read a BigDecimal value
(package private)  byte[] DDMReader.getExtData(boolean checkNullability)
           
(package private)  byte[] DDMReader.getExtData(long desiredLength, boolean checkNullability)
           
private  void DDMReader.readDSSContinuationHeader()
           
private  boolean DDMReader.isEXTDTANull()
           
protected  boolean DDMReader.readBoolean()
          Read boolean value
protected  java.lang.String DDMReader.readEncryptedString(DecryptionManager decryptM, int securityMechanism, byte[] initVector, byte[] sourcePublicKey)
          Read encrypted string
protected  java.lang.String DDMReader.readString(int length)
          Read string value Strings in DRDA protocol are encoded in EBCDIC by default so we need to convert to UCS2
protected  java.lang.String DDMReader.readString(int length, java.lang.String encoding)
          Read encoded string value
protected  java.lang.String DDMReader.readStringData()
          Read string value in DDM data with default encoding
protected  java.lang.String DDMReader.readStringData(int length)
          Read specified length of string value in DDM data with default encoding
protected  java.lang.String DDMReader.readLDStringData(java.lang.String encoding)
          Read length delimited string value in DDM data with default encoding
protected  java.lang.String DDMReader.readString()
          Read string value
protected  byte[] DDMReader.readBytes(int length)
          Read byte string value
protected  byte[] DDMReader.readBytes()
          Read byte string value
protected  void DDMReader.skipBytes(int length)
          Skip byte string value
protected  void DDMReader.skipBytes()
          Skip byte string value
protected  void DDMReader.skipDss()
          Skip remaining DSS
protected  void DDMReader.clearBuffer()
           
protected  java.lang.String DDMReader.readCmdString(int length)
          Read string value
protected  java.lang.String DDMReader.readCmdString()
          Read string value
private  void DDMReader.ensureALayerDataInBuffer(int desiredDataSize)
          Make sure a certain amount of Layer A data is in the buffer.
private  void DDMReader.ensureBLayerDataInBuffer(int desiredDataSize, boolean adjustLen)
          Make sure a certain amount of Layer B data is in the buffer.
private  void DDMReader.compressBLayerData(int continueDssHeaderCount)
          Compress B Layer data if e