protected String parseFastVCS() throws DisconnectException { // doublecheck what readString() does if the length is 0 return readFastString(readFastUnsignedShort(), netAgent_.targetTypdef_.getCcsidSbcEncoding()); } //----------------------non-parsing computational helper methods--------------
protected String parseFastVCS() throws DisconnectException { // doublecheck what readString() does if the length is 0 return readFastString(readFastUnsignedShort(), netAgent_.targetTypdef_.getCcsidSbcEncoding()); } //----------------------non-parsing computational helper methods--------------
private String parseVCS(Typdef typdefInEffect) throws DisconnectException, SqlException { return readFdocaString(readFdocaTwoByteLength(), typdefInEffect.getCcsidSbcEncoding()); }
private String parseVCS(Typdef typdefInEffect) throws DisconnectException, SqlException { return readFdocaString(readFdocaTwoByteLength(), typdefInEffect.getCcsidSbcEncoding()); }
private String parseFastVCMorVCS() throws DisconnectException { String stringToBeSet = null; int vcm_length = readFastUnsignedShort(); if (vcm_length > 0) { stringToBeSet = readFastString(vcm_length, netAgent_.targetTypdef_.getCcsidMbcEncoding()); } int vcs_length = readFastUnsignedShort(); if (vcm_length > 0 && vcs_length > 0) { agent_.accumulateChainBreakingReadExceptionAndThrow(new DisconnectException(agent_, new ClientMessageId(SQLState.NET_VCM_VCS_LENGTHS_INVALID))); } else if (vcs_length > 0) { stringToBeSet = readFastString(vcs_length, netAgent_.targetTypdef_.getCcsidSbcEncoding()); } return stringToBeSet; }
private String parseVCMorVCS() throws DisconnectException { String stringToBeSet = null; int vcm_length = readUnsignedShort(); if (vcm_length > 0) { stringToBeSet = readString(vcm_length, netAgent_.targetTypdef_.getCcsidMbcEncoding()); } int vcs_length = readUnsignedShort(); if (vcm_length > 0 && vcs_length > 0) { agent_.accumulateChainBreakingReadExceptionAndThrow(new DisconnectException(agent_, new ClientMessageId(SQLState.NET_VCM_VCS_LENGTHS_INVALID))); } else if (vcs_length > 0) { stringToBeSet = readString(vcs_length, netAgent_.targetTypdef_.getCcsidSbcEncoding()); } return stringToBeSet; }
private String parseVCMorVCS() throws DisconnectException { String stringToBeSet = null; int vcm_length = readUnsignedShort(); if (vcm_length > 0) { stringToBeSet = readString(vcm_length, netAgent_.targetTypdef_.getCcsidMbcEncoding()); } int vcs_length = readUnsignedShort(); if (vcm_length > 0 && vcs_length > 0) { agent_.accumulateChainBreakingReadExceptionAndThrow(new DisconnectException(agent_, new ClientMessageId(SQLState.NET_VCM_VCS_LENGTHS_INVALID))); } else if (vcs_length > 0) { stringToBeSet = readString(vcs_length, netAgent_.targetTypdef_.getCcsidSbcEncoding()); } return stringToBeSet; }
private String parseFastVCMorVCS() throws DisconnectException { String stringToBeSet = null; int vcm_length = readFastUnsignedShort(); if (vcm_length > 0) { stringToBeSet = readFastString(vcm_length, netAgent_.targetTypdef_.getCcsidMbcEncoding()); } int vcs_length = readFastUnsignedShort(); if (vcm_length > 0 && vcs_length > 0) { agent_.accumulateChainBreakingReadExceptionAndThrow(new DisconnectException(agent_, new ClientMessageId(SQLState.NET_VCM_VCS_LENGTHS_INVALID))); } else if (vcs_length > 0) { stringToBeSet = readFastString(vcs_length, netAgent_.targetTypdef_.getCcsidSbcEncoding()); } return stringToBeSet; }
private NetSqlca parseSQLDCGRP() throws DisconnectException, SqlException { int sqldcCode = readFdocaInt(); // SQLCODE String sqldcState = readFdocaString(5, netAgent_.targetTypdef_.getCcsidSbcEncoding()); // SQLSTATE int sqldcReason = readFdocaInt(); // REASON_CODE skipFdocaBytes(12); // LINE_NUMBER + ROW_NUMBER NetSqlca sqlca = new NetSqlca(netAgent_.netConnection_, sqldcCode, sqldcState, (byte[]) null); skipFdocaBytes(49); // SQLDCER01-04 + SQLDCPART + SQLDCPPOP + SQLDCMSGID // SQLDCMDE + SQLDCPMOD + RDBNAME parseSQLDCTOKS(); // MESSAGE_TOKENS String sqldcMsg = parseVCS(qrydscTypdef_); // MESSAGE_TEXT if (sqldcMsg != null) { sqlca.setSqlerrmcBytes(sqldcMsg.getBytes(), netAgent_.targetTypdef_.getByteOrder()); } skipFdocaBytes(12); // COLUMN_NAME + PARAMETER_NAME + EXTENDED_NAMES parseSQLDCXGRP(); // SQLDCXGRP return sqlca; }
private NetSqlca parseSQLDCGRP() throws DisconnectException, SqlException { int sqldcCode = readFdocaInt(); // SQLCODE String sqldcState = readFdocaString(5, netAgent_.targetTypdef_.getCcsidSbcEncoding()); // SQLSTATE int sqldcReason = readFdocaInt(); // REASON_CODE skipFdocaBytes(12); // LINE_NUMBER + ROW_NUMBER NetSqlca sqlca = new NetSqlca(netAgent_.netConnection_, sqldcCode, sqldcState, (byte[]) null); skipFdocaBytes(49); // SQLDCER01-04 + SQLDCPART + SQLDCPPOP + SQLDCMSGID // SQLDCMDE + SQLDCPMOD + RDBNAME parseSQLDCTOKS(); // MESSAGE_TOKENS String sqldcMsg = parseVCS(qrydscTypdef_); // MESSAGE_TEXT if (sqldcMsg != null) { sqlca.setSqlerrmcBytes(sqldcMsg.getBytes(), netAgent_.targetTypdef_.getByteOrder()); } skipFdocaBytes(12); // COLUMN_NAME + PARAMETER_NAME + EXTENDED_NAMES parseSQLDCXGRP(); // SQLDCXGRP return sqlca; }
private String parseSQLSTTGRP() throws DisconnectException { int mixedNullInd = readUnsignedByte(); int singleNullInd = 0; String sqlsttString = null; int stringLength = 0; if (mixedNullInd == CodePoint.NULLDATA) { singleNullInd = readUnsignedByte(); if (singleNullInd == CodePoint.NULLDATA) { // throw DTAMCHRM doDtamchrmSemantics(); } // read 4-byte length stringLength = readInt(); // read sqlstt string sqlsttString = readString(stringLength, netAgent_.targetTypdef_.getCcsidSbcEncoding()); } else { // read 4-byte length stringLength = readInt(); // read sqlstt string sqlsttString = readString(stringLength, netAgent_.targetTypdef_.getCcsidMbcEncoding()); // read null indicator singleNullInd = readUnsignedByte(); } return sqlsttString; }
private String parseSQLSTTGRPNOCMorNOCS() throws DisconnectException { int mixedNullInd = readUnsignedByte(); int singleNullInd = 0; String sqlsttString = null; int stringLength = 0; if (mixedNullInd == CodePoint.NULLDATA) { singleNullInd = readUnsignedByte(); if (singleNullInd == CodePoint.NULLDATA) { // throw DTAMCHRM doDtamchrmSemantics(); } // read 4-byte length stringLength = readInt(); // read sqlstt string sqlsttString = readString(stringLength, netAgent_.targetTypdef_.getCcsidSbcEncoding()); } else { // read 4-byte length stringLength = readInt(); // read sqlstt string sqlsttString = readString(stringLength, netAgent_.targetTypdef_.getCcsidMbcEncoding()); // read null indicator singleNullInd = readUnsignedByte(); } return sqlsttString; }
private String parseSQLSTTGRP() throws DisconnectException { int mixedNullInd = readUnsignedByte(); int singleNullInd = 0; String sqlsttString = null; int stringLength = 0; if (mixedNullInd == CodePoint.NULLDATA) { singleNullInd = readUnsignedByte(); if (singleNullInd == CodePoint.NULLDATA) { // throw DTAMCHRM doDtamchrmSemantics(); } // read 4-byte length stringLength = readInt(); // read sqlstt string sqlsttString = readString(stringLength, netAgent_.targetTypdef_.getCcsidSbcEncoding()); } else { // read 4-byte length stringLength = readInt(); // read sqlstt string sqlsttString = readString(stringLength, netAgent_.targetTypdef_.getCcsidMbcEncoding()); // read null indicator singleNullInd = readUnsignedByte(); } return sqlsttString; }
private String parseSQLSTTGRPNOCMorNOCS() throws DisconnectException { int mixedNullInd = readUnsignedByte(); int singleNullInd = 0; String sqlsttString = null; int stringLength = 0; if (mixedNullInd == CodePoint.NULLDATA) { singleNullInd = readUnsignedByte(); if (singleNullInd == CodePoint.NULLDATA) { // throw DTAMCHRM doDtamchrmSemantics(); } // read 4-byte length stringLength = readInt(); // read sqlstt string sqlsttString = readString(stringLength, netAgent_.targetTypdef_.getCcsidSbcEncoding()); } else { // read 4-byte length stringLength = readInt(); // read sqlstt string sqlsttString = readString(stringLength, netAgent_.targetTypdef_.getCcsidMbcEncoding()); // read null indicator singleNullInd = readUnsignedByte(); } return sqlsttString; }
private String parseFastNVCMorNVCS() throws DisconnectException { String stringToBeSet = null; int vcm_length = 0; int vcs_length = 0; if (readFastUnsignedByte() != CodePoint.NULLDATA) { vcm_length = readFastUnsignedShort(); if (vcm_length > 0) { stringToBeSet = readFastString(vcm_length, netAgent_.targetTypdef_.getCcsidMbcEncoding()); } if (readFastUnsignedByte() != CodePoint.NULLDATA) { agent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(agent_, new ClientMessageId( SQLState.NET_NVCM_NVCS_BOTH_NON_NULL))); } } else { if (readFastUnsignedByte() != CodePoint.NULLDATA) { vcs_length = readFastUnsignedShort(); if (vcs_length > 0) { stringToBeSet = readFastString(vcs_length, netAgent_.targetTypdef_.getCcsidSbcEncoding()); } } } return stringToBeSet; }
private String parseFastNVCMorNVCS() throws DisconnectException { String stringToBeSet = null; int vcm_length = 0; int vcs_length = 0; if (readFastUnsignedByte() != CodePoint.NULLDATA) { vcm_length = readFastUnsignedShort(); if (vcm_length > 0) { stringToBeSet = readFastString(vcm_length, netAgent_.targetTypdef_.getCcsidMbcEncoding()); } if (readFastUnsignedByte() != CodePoint.NULLDATA) { agent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(agent_, new ClientMessageId( SQLState.NET_NVCM_NVCS_BOTH_NON_NULL))); } } else { if (readFastUnsignedByte() != CodePoint.NULLDATA) { vcs_length = readFastUnsignedShort(); if (vcs_length > 0) { stringToBeSet = readFastString(vcs_length, netAgent_.targetTypdef_.getCcsidSbcEncoding()); } } } return stringToBeSet; }
netCursor.charsetName_[columnIndex] = getCcsidSbcEncoding(); netCursor.ccsid_[columnIndex] = this.ccsidSbc_; break;
netCursor.charsetName_[columnIndex] = getCcsidSbcEncoding(); netCursor.ccsid_[columnIndex] = this.ccsidSbc_; break;