/** * Get the next CodePoint from a collection * @return NO_CODEPOINT if collection stack is empty or remaining length is * 0; otherwise, read length and code point * * @exception DRDProtocolException */ protected int getCodePoint() throws DRDAProtocolException { if (topDdmCollectionStack == EMPTY_STACK) { return NO_CODEPOINT; } else { // if the collecion is exhausted then return NO_CODEPOINT if (ddmCollectionLenStack[topDdmCollectionStack] == 0) { // done with this collection so remove it's length from the stack ddmCollectionLenStack[topDdmCollectionStack--] = 0; return NO_CODEPOINT; } else { return readLengthAndCodePoint( false ); } } } /**
/** * Get the next CodePoint from a collection * @return NO_CODEPOINT if collection stack is empty or remaining length is * 0; otherwise, read length and code point * * @exception DRDProtocolException */ protected int getCodePoint() throws DRDAProtocolException { if (topDdmCollectionStack == EMPTY_STACK) { return NO_CODEPOINT; } else { // if the collecion is exhausted then return NO_CODEPOINT if (ddmCollectionLenStack[topDdmCollectionStack] == 0) { // done with this collection so remove it's length from the stack ddmCollectionLenStack[topDdmCollectionStack--] = 0; return NO_CODEPOINT; } else { return readLengthAndCodePoint( false ); } } } /**
/** * Get the next CodePoint from a collection * @return NO_CODEPOINT if collection stack is empty or remaining length is * 0; otherwise, read length and code point * * @exception DRDProtocolException */ protected int getCodePoint() throws DRDAProtocolException { if (topDdmCollectionStack == EMPTY_STACK) { return NO_CODEPOINT; } else { // if the collecion is exhausted then return NO_CODEPOINT if (ddmCollectionLenStack[topDdmCollectionStack] == 0) { // done with this collection so remove it's length from the stack ddmCollectionLenStack[topDdmCollectionStack--] = 0; return NO_CODEPOINT; } else { return readLengthAndCodePoint( false ); } } } /**
/** * Skip the a Ddm communication */ private void skipDdm() throws DRDAProtocolException { reader.readLengthAndCodePoint( false ); reader.skipBytes(); } /**
/** * Skip the a Ddm communication */ private void skipDdm() throws DRDAProtocolException { reader.readLengthAndCodePoint( false ); reader.skipBytes(); } /**
/** * Skip the a Ddm communication */ private void skipDdm() throws DRDAProtocolException { reader.readLengthAndCodePoint( false ); reader.skipBytes(); } /**
/** * Read length and codepoint and check against required values * * @exception IOException, DRDAProtocolException error reading file or protocol */ private void readLengthAndCodePoint() throws IOException, DRDAProtocolException { int codepoint = reader.readLengthAndCodePoint( false ); int reqCP = getCP(); if (codepoint != reqCP) cpError(codepoint, reqCP); }
/** * Read length and codepoint and check against required values * * @exception IOException, DRDAProtocolException error reading file or protocol */ private void readLengthAndCodePoint() throws IOException, DRDAProtocolException { int codepoint = reader.readLengthAndCodePoint( false ); int reqCP = getCP(); if (codepoint != reqCP) cpError(codepoint, reqCP); }
/** * Read length and codepoint and check against required values * * @exception IOException, DRDAProtocolException error reading file or protocol */ private void readLengthAndCodePoint() throws IOException, DRDAProtocolException { int codepoint = reader.readLengthAndCodePoint( false ); int reqCP = getCP(); if (codepoint != reqCP) cpError(codepoint, reqCP); }
/** * Parse SQLSTT Dss * @exception DRDAProtocolException */ private String parseSQLSTTDss() throws DRDAProtocolException { correlationID = reader.readDssHeader(); int codePoint = reader.readLengthAndCodePoint( false ); String strVal = parseEncodedString(); if (this.trace) trace("SQL Statement = " + strVal); return strVal; }
/** * Parse SQLSTT Dss * @exception DRDAProtocolException */ private String parseSQLSTTDss() throws DRDAProtocolException { correlationID = reader.readDssHeader(); int codePoint = reader.readLengthAndCodePoint( false ); String strVal = parseEncodedString(); if (this.trace) trace("SQL Statement = " + strVal); return strVal; }
/** * Parse SQLSTT Dss * @exception DRDAProtocolException */ private String parseSQLSTTDss() throws DRDAProtocolException { correlationID = reader.readDssHeader(); int codePoint = reader.readLengthAndCodePoint( false ); String strVal = parseEncodedString(); if (this.trace) trace("SQL Statement = " + strVal); return strVal; }
/** * Parse CNTQRY objects * Instance Variables * OUTOVR - Output Override Descriptor - optional * * @param stmt DRDA statement we are working on * @exception DRDAProtocolException */ private void parseCNTQRYobjects(DRDAStatement stmt) throws DRDAProtocolException, SQLException { int codePoint; do { correlationID = reader.readDssHeader(); while (reader.moreDssData()) { codePoint = reader.readLengthAndCodePoint( false ); switch(codePoint) { // optional case CodePoint.OUTOVR: parseOUTOVR(stmt); break; default: invalidCodePoint(codePoint); } } } while (reader.isChainedWithSameID()); } /**
/** * Parse CNTQRY objects * Instance Variables * OUTOVR - Output Override Descriptor - optional * * @param stmt DRDA statement we are working on * @exception DRDAProtocolException */ private void parseCNTQRYobjects(DRDAStatement stmt) throws DRDAProtocolException, SQLException { int codePoint; do { correlationID = reader.readDssHeader(); while (reader.moreDssData()) { codePoint = reader.readLengthAndCodePoint( false ); switch(codePoint) { // optional case CodePoint.OUTOVR: parseOUTOVR(stmt); break; default: invalidCodePoint(codePoint); } } } while (reader.isChainedWithSameID()); } /**
private void readAndSetAllExtParams(final DRDAStatement stmt, final boolean streamLOB) throws SQLException, DRDAProtocolException { final int numExt = stmt.getExtPositionCount(); for (int i = 0; i < numExt; i++) { int paramPos = stmt.getExtPosition(i); // Only the last EXTDTA is streamed. This is because all of // the parameters have to be set before execution and are // consecutive in the network server stream, so only the last // one can be streamed. final boolean doStreamLOB = (streamLOB && i == numExt -1); readAndSetExtParam(paramPos, stmt, stmt.getParamDRDAType(paramPos+1), stmt.getParamLen(paramPos+1), doStreamLOB); // Each extdta in it's own dss if (i < numExt -1) { correlationID = reader.readDssHeader(); int codePoint = reader.readLengthAndCodePoint( true ); } } }
private void readAndSetAllExtParams(final DRDAStatement stmt, final boolean streamLOB) throws SQLException, DRDAProtocolException { final int numExt = stmt.getExtPositionCount(); for (int i = 0; i < numExt; i++) { int paramPos = stmt.getExtPosition(i); // Only the last EXTDTA is streamed. This is because all of // the parameters have to be set before execution and are // consecutive in the network server stream, so only the last // one can be streamed. final boolean doStreamLOB = (streamLOB && i == numExt -1); readAndSetExtParam(paramPos, stmt, stmt.getParamDRDAType(paramPos+1), stmt.getParamLen(paramPos+1), doStreamLOB); // Each extdta in it's own dss if (i < numExt -1) { correlationID = reader.readDssHeader(); int codePoint = reader.readLengthAndCodePoint( true ); } } }
private void readAndSetAllExtParams(final DRDAStatement stmt, final boolean streamLOB) throws SQLException, DRDAProtocolException { final int numExt = stmt.getExtPositionCount(); for (int i = 0; i < numExt; i++) { int paramPos = stmt.getExtPosition(i); // Only the last EXTDTA is streamed. This is because all of // the parameters have to be set before execution and are // consecutive in the network server stream, so only the last // one can be streamed. final boolean doStreamLOB = (streamLOB && i == numExt -1); readAndSetExtParam(paramPos, stmt, stmt.getParamDRDAType(paramPos+1), stmt.getParamLen(paramPos+1), doStreamLOB); // Each extdta in it's own dss if (i < numExt -1) { correlationID = reader.readDssHeader(); int codePoint = reader.readLengthAndCodePoint( true ); } } }
codePoint = reader.readLengthAndCodePoint( false );
codePoint = reader.readLengthAndCodePoint( false );
codePoint = reader.readLengthAndCodePoint( false );