bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
private void skipRemainder(boolean onlySkipSameIds) throws DRDAProtocolException { reader.skipDss(); while (reader.isChainedWithSameID() || (!onlySkipSameIds && reader.isChainedWithDiffID())) { reader.readDssHeader(); reader.skipDss(); } } | private void skipRemainder(boolean onlySkipSameIds) throws DRDAProtocolException { reader.skipDss(); while (reader.isChainedWithSameID() || (!onlySkipSameIds && reader.isChainedWithDiffID())) { reader.readDssHeader(); reader.skipDss(); | 1,105,223 |
private void verifyInOrderACCSEC_SECCHK(int codePoint, int reqCodePoint) throws DRDAProtocolException { if (codePoint != reqCodePoint ) { throw new DRDAProtocolException(DRDAProtocolException.DRDA_Proto_PRCCNVRM, this, codePoint, CodePoint.PRCCNVCD_ACCSEC_SECCHK_WRONG_STATE); } } | private void verifyInOrderACCSEC_SECCHK(int codePoint, int reqCodePoint) throws DRDAProtocolException { if (codePoint != reqCodePoint ) { throw new DRDAProtocolException(DRDAProtocolException.DRDA_Proto_PRCCNVRM, this, codePoint, CodePoint.PRCCNVCD_ACCSEC_SECCHK_WRONG_STATE); } } | 1,105,224 |
private void verifyInOrderACCSEC_SECCHK(int codePoint, int reqCodePoint) throws DRDAProtocolException { if (codePoint != reqCodePoint ) { throw new DRDAProtocolException(DRDAProtocolException.DRDA_Proto_PRCCNVRM, this, codePoint, CodePoint.PRCCNVCD_ACCSEC_SECCHK_WRONG_STATE); } } | private void verifyInOrderACCSEC_SECCHK(int codePoint, int reqCodePoint) throws DRDAProtocolException { if (codePoint != reqCodePoint ) { throw new DRDAProtocolException(DRDAProtocolException.DRDA_Proto_PRCCNVRM, this, codePoint, CodePoint.PRCCNVCD_ACCSEC_SECCHK_WRONG_STATE); | 1,105,225 |
private void verifyRequiredObject(int codePoint, int reqCodePoint) throws DRDAProtocolException { if (codePoint != reqCodePoint ) { throwSyntaxrm(CodePoint.SYNERRCD_REQ_OBJ_NOT_FOUND,codePoint); } } | private void verifyRequiredObject(int codePoint, int reqCodePoint) throws DRDAProtocolException { if (codePoint != reqCodePoint ) { throwSyntaxrm(CodePoint.SYNERRCD_REQ_OBJ_NOT_FOUND,codePoint); } } | 1,105,226 |
private void verifyRequiredObject(int codePoint, int reqCodePoint) throws DRDAProtocolException { if (codePoint != reqCodePoint ) { throwSyntaxrm(CodePoint.SYNERRCD_REQ_OBJ_NOT_FOUND,codePoint); } } | private void verifyRequiredObject(int codePoint, int reqCodePoint) throws DRDAProtocolException { if (codePoint != reqCodePoint ) { throwSyntaxrm(CodePoint.SYNERRCD_REQ_OBJ_NOT_FOUND,codePoint); | 1,105,227 |
private void writeACCSECRD(int securityCheckCode) throws DRDAProtocolException { writer.createDssReply(); writer.startDdm(CodePoint.ACCSECRD); if (securityCheckCode != CodePoint.SECCHKCD_NOTSUPPORTED) writer.writeScalar2Bytes(CodePoint.SECMEC, database.securityMechanism); else { // if server doesnt recogni... | private void writeACCSECRD(int securityCheckCode) throws DRDAProtocolException { writer.createDssReply(); writer.startDdm(CodePoint.ACCSECRD); if (securityCheckCode != CodePoint.SECCHKCD_NOTSUPPORTED) writer.writeScalar2Bytes(CodePoint.SECMEC, database.securityMechanism); else { // if server doesnt recogni... | 1,105,228 |
private void writeACCSECRD(int securityCheckCode) throws DRDAProtocolException { writer.createDssReply(); writer.startDdm(CodePoint.ACCSECRD); if (securityCheckCode != CodePoint.SECCHKCD_NOTSUPPORTED) writer.writeScalar2Bytes(CodePoint.SECMEC, database.securityMechanism); else { // if server doesnt recogni... | private void writeACCSECRD(int securityCheckCode) throws DRDAProtocolException { writer.createDssReply(); writer.startDdm(CodePoint.ACCSECRD); if (securityCheckCode != CodePoint.SECCHKCD_NOTSUPPORTED) writer.writeScalar2Bytes(CodePoint.SECMEC, database.securityMechanism); else { // if server doesnt recogni... | 1,105,229 |
void writeEXTDTA (DRDAStatement stmt) throws SQLException, DRDAProtocolException { ArrayList extdtaValues = stmt.getExtDtaObjects(); // build the EXTDTA data, if necessary if (extdtaValues == null) return; boolean chainFlag, chainedWithSameCorrelator; boolean writeNullByte = false; for (int i = 0; i < extdtaVa... | void writeEXTDTA (DRDAStatement stmt) throws SQLException, DRDAProtocolException { ArrayList extdtaValues = stmt.getExtDtaObjects(); // build the EXTDTA data, if necessary if (extdtaValues == null) return; boolean chainFlag, chainedWithSameCorrelator; boolean writeNullByte = false; for (int i = 0; i < extdtaVa... | 1,105,230 |
void writeEXTDTA (DRDAStatement stmt) throws SQLException, DRDAProtocolException { ArrayList extdtaValues = stmt.getExtDtaObjects(); // build the EXTDTA data, if necessary if (extdtaValues == null) return; boolean chainFlag, chainedWithSameCorrelator; boolean writeNullByte = false; for (int i = 0; i < extdtaVa... | void writeEXTDTA (DRDAStatement stmt) throws SQLException, DRDAProtocolException { ArrayList extdtaValues = stmt.getExtDtaObjects(); // build the EXTDTA data, if necessary if (extdtaValues == null) return; boolean chainFlag, chainedWithSameCorrelator; boolean writeNullByte = false; for (int i = 0; i < extdtaVa... | 1,105,231 |
private boolean writeFDODTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean hasdata = false; int blksize = stmt.getBlksize() > 0 ? stmt.getBlksize() : CodePoint.QRYBLKSZ_MAX; long rowCount = 0; ResultSet rs =null; boolean moreData = (stmt.getQryprctyp() == CodePoint.LMTBLKPRC); int ... | private boolean writeFDODTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean hasdata = false; int blksize = stmt.getBlksize() > 0 ? stmt.getBlksize() : CodePoint.QRYBLKSZ_MAX; long rowCount = 0; ResultSet rs =null; boolean moreData = (stmt.getQryprctyp() == CodePoint.LMTBLKPRC); int ... | 1,105,232 |
private boolean writeFDODTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean hasdata = false; int blksize = stmt.getBlksize() > 0 ? stmt.getBlksize() : CodePoint.QRYBLKSZ_MAX; long rowCount = 0; ResultSet rs =null; boolean moreData = (stmt.getQryprctyp() == CodePoint.LMTBLKPRC); int ... | private boolean writeFDODTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean hasdata = false; int blksize = stmt.getBlksize() > 0 ? stmt.getBlksize() : CodePoint.QRYBLKSZ_MAX; long rowCount = 0; ResultSet rs =null; boolean moreData = (stmt.getQryprctyp() == CodePoint.LMTBLKPRC); int ... | 1,105,233 |
protected void writeFdocaVal(int index, Object val, int drdaType, int precision, int scale, boolean valNull, DRDAStatement stmt) throws DRDAProtocolException, SQLException { writeNullability(drdaType,valNull); if (! valNull) { int ndrdaType = drdaType | 1; long valLength = 0; switch (nd... | protected void writeFdocaVal(int index, Object val, int drdaType, int precision, int scale, boolean valNull, DRDAStatement stmt) throws DRDAProtocolException, SQLException { writeNullability(drdaType,valNull); if (! valNull) { int ndrdaType = drdaType | 1; long valLength = 0; switch (nd... | 1,105,234 |
protected void writeFdocaVal(int index, Object val, int drdaType, int precision, int scale, boolean valNull, DRDAStatement stmt) throws DRDAProtocolException, SQLException { writeNullability(drdaType,valNull); if (! valNull) { int ndrdaType = drdaType | 1; long valLength = 0; switch (nd... | protected void writeFdocaVal(int index, Object val, int drdaType, int precision, int scale, boolean valNull, DRDAStatement stmt) throws DRDAProtocolException, SQLException { writeNullability(drdaType,valNull); if (! valNull) { int ndrdaType = drdaType | 1; long valLength = 0; switch (nd... | 1,105,235 |
protected void writeFdocaVal(int index, Object val, int drdaType, int precision, int scale, boolean valNull, DRDAStatement stmt) throws DRDAProtocolException, SQLException { writeNullability(drdaType,valNull); if (! valNull) { int ndrdaType = drdaType | 1; long valLength = 0; switch (nd... | protected void writeFdocaVal(int index, Object val, int drdaType, int precision, int scale, boolean valNull, DRDAStatement stmt) throws DRDAProtocolException, SQLException { writeNullability(drdaType,valNull); if (! valNull) { int ndrdaType = drdaType | 1; long valLength = 0; switch (nd... | 1,105,236 |
private void writeMGRLEVELS() throws DRDAProtocolException { int manager; int appLevel; int serverLevel; writer.startDdm(CodePoint.MGRLVLLS); for (int i = 0; i < knownManagers.size(); i++) { manager = ((Integer)knownManagers.elementAt(i)).intValue(); appLevel = appRequester.getManagerLevel(manager); ser... | private void writeMGRLEVELS() throws DRDAProtocolException { int manager; int appLevel; int serverLevel; writer.startDdm(CodePoint.MGRLVLLS); for (int i = 0; i < knownManagers.size(); i++) { manager = ((Integer)knownManagers.elementAt(i)).intValue(); appLevel = appRequester.getManagerLevel(manager); ser... | 1,105,237 |
private void writeMGRLEVELS() throws DRDAProtocolException { int manager; int appLevel; int serverLevel; writer.startDdm(CodePoint.MGRLVLLS); for (int i = 0; i < knownManagers.size(); i++) { manager = ((Integer)knownManagers.elementAt(i)).intValue(); appLevel = appRequester.getManagerLevel(manager); ser... | private void writeMGRLEVELS() throws DRDAProtocolException { int manager; int appLevel; int serverLevel; writer.startDdm(CodePoint.MGRLVLLS); for (int i = 0; i < knownManagers.size(); i++) { manager = ((Integer)knownManagers.elementAt(i)).intValue(); appLevel = appRequester.getManagerLevel(manager); ser... | 1,105,238 |
private void writeNullability(int drdaType, boolean valNull) { if(FdocaConstants.isNullable(drdaType)) { if (valNull) writer.writeByte(FdocaConstants.NULL_DATA); else { writer.writeByte(FdocaConstants.INDICATOR_NULLABLE); } } } | private void writeNullability(int drdaType, boolean valNull) { if(FdocaConstants.isNullable(drdaType)) { if (valNull) writer.writeByte(FdocaConstants.NULL_DATA); else { writer.writeByte(FdocaConstants.INDICATOR_NULLABLE); } } } | 1,105,239 |
private void writeNullability(int drdaType, boolean valNull) { if(FdocaConstants.isNullable(drdaType)) { if (valNull) writer.writeByte(FdocaConstants.NULL_DATA); else { writer.writeByte(FdocaConstants.INDICATOR_NULLABLE); } } } | private void writeNullability(int drdaType, boolean valNull) { if(FdocaConstants.isNullable(drdaType)) { if (valNull) writer.writeByte(FdocaConstants.NULL_DATA); else { writer.writeByte(FdocaConstants.INDICATOR_NULLABLE); | 1,105,240 |
private void writeOPNQRYRM(boolean isDssObject, DRDAStatement stmt) throws DRDAProtocolException, SQLException { if (SanityManager.DEBUG) trace("WriteOPNQRYRM"); if (isDssObject) writer.createDssObject(); else writer.createDssReply(); writer.startDdm(CodePoint.OPNQRYRM); writer.writeScalar2Bytes(CodePo... | private void writeOPNQRYRM(boolean isDssObject, DRDAStatement stmt) throws DRDAProtocolException, SQLException { if (SanityManager.DEBUG) trace("WriteOPNQRYRM"); if (isDssObject) writer.createDssObject(); else writer.createDssReply(); writer.startDdm(CodePoint.OPNQRYRM); writer.writeScalar2Bytes(CodePo... | 1,105,241 |
private void writeOPNQRYRM(boolean isDssObject, DRDAStatement stmt) throws DRDAProtocolException, SQLException { if (SanityManager.DEBUG) trace("WriteOPNQRYRM"); if (isDssObject) writer.createDssObject(); else writer.createDssReply(); writer.startDdm(CodePoint.OPNQRYRM); writer.writeScalar2Bytes(CodePo... | private void writeOPNQRYRM(boolean isDssObject, DRDAStatement stmt) throws DRDAProtocolException, SQLException { if (SanityManager.DEBUG) trace("WriteOPNQRYRM"); if (isDssObject) writer.createDssObject(); else writer.createDssReply(); writer.startDdm(CodePoint.OPNQRYRM); writer.writeScalar2Bytes(CodePo... | 1,105,242 |
private void writeOPNQRYRM(boolean isDssObject, DRDAStatement stmt) throws DRDAProtocolException, SQLException { if (SanityManager.DEBUG) trace("WriteOPNQRYRM"); if (isDssObject) writer.createDssObject(); else writer.createDssReply(); writer.startDdm(CodePoint.OPNQRYRM); writer.writeScalar2Bytes(CodePo... | private void writeOPNQRYRM(boolean isDssObject, DRDAStatement stmt) throws DRDAProtocolException, SQLException { if (SanityManager.DEBUG) trace("WriteOPNQRYRM"); if (isDssObject) writer.createDssObject(); else writer.createDssReply(); writer.startDdm(CodePoint.OPNQRYRM); writer.writeScalar2Bytes(CodePo... | 1,105,243 |
private void writePKGNAMCSN(byte[] pkgcnstkn) throws DRDAProtocolException { writer.startDdm(CodePoint.PKGNAMCSN); if (rdbnam.length() <= CodePoint.RDBNAM_LEN && rdbcolid.length() <= CodePoint.RDBCOLID_LEN && pkgid.length() <= CodePoint.PKGID_LEN) { // if none of RDBNAM, RDBCOLID and PKGID have a lengt... | private void writePKGNAMCSN(byte[] pkgcnstkn) throws DRDAProtocolException { writer.startDdm(CodePoint.PKGNAMCSN); if (rdbnam.length() <= CodePoint.RDBNAM_LEN && rdbcolid.length() <= CodePoint.RDBCOLID_LEN && pkgid.length() <= CodePoint.PKGID_LEN) { // if none of RDBNAM, RDBCOLID and PKGID have a lengt... | 1,105,244 |
private void writePKGNAMCSN(byte[] pkgcnstkn) throws DRDAProtocolException { writer.startDdm(CodePoint.PKGNAMCSN); if (rdbnam.length() <= CodePoint.RDBNAM_LEN && rdbcolid.length() <= CodePoint.RDBCOLID_LEN && pkgid.length() <= CodePoint.PKGID_LEN) { // if none of RDBNAM, RDBCOLID and PKGID have a lengt... | private void writePKGNAMCSN(byte[] pkgcnstkn) throws DRDAProtocolException { writer.startDdm(CodePoint.PKGNAMCSN); if (rdbnam.length() <= CodePoint.RDBNAM_LEN && rdbcolid.length() <= CodePoint.RDBCOLID_LEN && pkgid.length() <= CodePoint.PKGID_LEN) { // if none of RDBNAM, RDBCOLID and PKGID have a lengt... | 1,105,245 |
private void writeQRYDSC(DRDAStatement stmt, boolean FDODSConly) throws DRDAProtocolException, SQLException { ResultSet rs = null; ResultSetMetaData rsmeta = null; EmbedParameterSetMetaData pmeta = null; if (!stmt.needsToSendParamData) rs = stmt.getResultSet(); if (rs == null) // this is a CallableStatement, u... | private void writeQRYDSC(DRDAStatement stmt, boolean FDODSConly) throws DRDAProtocolException, SQLException { ResultSet rs = null; ResultSetMetaData rsmeta = null; EmbedParameterSetMetaData pmeta = null; if (!stmt.needsToSendParamData) rs = stmt.getResultSet(); if (rs == null) // this is a CallableStatement, u... | 1,105,246 |
private void writeQRYDSC(DRDAStatement stmt, boolean FDODSConly) throws DRDAProtocolException, SQLException { ResultSet rs = null; ResultSetMetaData rsmeta = null; EmbedParameterSetMetaData pmeta = null; if (!stmt.needsToSendParamData) rs = stmt.getResultSet(); if (rs == null) // this is a CallableStatement, u... | private void writeQRYDSC(DRDAStatement stmt, boolean FDODSConly) throws DRDAProtocolException, SQLException { ResultSet rs = null; ResultSetMetaData rsmeta = null; EmbedParameterSetMetaData pmeta = null; if (!stmt.needsToSendParamData) rs = stmt.getResultSet(); if (rs == null) // this is a CallableStatement, u... | 1,105,247 |
private void writeQRYDTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean getMoreData = true; boolean sentExtData = false; int startLength = 0; writer.createDssObject(); if (SanityManager.DEBUG) trace("Write QRYDTA"); writer.startDdm(CodePoint.QRYDTA); // Check to see if there was lef... | private void writeQRYDTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean getMoreData = true; boolean sentExtData = false; int startLength = 0; writer.createDssObject(); if (SanityManager.DEBUG) trace("Write QRYDTA"); writer.startDdm(CodePoint.QRYDTA); // Check to see if there was lef... | 1,105,248 |
private void writeQRYDTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean getMoreData = true; boolean sentExtData = false; int startLength = 0; writer.createDssObject(); if (SanityManager.DEBUG) trace("Write QRYDTA"); writer.startDdm(CodePoint.QRYDTA); // Check to see if there was lef... | private void writeQRYDTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean getMoreData = true; boolean sentExtData = false; int startLength = 0; writer.createDssObject(); if (SanityManager.DEBUG) trace("Write QRYDTA"); writer.startDdm(CodePoint.QRYDTA); // Check to see if there was lef... | 1,105,249 |
protected void writeRDBNAM(String rdbnam) throws DRDAProtocolException { int len = rdbnam.length(); if (len < CodePoint.RDBNAM_LEN) len = CodePoint.RDBNAM_LEN; writer.writeScalarHeader(CodePoint.RDBNAM, len); try { writer.writeScalarPaddedBytes(rdbnam.getBytes(server.DEFAULT_ENCODING), len, server.SPA... | protected void writeRDBNAM(String rdbnam) throws DRDAProtocolException { int len = rdbnam.length(); if (len < CodePoint.RDBNAM_LEN) len = CodePoint.RDBNAM_LEN; writer.writeScalarHeader(CodePoint.RDBNAM, len); try { writer.writeScalarPaddedBytes(rdbnam.getBytes(server.DEFAULT_ENCODING), len, server.SPA... | 1,105,250 |
protected void writeRDBNAM(String rdbnam) throws DRDAProtocolException { int len = rdbnam.length(); if (len < CodePoint.RDBNAM_LEN) len = CodePoint.RDBNAM_LEN; writer.writeScalarHeader(CodePoint.RDBNAM, len); try { writer.writeScalarPaddedBytes(rdbnam.getBytes(server.DEFAULT_ENCODING), len, server.SPA... | protected void writeRDBNAM(String rdbnam) throws DRDAProtocolException { int len = rdbnam.length(); if (len < CodePoint.RDBNAM_LEN) len = CodePoint.RDBNAM_LEN; writer.writeScalarHeader(CodePoint.RDBNAM, len); try { writer.writeScalarPaddedBytes(rdbnam.getBytes(server.DEFAULT_ENCODING), len, server.SPA... | 1,105,251 |
private void writeSECCHKRM(int securityCheckCode) throws DRDAProtocolException { writer.createDssReply(); writer.startDdm(CodePoint.SECCHKRM); writer.writeScalar2Bytes(CodePoint.SVRCOD, svrcodFromSecchkcd(securityCheckCode)); writer.writeScalar1Byte(CodePoint.SECCHKCD, securityCheckCode); writer.endDdmAndDss ()... | private void writeSECCHKRM(int securityCheckCode) throws DRDAProtocolException { writer.createDssReply(); writer.startDdm(CodePoint.SECCHKRM); writer.writeScalar2Bytes(CodePoint.SVRCOD, svrcodFromSecchkcd(securityCheckCode)); writer.writeScalar1Byte(CodePoint.SECCHKCD, securityCheckCode); writer.endDdmAndDss ()... | 1,105,252 |
private void writeSECCHKRM(int securityCheckCode) throws DRDAProtocolException { writer.createDssReply(); writer.startDdm(CodePoint.SECCHKRM); writer.writeScalar2Bytes(CodePoint.SVRCOD, svrcodFromSecchkcd(securityCheckCode)); writer.writeScalar1Byte(CodePoint.SECCHKCD, securityCheckCode); writer.endDdmAndDss ()... | private void writeSECCHKRM(int securityCheckCode) throws DRDAProtocolException { writer.createDssReply(); writer.startDdm(CodePoint.SECCHKRM); writer.writeScalar2Bytes(CodePoint.SVRCOD, svrcodFromSecchkcd(securityCheckCode)); writer.writeScalar1Byte(CodePoint.SECCHKCD, securityCheckCode); writer.endDdmAndDss ()... | 1,105,253 |
private void writeSQLCAGRP(SQLException e, int sqlcode, int updateCount, long rowCount) throws DRDAProtocolException { if (e == null) { // Forwarding to the optimized version when there is no // exception object writeSQLCAGRP(nullSQLState, sqlcode, updateCount, rowCount); return; } if (rowC... | private void writeSQLCAGRP(SQLException e, int sqlcode, int updateCount, long rowCount) throws DRDAProtocolException { if (e == null) { // Forwarding to the optimized version when there is no // exception object writeSQLCAGRP(nullSQLState, sqlcode, updateCount, rowCount); return; } if (rowC... | 1,105,254 |
private void writeSQLCAGRP(SQLException e, int sqlcode, int updateCount, long rowCount) throws DRDAProtocolException { if (e == null) { // Forwarding to the optimized version when there is no // exception object writeSQLCAGRP(nullSQLState, sqlcode, updateCount, rowCount); return; } if (rowC... | private void writeSQLCAGRP(SQLException e, int sqlcode, int updateCount, long rowCount) throws DRDAProtocolException { if (e == null) { // Forwarding to the optimized version when there is no // exception object writeSQLCAGRP(nullSQLState, sqlcode, updateCount, rowCount); return; } if (rowC... | 1,105,255 |
private void writeSQLCARD(SQLException e,int severity, int updateCount, long rowCount ) throws DRDAProtocolException { writer.createDssObject(); writer.startDdm(CodePoint.SQLCARD); writeSQLCAGRP(e, getSqlCode(severity), updateCount, rowCount); writer.endDdmAndDss(); // If we have a shutdown exception, rest... | private void writeSQLCARD(SQLException e,int severity, int updateCount, long rowCount ) throws DRDAProtocolException { writer.createDssObject(); writer.startDdm(CodePoint.SQLCARD); writeSQLCAGRP(e, getSqlCode(severity), updateCount, rowCount); writer.endDdmAndDss(); // If we have a shutdown exception, rest... | 1,105,256 |
private void writeSQLCARD(SQLException e,int severity, int updateCount, long rowCount ) throws DRDAProtocolException { writer.createDssObject(); writer.startDdm(CodePoint.SQLCARD); writeSQLCAGRP(e, getSqlCode(severity), updateCount, rowCount); writer.endDdmAndDss(); // If we have a shutdown exception, rest... | private void writeSQLCARD(SQLException e,int severity, int updateCount, long rowCount ) throws DRDAProtocolException { writer.createDssObject(); writer.startDdm(CodePoint.SQLCARD); writeSQLCAGRP(e, getSqlCode(severity), updateCount, rowCount); writer.endDdmAndDss(); // If we have a shutdown exception, rest... | 1,105,257 |
private void writeSQLCAXGRP(int updateCount, long rowCount, String sqlerrmc, SQLException nextException) throws DRDAProtocolException { writer.writeByte(0); // SQLCAXGRP INDICATOR if (sqlamLevel < 7) { writeRDBNAM(database.dbName); writeSQLCAERRWARN(updateCount, rowCount); } else { // SQL ERRD1 - D... | private void writeSQLCAXGRP(int updateCount, long rowCount, String sqlerrmc, SQLException nextException) throws DRDAProtocolException { writer.writeByte(0); // SQLCAXGRP INDICATOR if (sqlamLevel < 7) { writeRDBNAM(database.dbName); writeSQLCAERRWARN(updateCount, rowCount); } else { // SQL ERRD1 - D... | 1,105,258 |
private void writeSQLCAXGRP(int updateCount, long rowCount, String sqlerrmc, SQLException nextException) throws DRDAProtocolException { writer.writeByte(0); // SQLCAXGRP INDICATOR if (sqlamLevel < 7) { writeRDBNAM(database.dbName); writeSQLCAERRWARN(updateCount, rowCount); } else { // SQL ERRD1 - D... | private void writeSQLCAXGRP(int updateCount, long rowCount, String sqlerrmc, SQLException nextException) throws DRDAProtocolException { writer.writeByte(0); // SQLCAXGRP INDICATOR if (sqlamLevel < 7) { writeRDBNAM(database.dbName); writeSQLCAERRWARN(updateCount, rowCount); } else { // SQL ERRD1 - D... | 1,105,259 |
private void writeSQLCINRD(DRDAStatement stmt) throws DRDAProtocolException,SQLException { ResultSet rs = null; // todo ps is never used or closed - could this be a memory leak? PreparedStatement ps = stmt.getPreparedStatement(); if (!stmt.needsToSendParamData) rs = stmt.getResultSet(); writer.c... | private void writeSQLCINRD(DRDAStatement stmt) throws DRDAProtocolException,SQLException { ResultSet rs = null; // todo ps is never used or closed - could this be a memory leak? PreparedStatement ps = stmt.getPreparedStatement(); if (!stmt.needsToSendParamData) rs = stmt.getResultSet(); writer.c... | 1,105,260 |
private void writeSQLCINRD(DRDAStatement stmt) throws DRDAProtocolException,SQLException { ResultSet rs = null; // todo ps is never used or closed - could this be a memory leak? PreparedStatement ps = stmt.getPreparedStatement(); if (!stmt.needsToSendParamData) rs = stmt.getResultSet(); writer.c... | private void writeSQLCINRD(DRDAStatement stmt) throws DRDAProtocolException,SQLException { ResultSet rs = null; // todo ps is never used or closed - could this be a memory leak? PreparedStatement ps = stmt.getPreparedStatement(); if (!stmt.needsToSendParamData) rs = stmt.getResultSet(); writer.c... | 1,105,261 |
private void writeSQLDAGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int elemNum, boolean rtnOutput) throws DRDAProtocolException, SQLException { //jdbc uses offset of 1 int jdbcElemNum = elemNum +1; // length to be retreived as output parameter int[] outlen = {-1}; int elemType = rtnOutput ? rs... | private void writeSQLDAGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int elemNum, boolean rtnOutput) throws DRDAProtocolException, SQLException { //jdbc uses offset of 1 int jdbcElemNum = elemNum +1; // length to be retreived as output parameter int[] outlen = {-1}; int elemType = rtnOutput ? rs... | 1,105,262 |
private void writeSQLDAGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int elemNum, boolean rtnOutput) throws DRDAProtocolException, SQLException { //jdbc uses offset of 1 int jdbcElemNum = elemNum +1; // length to be retreived as output parameter int[] outlen = {-1}; int elemType = rtnOutput ? rs... | private void writeSQLDAGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int elemNum, boolean rtnOutput) throws DRDAProtocolException, SQLException { //jdbc uses offset of 1 int jdbcElemNum = elemNum +1; // length to be retreived as output parameter int[] outlen = {-1}; int elemType = rtnOutput ? rs... | 1,105,263 |
private void writeSQLDAGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int elemNum, boolean rtnOutput) throws DRDAProtocolException, SQLException { //jdbc uses offset of 1 int jdbcElemNum = elemNum +1; // length to be retreived as output parameter int[] outlen = {-1}; int elemType = rtnOutput ? rs... | private void writeSQLDAGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int elemNum, boolean rtnOutput) throws DRDAProtocolException, SQLException { //jdbc uses offset of 1 int jdbcElemNum = elemNum +1; // length to be retreived as output parameter int[] outlen = {-1}; int elemType = rtnOutput ? rs... | 1,105,264 |
private void writeSQLDAGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int elemNum, boolean rtnOutput) throws DRDAProtocolException, SQLException { //jdbc uses offset of 1 int jdbcElemNum = elemNum +1; // length to be retreived as output parameter int[] outlen = {-1}; int elemType = rtnOutput ? rs... | private void writeSQLDAGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int elemNum, boolean rtnOutput) throws DRDAProtocolException, SQLException { //jdbc uses offset of 1 int jdbcElemNum = elemNum +1; // length to be retreived as output parameter int[] outlen = {-1}; int elemType = rtnOutput ? rs... | 1,105,265 |
private void writeSQLDAGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int elemNum, boolean rtnOutput) throws DRDAProtocolException, SQLException { //jdbc uses offset of 1 int jdbcElemNum = elemNum +1; // length to be retreived as output parameter int[] outlen = {-1}; int elemType = rtnOutput ? rs... | private void writeSQLDAGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int elemNum, boolean rtnOutput) throws DRDAProtocolException, SQLException { //jdbc uses offset of 1 int jdbcElemNum = elemNum +1; // length to be retreived as output parameter int[] outlen = {-1; int elemType = rtnOutput ? rsm... | 1,105,266 |
private void writeSQLDARD(DRDAStatement stmt, boolean rtnOutput, SQLException e) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); ResultSetMetaData rsmeta = ps.getMetaData(); EmbedParameterSetMetaData pmeta = stmt.getParameterMetaData(); int numElems = 0; if (e == nul... | private void writeSQLDARD(DRDAStatement stmt, boolean rtnOutput, SQLException e) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); ResultSetMetaData rsmeta = ps.getMetaData(); EmbedParameterSetMetaData pmeta = stmt.getParameterMetaData(); int numElems = 0; if (e == nul... | 1,105,267 |
private void writeSQLDARD(DRDAStatement stmt, boolean rtnOutput, SQLException e) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); ResultSetMetaData rsmeta = ps.getMetaData(); EmbedParameterSetMetaData pmeta = stmt.getParameterMetaData(); int numElems = 0; if (e == nul... | private void writeSQLDARD(DRDAStatement stmt, boolean rtnOutput, SQLException e) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); ResultSetMetaData rsmeta = ps.getMetaData(); EmbedParameterSetMetaData pmeta = stmt.getParameterMetaData(); int numElems = 0; if (e == nul... | 1,105,268 |
private void writeSQLDHROW (DRDAStatement stmt) throws DRDAProtocolException,SQLException { if (JVMInfo.JDK_ID < 2) { //write null indicator for SQLDHROW because there is no holdability support prior to jdk1.3 writer.writeByte(CodePoint.NULLDATA); return; } writer.writeByte(0); // SQLDHROW INDICATOR //S... | private void writeSQLDHROW (DRDAStatement stmt) throws DRDAProtocolException,SQLException { if (JVMInfo.JDK_ID < 2) { //write null indicator for SQLDHROW because there is no holdability support prior to jdk1.3 writer.writeByte(CodePoint.NULLDATA); return; } writer.writeByte(0); // SQLDHROW INDICATOR //S... | 1,105,269 |
private void writeSQLDHROW (DRDAStatement stmt) throws DRDAProtocolException,SQLException { if (JVMInfo.JDK_ID < 2) { //write null indicator for SQLDHROW because there is no holdability support prior to jdk1.3 writer.writeByte(CodePoint.NULLDATA); return; } writer.writeByte(0); // SQLDHROW INDICATOR //S... | private void writeSQLDHROW (DRDAStatement stmt) throws DRDAProtocolException,SQLException { if (JVMInfo.JDK_ID < 2) { //write null indicator for SQLDHROW because there is no holdability support prior to jdk1.3 writer.writeByte(CodePoint.NULLDATA); return; } writer.writeByte(0); // SQLDHROW INDICATOR //S... | 1,105,270 |
private void writeSQLDIAGCI(SQLException nextException) throws DRDAProtocolException { SQLException se = nextException; long rowNum = 1; /* Write the number of next exceptions to expect */ writeSQLNUMROW(se); while (se != null) { String sqlState = se.getSQLState(); int sqlCode = getSqlCode(getExceptionSever... | private void writeSQLDIAGCI(SQLException nextException) throws DRDAProtocolException { SQLException se = nextException; long rowNum = 1; /* Write the number of next exceptions to expect */ writeSQLNUMROW(se); while (se != null) { String sqlState = se.getSQLState(); int sqlCode = getSqlCode(getExceptionSever... | 1,105,271 |
private void writeSQLDIAGCI(SQLException nextException) throws DRDAProtocolException { SQLException se = nextException; long rowNum = 1; /* Write the number of next exceptions to expect */ writeSQLNUMROW(se); while (se != null) { String sqlState = se.getSQLState(); int sqlCode = getSqlCode(getExceptionSever... | private void writeSQLDIAGCI(SQLException nextException) throws DRDAProtocolException { SQLException se = nextException; long rowNum = 1; /* Write the number of next exceptions to expect */ writeSQLNUMROW(se); while (se != null) { String sqlState = se.getSQLState(); int sqlCode = getSqlCode(getExceptionSever... | 1,105,272 |
private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(lengt... | private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(lengt... | 1,105,273 |
private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(lengt... | private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(lengt... | 1,105,274 |
private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(lengt... | private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(lengt... | 1,105,275 |
private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(lengt... | private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(lengt... | 1,105,276 |
private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(lengt... | private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(lengt... | 1,105,277 |
private void writeSQLRSLRD(DRDAStatement stmt) throws DRDAProtocolException,SQLException { int numResults = stmt.getNumResultSets(); writer.createDssObject(); writer.startDdm(CodePoint.SQLRSLRD); writer.writeShort(numResults); // num of result sets for (int i = 0; i < numResults; i ++) { writer.writeInt(i); // ... | private void writeSQLRSLRD(DRDAStatement stmt) throws DRDAProtocolException,SQLException { int numResults = stmt.getNumResultSets(); writer.createDssObject(); writer.startDdm(CodePoint.SQLRSLRD); writer.writeShort(numResults); // num of result sets for (int i = 0; i < numResults; i ++) { writer.writeInt(i); // ... | 1,105,278 |
private void writeTYPDEFOVR() throws DRDAProtocolException { //TYPDEFOVR - required - only single byte and mixed byte are specified writer.startDdm(CodePoint.TYPDEFOVR); writer.writeScalar2Bytes(CodePoint.CCSIDSBC, server.CCSIDSBC); writer.writeScalar2Bytes(CodePoint.CCSIDMBC, server.CCSIDMBC); // PKGDFTCST - Send ... | private void writeTYPDEFOVR() throws DRDAProtocolException { //TYPDEFOVR - required - only single byte and mixed byte are specified writer.startDdm(CodePoint.TYPDEFOVR); writer.writeScalar2Bytes(CodePoint.CCSIDSBC, server.CCSIDSBC); writer.writeScalar2Bytes(CodePoint.CCSIDMBC, server.CCSIDMBC); // PKGDFTCST - Send ... | 1,105,279 |
private void writeTYPDEFOVR() throws DRDAProtocolException { //TYPDEFOVR - required - only single byte and mixed byte are specified writer.startDdm(CodePoint.TYPDEFOVR); writer.writeScalar2Bytes(CodePoint.CCSIDSBC, server.CCSIDSBC); writer.writeScalar2Bytes(CodePoint.CCSIDMBC, server.CCSIDMBC); // PKGDFTCST - Send ... | private void writeTYPDEFOVR() throws DRDAProtocolException { //TYPDEFOVR - required - only single byte and mixed byte are specified writer.startDdm(CodePoint.TYPDEFOVR); writer.writeScalar2Bytes(CodePoint.CCSIDSBC, server.CCSIDSBC); writer.writeScalar2Bytes(CodePoint.CCSIDMBC, server.CCSIDMBC); // PKGDFTCST - Send ... | 1,105,280 |
private void writeVCMorVCS(String s) throws DRDAProtocolException { //Write only VCM and 0 length for VCS if (s == null) { writer.writeShort(0); writer.writeShort(0); return; } // VCM writer.writeLDString(s); // VCS writer.writeShort(0); } | private void writeVCMorVCS(String s) throws DRDAProtocolException { //Write only VCM and 0 length for VCS if (s == null) { writer.writeShort(0); writer.writeShort(0); return; } // VCM writer.writeLDString(s); // VCS writer.writeShort(0); } | 1,105,281 |
private void writeVCMorVCS(String s) throws DRDAProtocolException { //Write only VCM and 0 length for VCS if (s == null) { writer.writeShort(0); writer.writeShort(0); return; } // VCM writer.writeLDString(s); // VCS writer.writeShort(0); } | private void writeVCMorVCS(String s) throws DRDAProtocolException { //Write only VCM and 0 length for VCS if (s == null) { writer.writeShort(0); writer.writeShort(0); return; } // VCM writer.writeLDString(s); // VCS writer.writeShort(0); } | 1,105,282 |
public void addStatementEventListener(StatementEventListener listener) { throw new UnsupportedOperationException(); } | public void addStatementEventListener(StatementEventListener listener) { if (logWriter_ != null) { logWriter_.traceEntry(this, "addStatementEventListener", listener); } statementEventListeners.addElement(listener); } | 1,105,283 |
public void removeStatementEventListener(StatementEventListener listener) { throw new UnsupportedOperationException(); } | public void removeStatementEventListener(StatementEventListener listener) { if (logWriter_ != null) { logWriter_.traceEntry(this, "removeConnectionEventListener", listener); } statementEventListeners.removeElement(listener); } | 1,105,284 |
private EXTDTAInputStream( int dataLength, InputStream binaryInputStream) { this.dataLength = dataLength; this.binaryInputStream = binaryInputStream; } | private EXTDTAInputStream(ResultSet rs, int columnNumber, int ndrdaType) throws SQLException, IOException { this.dataResultSet = rs; this.isEmptyStream = ! initInputStream(rs, columnNumber, ndrdaType); this.dataLength = dataLength; this.binaryInputStream = binaryInputStream; } | 1,105,285 |
private EXTDTAInputStream( int dataLength, InputStream binaryInputStream) { this.dataLength = dataLength; this.binaryInputStream = binaryInputStream; } | private EXTDTAInputStream( int dataLength, InputStream binaryInputStream) { this.dataLength = dataLength; this.binaryInputStream = binaryInputStream; } | 1,105,286 |
public static EXTDTAInputStream getEXTDTAStream(ResultSet rs, int column, int drdaType) throws SQLException { EXTDTAInputStream extdtaStream = null; int length = 0; byte[] bytes = null; int ndrdaType = drdaType | 1; //nullable drdaType // BLOBS if (ndrdaType == DRDAConstants.DRDA_TYPE_NLOBBYTES) { //T... | public static EXTDTAInputStream getEXTDTAStream(ResultSet rs, int column, int drdaType) throws SQLException { EXTDTAInputStream extdtaStream = null; int length = 0; byte[] bytes = null; int ndrdaType = drdaType | 1; //nullable drdaType // BLOBS if (ndrdaType == DRDAConstants.DRDA_TYPE_NLOBBYTES) { //T... | 1,105,288 |
public static EXTDTAInputStream getEXTDTAStream(ResultSet rs, int column, int drdaType) throws SQLException { EXTDTAInputStream extdtaStream = null; int length = 0; byte[] bytes = null; int ndrdaType = drdaType | 1; //nullable drdaType // BLOBS if (ndrdaType == DRDAConstants.DRDA_TYPE_NLOBBYTES) { //T... | public static EXTDTAInputStream getEXTDTAStream(ResultSet rs, int column, int drdaType) throws SQLException { EXTDTAInputStream extdtaStream = null; int length = 0; byte[] bytes = null; int ndrdaType = drdaType | 1; //nullable drdaType // BLOBS if (ndrdaType == DRDAConstants.DRDA_TYPE_NLOBBYTES) { //T... | 1,105,289 |
public final void setCharacterStream(int parameterIndex, java.io.Reader reader, int length) throws SQLException { int jdbcTypeId = getParameterJDBCType(parameterIndex); switch (jdbcTypeId) { case Types.CHAR: case Types.VARCHAR: case Types.LONGVARCHAR: case Types.CLOB: break; default: throw... | public final void setCharacterStream(int parameterIndex, java.io.Reader reader, int length) throws SQLException { int jdbcTypeId = getParameterJDBCType(parameterIndex); switch (jdbcTypeId) { case Types.CHAR: case Types.VARCHAR: case Types.LONGVARCHAR: case Types.CLOB: break; default: throw... | 1,105,290 |
public final void setCharacterStream(int parameterIndex, java.io.Reader reader, int length) throws SQLException { int jdbcTypeId = getParameterJDBCType(parameterIndex); switch (jdbcTypeId) { case Types.CHAR: case Types.VARCHAR: case Types.LONGVARCHAR: case Types.CLOB: break; default: throw... | public final void setCharacterStream(int parameterIndex, java.io.Reader reader, int length) throws SQLException { int jdbcTypeId = getParameterJDBCType(parameterIndex); switch (jdbcTypeId) { case Types.CHAR: case Types.VARCHAR: case Types.LONGVARCHAR: case Types.CLOB: break; default: throw... | 1,105,291 |
protected void setCharacterStreamInternal(int parameterIndex, Reader reader, int length) throws SQLException { checkStatus(); int jdbcTypeId = getParameterJDBCType(parameterIndex); try { ParameterValueSet pvs = getParms(); LimitReader limitIn = new LimitReader(reader); if (length != -1) limitIn... | protected void setCharacterStreamInternal(int parameterIndex, Reader reader, int length) throws SQLException { checkStatus(); int jdbcTypeId = getParameterJDBCType(parameterIndex); try { ParameterValueSet pvs = getParms(); LimitReader limitIn = new LimitReader(reader); if (length != -1) limitIn... | 1,105,293 |
protected void setCharacterStreamInternal(int parameterIndex, Reader reader, int length) throws SQLException { checkStatus(); int jdbcTypeId = getParameterJDBCType(parameterIndex); try { ParameterValueSet pvs = getParms(); LimitReader limitIn = new LimitReader(reader); if (length != -1) limitIn... | protected void setCharacterStreamInternal(int parameterIndex, Reader reader, int length) throws SQLException { checkStatus(); int jdbcTypeId = getParameterJDBCType(parameterIndex); try { ParameterValueSet pvs = getParms(); LimitReader limitIn = new LimitReader(reader); if (length != -1) limitIn... | 1,105,294 |
public void setClob (int i, Clob x) throws SQLException { int colType; synchronized (getConnectionSynchronization()) { colType = getParameterJDBCType(i); } // DB2, only allow setClob on a CLOB column. if (colType != Types.CLOB) throw dataTypeConversion(i... | public void setClob (int i, Clob x) throws SQLException { int colType; synchronized (getConnectionSynchronization()) { colType = getParameterJDBCType(i); } // DB2, only allow setClob on a CLOB column. if (colType != Types.CLOB) throw dataTypeConversion(i... | 1,105,295 |
public Properties getServiceProperties( final String serviceName, Properties defaultProperties) throws StandardException { if (SanityManager.DEBUG) { if (! serviceName.equals(getCanonicalServiceName(serviceName))) { SanityManager.THROWASSERT("serviceName (" + serviceName + ") expected to equal ... | public Properties getServiceProperties( final String serviceName, Properties defaultProperties) throws StandardException { if (SanityManager.DEBUG) { if (! serviceName.equals(getCanonicalServiceName(serviceName))) { SanityManager.THROWASSERT("serviceName (" + serviceName + ") expected to equal ... | 1,105,296 |
public Properties getServiceProperties( final String serviceName, Properties defaultProperties) throws StandardException { if (SanityManager.DEBUG) { if (! serviceName.equals(getCanonicalServiceName(serviceName))) { SanityManager.THROWASSERT("serviceName (" + serviceName + ") expected to equal ... | public Properties getServiceProperties( final String serviceName, Properties defaultProperties) throws StandardException { if (SanityManager.DEBUG) { if (! serviceName.equals(getCanonicalServiceName(serviceName))) { SanityManager.THROWASSERT("serviceName (" + serviceName + ") expected to equal ... | 1,105,297 |
public Object run() throws IOException, StandardException, InstantiationException, IllegalAccessException { if( recreateFrom != null) // restore from a file { Fil... | public Object run() throws IOException, StandardException, InstantiationException, IllegalAccessException { if( recreateFrom != null) // restore from a file { Fil... | 1,105,299 |
public Object run() throws IOException, StandardException, InstantiationException, IllegalAccessException { if( recreateFrom != null) // restore from a file { Fil... | public Object run() throws IOException, StandardException, InstantiationException, IllegalAccessException { if( recreateFrom != null) // restore from a file { Fil... | 1,105,300 |
public void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { if (SanityManager.DEBUG) SanityManager.ASSERT(resultColumns != null, "Tree structure bad"); /* Get the next ResultSet #, so that we can number this ResultSetNode, its * ResultColumnList and ResultSet. ... | public void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { if (SanityManager.DEBUG) SanityManager.ASSERT(resultColumns != null, "Tree structure bad"); /* Get the next ResultSet #, so that we can number this ResultSetNode, its * ResultColumnList and ResultSet. ... | 1,105,302 |
public void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { if (SanityManager.DEBUG) SanityManager.ASSERT(resultColumns != null, "Tree structure bad"); /* Get the next ResultSet #, so that we can number this ResultSetNode, its * ResultColumnList and ResultSet. ... | public void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { if (SanityManager.DEBUG) SanityManager.ASSERT(resultColumns != null, "Tree structure bad"); /* Get the next ResultSet #, so that we can number this ResultSetNode, its * ResultColumnList and ResultSet. ... | 1,105,303 |
public void updateSchemaAuth(String schemaName, String authorizationId, TransactionController tc) throws StandardException { ExecIndexRow keyRow; DataValueDescriptor schemaNameOrderable; TabInfo ti = coreInfo[SYSSCHEMAS_CORE_NUM]; /* Use schemaNameOrderable in both start * and stop po... | public void updateSchemaAuth(String schemaName, String authorizationId, TransactionController tc) throws StandardException { ExecIndexRow keyRow; DataValueDescriptor schemaNameOrderable; TabInfo ti = coreInfo[SYSSCHEMAS_CORE_NUM]; /* Use schemaNameOrderable in both start * and stop po... | 1,105,304 |
public void updateSchemaAuth(String schemaName, String authorizationId, TransactionController tc) throws StandardException { ExecIndexRow keyRow; DataValueDescriptor schemaNameOrderable; TabInfo ti = coreInfo[SYSSCHEMAS_CORE_NUM]; /* Use schemaNameOrderable in both start * and stop po... | public void updateSchemaAuth(String schemaName, String authorizationId, TransactionController tc) throws StandardException { ExecIndexRow keyRow; DataValueDescriptor schemaNameOrderable; TabInfo ti = coreInfo[SYSSCHEMAS_CORE_NUM]; /* Use schemaNameOrderable in both start * and stop po... | 1,105,305 |
private int parseACCRDB() throws DRDAProtocolException { int codePoint; int svrcod = 0; copyToRequired(ACCRDB_REQUIRED); reader.markCollection(); codePoint = reader.getCodePoint(); while (codePoint != -1) { switch (codePoint) { //required case CodePoint.RDBACCCL: checkLength(CodePoint.RDBACCCL, 2... | private int parseACCRDB() throws DRDAProtocolException { int codePoint; int svrcod = 0; copyToRequired(ACCRDB_REQUIRED); reader.markCollection(); codePoint = reader.getCodePoint(); while (codePoint != -1) { switch (codePoint) { //required case CodePoint.RDBACCCL: checkLength(CodePoint.RDBACCCL, 2... | 1,105,306 |
private boolean writeFDODTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean hasdata = false; int blksize = stmt.getBlksize() > 0 ? stmt.getBlksize() : CodePoint.QRYBLKSZ_MAX; long rowCount = 0; ResultSet rs =null; boolean moreData = (stmt.getQryprctyp() == CodePoint.LMTBLKPRC); ... | private boolean writeFDODTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean hasdata = false; int blksize = stmt.getBlksize() > 0 ? stmt.getBlksize() : CodePoint.QRYBLKSZ_MAX; long rowCount = 0; ResultSet rs =null; boolean moreData = (stmt.getQryprctyp() == CodePoint.LMTBLKPRC); ... | 1,105,307 |
private boolean writeFDODTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean hasdata = false; int blksize = stmt.getBlksize() > 0 ? stmt.getBlksize() : CodePoint.QRYBLKSZ_MAX; long rowCount = 0; ResultSet rs =null; boolean moreData = (stmt.getQryprctyp() == CodePoint.LMTBLKPRC); ... | private boolean writeFDODTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean hasdata = false; int blksize = stmt.getBlksize() > 0 ? stmt.getBlksize() : CodePoint.QRYBLKSZ_MAX; long rowCount = 0; ResultSet rs =null; boolean moreData = (stmt.getQryprctyp() == CodePoint.LMTBLKPRC); ... | 1,105,308 |
protected LogScan openBackwardsScan(LogInstant stopAt) throws IOException, StandardException { checkCorrupt(); // current instant log instant of the next log record to be // written out, which is at the end of the log // ensure any buffered data is written to the actual file long startAt; synchronized (this) ... | protected LogScan openBackwardsScan(long startAt, LogInstant stopAt) throws IOException, StandardException { checkCorrupt(); // current instant log instant of the next log record to be // written out, which is at the end of the log // ensure any buffered data is written to the actual file long startAt; synchro... | 1,105,309 |
protected LogScan openBackwardsScan(LogInstant stopAt) throws IOException, StandardException { checkCorrupt(); // current instant log instant of the next log record to be // written out, which is at the end of the log // ensure any buffered data is written to the actual file long startAt; synchronized (this) ... | protected LogScan openBackwardsScan(LogInstant stopAt) throws IOException, StandardException { checkCorrupt(); // current instant log instant of the next log record to be // written out, which is at the end of the log // ensure any buffered data is written to the actual file long startAt; synchronized (this) ... | 1,105,311 |
protected LogScan openBackwardsScan(LogInstant stopAt) throws IOException, StandardException { checkCorrupt(); // current instant log instant of the next log record to be // written out, which is at the end of the log // ensure any buffered data is written to the actual file long startAt; synchronized (this) ... | protected LogScan openBackwardsScan(LogInstant stopAt) throws IOException, StandardException { checkCorrupt(); // current instant log instant of the next log record to be // written out, which is at the end of the log // ensure any buffered data is written to the actual file long startAt; synchronized (this) ... | 1,105,312 |
public String[] getOneRowAtATime(ResultSet rs) throws Exception { int columnCount = exportResultSetForObject.getColumnCount(); ResultSetMetaData rsm=rs.getMetaData(); if (rs.next()){ String[] rowObjects = new String[columnCount]; for (int colNum = 0; colNum < columnCount; colNum++) { if (r... | public String[] getOneRowAtATime(ResultSet rs) throws Exception { int columnCount = exportResultSetForObject.getColumnCount(); ResultSetMetaData rsm=rs.getMetaData(); if (rs.next()){ String[] rowObjects = new String[columnCount]; for (int colNum = 0; colNum < columnCount; colNum++) { if (r... | 1,105,313 |
public EmbedConnection40( InternalDriver driver, String url, Properties info) throws SQLException { super(driver, url, info); } | public EmbedConnection40( InternalDriver driver, String url, Properties info) throws SQLException { super(driver, url, info); } | 1,105,316 |
public static void massageSqlFile (String hostName, String fileName) throws Exception { // only called if hostName is *not* localhost. // Need to replace each occurrence of the string 'localhost' with // whatever is the hostName File tmpFile = new File("extin", "tmpFile.sql"); F... | public static void massageSqlFile (String hostName, String fileName) throws Exception { // only called if hostName is *not* localhost. // Need to replace each occurrence of the string 'localhost' with // whatever is the hostName File tmpFile = new File("extin", "tmpFile.sql"); F... | 1,105,317 |
public RoutinePermsDescriptor( DataDictionary dd, String grantee, String grantor, UUID routineUUID, boolean hasExecutePermission) { super (dd, grantor, grantee); this.routineU... | public RoutinePermsDescriptor( DataDictionary dd, String grantee, String grantor, UUID routineUUID, boolean hasExecutePermission) { super (dd, grantee, grantor); this.routineU... | 1,105,318 |
public void XADataSourceStatement(ij parser, Token dbname, Token shutdown, String create) throws SQLException { try { currentXADataSource = (XADataSource) getXADataSource(); databaseName = parser.stringValue(dbname.image); if (isJCC) { xaHelper.setDataSourceProperty(currentXADataSo... | public void XADataSourceStatement(ij parser, Token dbname, Token shutdown, String create) throws SQLException { try { currentXADataSource = (XADataSource) getXADataSource(); databaseName = parser.stringValue(dbname.image); if (isJCC || isNetClient) { xaHelper.setDataSourceProperty(... | 1,105,319 |
public void XADataSourceStatement(ij parser, Token dbname, Token shutdown, String create) throws SQLException { try { currentXADataSource = (XADataSource) getXADataSource(); databaseName = parser.stringValue(dbname.image); if (isJCC) { xaHelper.setDataSourceProperty(currentXADataSo... | public void XADataSourceStatement(ij parser, Token dbname, Token shutdown, String create) throws SQLException { try { currentXADataSource = (XADataSource) getXADataSource(); databaseName = parser.stringValue(dbname.image); if (isJCC) { xaHelper.setDataSourceProperty(currentXADataSo... | 1,105,320 |
private void handleException(Throwable t) throws SQLException { if (t instanceof SQLException) { // let ij handle it throw (SQLException)t; } if (t instanceof XAException) { int errorCode = ((XAException)t).errorCode; String error = LocalizedResource.getMessage("IJ_IlleValu"); // XA_RBBASE 100 // XA_R... | private void handleException(Throwable t) throws SQLException { if (t instanceof SQLException) { // let ij handle it throw (SQLException)t; } if (t instanceof XAException) { int errorCode = ((XAException)t).errorCode; String error = LocalizedResource.getMessage("IJ_IlleValu"); // XA_RBBASE 100 // XA_R... | 1,105,322 |
public void setFramework(String fm) { framework = fm.toUpperCase(); if (framework.endsWith("NET") || framework.equals("DB2JCC")) isJCC = true; } | public void setFramework(String fm) { framework = fm.toUpperCase(Locale.ENGLISH); if (framework.endsWith("NET") || framework.equals("DB2JCC")) isJCC = true; } | 1,105,323 |
public String diag() throws StandardException { LogToFile ltf = (LogToFile)diag_object; StringBuffer r = new StringBuffer(); r.append("LogToFile: \n"); r.append(" Directory: "+ltf.dataDirectory+"\n"); r.append(" endPosition: "+ltf.endPosition()+"\n"); r.append(" lastFlush(offset): "+ltf.lastFlu... | public String diag() throws StandardException { LogToFile ltf = (LogToFile)diag_object; StringBuffer r = new StringBuffer(); r.append("LogToFile: \n"); r.append(" Directory: "+ltf.dataDirectory+"\n"); r.append(" endPosition: "+ltf.endPosition()+"\n"); r.append(" lastFlush(offset): "+ltf.lastFlu... | 1,105,325 |
public boolean skipChildren(Visitable node) { return (node instanceof AggregateNode) || (node instanceof SubqueryNode); } | public boolean skipChildren(Visitable node) throws StandardException { return (node instanceof AggregateNode) || (node instanceof SubqueryNode); } | 1,105,326 |
public boolean skipChildren(Visitable node) { return (node instanceof AggregateNode) || (node instanceof SubqueryNode); } | public boolean skipChildren(Visitable node) { return (node instanceof AggregateNode) || (node instanceof SubqueryNode); } | 1,105,327 |
public Visitable visit(Visitable node) throws StandardException { if (node instanceof ColumnReference) { ColumnReference cr = (ColumnReference)node; if (groupByList == null) { throw StandardException.newException(SQLState.LANG_INVALID_COL_REF_NON_GROUPED_SELECT_LIST, cr.getSQLColumnName()); } if (gro... | public Visitable visit(Visitable node) throws StandardException { if (node instanceof ColumnReference) { ColumnReference cr = (ColumnReference)node; if (groupByList == null) { throw StandardException.newException(SQLState.LANG_INVALID_COL_REF_NON_GROUPED_SELECT_LIST, cr.getSQLColumnName()); } if (gro... | 1,105,328 |
public Visitable visit(Visitable node) throws StandardException { if (node instanceof ColumnReference) { ColumnReference cr = (ColumnReference)node; if (groupByList == null) { throw StandardException.newException(SQLState.LANG_INVALID_COL_REF_NON_GROUPED_SELECT_LIST, cr.getSQLColumnName()); } if (gro... | public Visitable visit(Visitable node) throws StandardException { if (node instanceof ColumnReference) { ColumnReference cr = (ColumnReference)node; if (groupByList == null) { throw StandardException.newException(SQLState.LANG_INVALID_COL_REF_NON_GROUPED_SELECT_LIST, cr.getSQLColumnName()); } if (gro... | 1,105,329 |
private void buildEXTDTA(ColumnMetaData parameterMetaData, Object[] inputRow, boolean chained) throws SqlException { try { // build the EXTDTA data, if necessary if (extdtaPositions_ != null) { boolean chainFl... | private void buildEXTDTA(ColumnMetaData parameterMetaData, Object[] inputRow, boolean chained) throws SqlException { try { // build the EXTDTA data, if necessary if (extdtaPositions_ != null) { boolean chainFl... | 1,105,331 |
private void buildEXTDTA(ColumnMetaData parameterMetaData, Object[] inputRow, boolean chained) throws SqlException { try { // build the EXTDTA data, if necessary if (extdtaPositions_ != null) { boolean chainFl... | private void buildEXTDTA(ColumnMetaData parameterMetaData, Object[] inputRow, boolean chained) throws SqlException { try { // build the EXTDTA data, if necessary if (extdtaPositions_ != null) { boolean chainFl... | 1,105,332 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.