bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
private static Class createInvocationClass( ClassLoader classLoader, Method interfaceMethod ) throws CannotCompileException { Class invocationClass; final CtClass ctClass = JavassistUtils.createClass( getSimpleName( interfaceMethod.getDeclaringClass() ) + "_" + interfaceMe... | private static Class createInvocationClass( ClassLoader classLoader, Method interfaceMethod ) throws CannotCompileException { Class invocationClass; final CtClass ctClass = JavassistUtils.createClass( getSimpleName( interfaceMethod.getDeclaringClass() ) + "_" + interfaceMe... | 1,102,106 |
private static Class createInvocationClass( ClassLoader classLoader, Method interfaceMethod ) throws CannotCompileException { Class invocationClass; final CtClass ctClass = JavassistUtils.createClass( getSimpleName( interfaceMethod.getDeclaringClass() ) + "_" + interfaceMe... | private static Class createInvocationClass( ClassLoader classLoader, Method interfaceMethod ) throws CannotCompileException { Class invocationClass; final CtClass ctClass = JavassistUtils.createClass( getSimpleName( interfaceMethod.getDeclaringClass() ) + "_" + interfaceMe... | 1,102,107 |
public javax.sql.DataSource getDS(String database, String user, String password) { return (javax.sql.DataSource) getDataSourceWithReflection("com.ibm.db2.jcc.DB2SimpleDataSource", database,user,password); } | public javax.sql.DataSource getDS(String database, String user, String password) { return (javax.sql.DataSource) getDataSourceWithReflection("com.ibm.db2.jcc.DB2SimpleDataSource", database,user,password); } | 1,102,111 |
public static void main(String[] args) throws Exception { // Load harness properties. ij.getPropertyArg(args); // "runTest()" is going to try to connect to the database through // the server at port NETWORKSERVER_PORT. Thus, we have to // start the server on that port before calling runTest. try { Class.forNa... | public static void main(String[] args) throws Exception { // Load harness properties. ij.getPropertyArg(args); // "runTest()" is going to try to connect to the database through // the server at port NETWORKSERVER_PORT. Thus, we have to // start the server on that port before calling runTest. try { TestUtil.lo... | 1,102,112 |
public String getJDBCUrl(String db, String attrs) { String s = "jdbc:derby:net://localhost:" + NETWORKSERVER_PORT + "/" + db; if (attrs != null) s = s + ":" + attrs + ";"; return s; } | public String getJDBCUrl(String db, String attrs) { String s = TestUtil.getJdbcUrlPrefix("localhost", NETWORKSERVER_PORT) + db;//localhost:" + NETWORKSERVER_PORT + "/" + db; if (attrs != null) s = s + ":" + attrs + ";"; return s; } | 1,102,113 |
public javax.sql.ConnectionPoolDataSource getCPDS(String database, String user, String password) { return (javax.sql.ConnectionPoolDataSource) getDataSourceWithReflection("com.ibm.db2.jcc.DB2ConnectionPoolDataSource",database,user,password); } | public javax.sql.ConnectionPoolDataSource getCPDS(String database, String user, String password) { Properties attrs = new Properties(); attrs.setProperty("databaseName", database); if (user != null) attrs.setProperty("user", user); if (password != null) attrs.setProperty("password", password); attrs = addRequiredAt... | 1,102,114 |
abstract String convertToUCS2 (byte[] sourceBytes, int offset, int numToConvert); | abstract String convertToUCS2 (byte[] sourceBytes); | 1,102,116 |
public void setInUse ( boolean parentInTrigger, boolean isAtomic, String stmtText, ParameterValueSet pvs ) { inUse = true; this.parentInTrigger = parentInTrigger; this.isAtomic = isAtomic; this.stmtText = stmtText; this.pvs = pvs; rollbackParentContext = false; } | public void setInUse ( boolean parentInTrigger, boolean isAtomic, String stmtText, ParameterValueSet pvs, long timeoutMillis ) { inUse = true; this.parentInTrigger = parentInTrigger; this.isAtomic = isAtomic; this.stmtText = stmtText; this.pvs = pvs; rollbackParentContext = false; } | 1,102,118 |
public XMLDoclet (RootDoc root) throws Exception { FileWriter writer = new FileWriter(targetFileName); try { OutputFormat format = new OutputFormat(); format.setEncoding(encodingFormat); format.setIndentSize(4);/* format.setIndenting(true); ... | public XMLDoclet (RootDoc root) throws Exception { FileWriter writer = new FileWriter(targetFileName); try { OutputFormat format = new OutputFormat(); format.setEncoding(encodingFormat); format.setIndentSize(4); format.setIndenting(true); ... | 1,102,120 |
private void methodXML(MethodDoc methodDoc) throws SAXException { AttributesImpl atts = new AttributesImpl(); //atts.addAttribute(xmlns, localName, "", String, ); atts.addAttribute(xmlns, localName, "name", "String", methodDoc.name()); String access = "package"; if (methodDoc.isPr... | private void methodXML(MethodDoc methodDoc) throws SAXException { AttributesImpl atts = new AttributesImpl(); //atts.addAttribute(xmlns, localName, "", String, ); atts.addAttribute(xmlns, localName, "name", "String", methodDoc.name()); String access = "package"; if (methodDoc.isPr... | 1,102,121 |
public final QueryTreeNode getNode(int nodeType, Object arg1, Object arg2, Object arg3, ContextManager cm) throws StandardException { QueryTreeNode retval = getNode(nodeType, cm); retval.init(arg1, arg2, arg3); return retval; } | public final QueryTreeNode getNode(int nodeType, Object arg1, Object arg2, Object arg3, ContextManager cm) throws StandardException { QueryTreeNode retval = getNode(nodeType, cm); retval.init(arg1, arg2, arg3); return retval; } | 1,102,123 |
protected void generate( ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { throw StandardException.newException(SQLState.LANG_UNABLE_TO_GENERATE, this.nodeHeader()); } | protected void generate( ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { throw StandardException.newException(SQLState.LANG_UNABLE_TO_GENERATE, this.nodeHeader()); } | 1,102,124 |
public void push(int value); | public void push(byte value); | 1,102,125 |
public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) throws StandardException { if (SanityManager.DEBUG) { SanityManager.THROWASSERT("Five-argument init() not implemented for " + getClass().getName()); } } | public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) throws StandardException { if (SanityManager.DEBUG) { SanityManager.THROWASSERT("Five-argument init() not implemented for " + getClass().getName()); } } | 1,102,126 |
public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) throws StandardException { if (SanityManager.DEBUG) { SanityManager.THROWASSERT("Five-argument init() not implemented for " + getClass().getName()); } } | public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) throws StandardException { if (SanityManager.DEBUG) { SanityManager.THROWASSERT("Single-argument init() not implemented for " + getClass().getName()); } } | 1,102,127 |
public ResultSetNode modifyAccessPaths() throws StandardException { /* Beetle 4454 - union all with another union all would modify access * paths twice causing NullPointerException, make sure we don't * do this again, if we have already done it in modifyAccessPaths(outertables) */ if (!leftModifyAccessPathsDon... | public ResultSetNode modifyAccessPaths() throws StandardException { /* Beetle 4454 - union all with another union all would modify access * paths twice causing NullPointerException, make sure we don't * do this again, if we have already done it in modifyAccessPaths(outertables) */ if (!leftModifyAccessPathsDon... | 1,102,128 |
public ResultSetNode modifyAccessPaths() throws StandardException { /* Beetle 4454 - union all with another union all would modify access * paths twice causing NullPointerException, make sure we don't * do this again, if we have already done it in modifyAccessPaths(outertables) */ if (!leftModifyAccessPathsDon... | public ResultSetNode modifyAccessPaths() throws StandardException { /* Beetle 4454 - union all with another union all would modify access * paths twice causing NullPointerException, make sure we don't * do this again, if we have already done it in modifyAccessPaths(outertables) */ if (!leftModifyAccessPathsDon... | 1,102,129 |
public static void dumpRS(ResultSet s) throws SQLException, UnsupportedEncodingException { if (s == null) { System.out.println("<NULL>"); return; } ResultSetMetaData rsmd = s.getMetaData(); // Get the number of columns in the result set int numCols = rsmd.getColumnCount(); if (numCols <= 0) { System.out.... | public static void dumpRS(ResultSet s) throws SQLException { if (s == null) { System.out.println("<NULL>"); return; } ResultSetMetaData rsmd = s.getMetaData(); // Get the number of columns in the result set int numCols = rsmd.getColumnCount(); if (numCols <= 0) { System.out.println("(no columns!)"); re... | 1,102,130 |
public static void dumpRS(ResultSet s) throws SQLException, UnsupportedEncodingException { if (s == null) { System.out.println("<NULL>"); return; } ResultSetMetaData rsmd = s.getMetaData(); // Get the number of columns in the result set int numCols = rsmd.getColumnCount(); if (numCols <= 0) { System.out.... | public static void dumpRS(ResultSet s) throws SQLException, UnsupportedEncodingException { if (s == null) { System.out.println("<NULL>"); return; } ResultSetMetaData rsmd = s.getMetaData(); // Get the number of columns in the result set int numCols = rsmd.getColumnCount(); if (numCols <= 0) { System.out.... | 1,102,131 |
public FormatableArrayHolder getColumnOrdering(OrderedColumnList oclist) { int numCols = (oclist == null) ? 0 : oclist.size(); if (numCols == 0) { return new FormatableArrayHolder(new IndexColumnOrder[0]); } return new FormatableArrayHolder(oclist.getColumnOrdering()); } | public FormatableArrayHolder getColumnOrdering(OrderedColumnList oclist) { int numCols = (oclist == null) ? 0 : oclist.size(); if (numCols == 0) { return new FormatableArrayHolder(new IndexColumnOrder[0]); } return new FormatableArrayHolder(oclist.getColumnOrdering()); } | 1,102,132 |
public FormatableArrayHolder getColumnOrdering(OrderedColumnList oclist) { int numCols = (oclist == null) ? 0 : oclist.size(); if (numCols == 0) { return new FormatableArrayHolder(new IndexColumnOrder[0]); } return new FormatableArrayHolder(oclist.getColumnOrdering()); } | public FormatableArrayHolder getColumnOrdering(OrderedColumnList oclist) { int numCols = (oclist == null) ? 0 : oclist.size(); if (numCols == 0) { if (!(rclist.getResultColumn(i+1).isGeneratedForUnmatchedColumnInInsert())) numRealCols++; } return new FormatableArrayHolder(oclist.getColumnOrdering()); } | 1,102,133 |
public FormatableArrayHolder getColumnOrdering(OrderedColumnList oclist) { int numCols = (oclist == null) ? 0 : oclist.size(); if (numCols == 0) { return new FormatableArrayHolder(new IndexColumnOrder[0]); } return new FormatableArrayHolder(oclist.getColumnOrdering()); } | public FormatableArrayHolder getColumnOrdering(OrderedColumnList oclist) { int numCols = (oclist == null) ? 0 : oclist.size(); if (numCols == 0) { return new FormatableArrayHolder(new IndexColumnOrder[0]); } ordering = new IndexColumnOrder[numRealCols]; for (int i=0, j=0; i<numCols; i++) { if (!(rclist.getResu... | 1,102,134 |
public void treePrint(int depth) { if (SanityManager.DEBUG) { debugPrint(formatNodeString(nodeHeader(), depth)); debugPrint(formatNodeString(this.toString(), depth)); printSubNodes(depth); } } | public void treePrint() { if (SanityManager.DEBUG) { debugPrint(formatNodeString(nodeHeader(), depth)); debugPrint(formatNodeString(this.toString(), depth)); printSubNodes(depth); } } | 1,102,135 |
public void treePrint(int depth) { if (SanityManager.DEBUG) { debugPrint(formatNodeString(nodeHeader(), depth)); debugPrint(formatNodeString(this.toString(), depth)); printSubNodes(depth); } } | public void treePrint(int depth) { if (SanityManager.DEBUG) { debugPrint(formatNodeString(nodeHeader(), depth)); debugPrint(formatNodeString(this.toString(), depth)); printSubNodes(depth); } } | 1,102,136 |
public TemporaryRowHolderImpl ( TransactionController tc, Properties properties, ResultDescription resultDescription ) { this(tc, properties, resultDescription, DEFAULT_OVERFLOWTHRESHOLD, false, false); } | public TemporaryRowHolderImpl ( Activation activation, Properties properties, ResultDescription resultDescription ) { this(tc, properties, resultDescription, DEFAULT_OVERFLOWTHRESHOLD, false, false); } | 1,102,137 |
public TemporaryRowHolderImpl ( TransactionController tc, Properties properties, ResultDescription resultDescription ) { this(tc, properties, resultDescription, DEFAULT_OVERFLOWTHRESHOLD, false, false); } | public TemporaryRowHolderImpl ( TransactionController tc, Properties properties, ResultDescription resultDescription ) { this(activation, properties, resultDescription, DEFAULT_OVERFLOWTHRESHOLD, false, false); } | 1,102,138 |
public SQLLongint(long val) { value = val; } | public SQLLongint() { value = val; } | 1,102,141 |
public SQLLongint(long val) { value = val; } | public SQLLongint(long val) { isnull = true; } | 1,102,142 |
public CostEstimate optimizeIt(Optimizer optimizer, OptimizablePredicateList predList, CostEstimate outerCost, RowOrdering rowOrdering) throws StandardException { /* ** RESOLVE: Most types of Optimizables only implement estimateCost(), ** and leave it up to optimizeIt() in FromTable to figure ou... | public CostEstimate optimizeIt(Optimizer optimizer, OptimizablePredicateList predList, CostEstimate outerCost, RowOrdering rowOrdering) throws StandardException { /* ** RESOLVE: Most types of Optimizables only implement estimateCost(), ** and leave it up to optimizeIt() in FromTable to figure ou... | 1,102,144 |
public CostEstimate optimizeIt(Optimizer optimizer, OptimizablePredicateList predList, CostEstimate outerCost, RowOrdering rowOrdering) throws StandardException { /* ** RESOLVE: Most types of Optimizables only implement estimateCost(), ** and leave it up to optimizeIt() in FromTable to figure ou... | public CostEstimate optimizeIt(Optimizer optimizer, OptimizablePredicateList predList, CostEstimate outerCost, RowOrdering rowOrdering) throws StandardException { /* ** RESOLVE: Most types of Optimizables only implement estimateCost(), ** and leave it up to optimizeIt() in FromTable to figure ou... | 1,102,145 |
public ColumnInfo(String colname, int coltype, boolean numeric) { this(colname, coltype); this.combovals=null; this.numeric=numeric; this.tooltip=null; this.allignement=SWT.LEFT; this.readonly=false; this.hide_negative=false; if (numeric) { valueType=Value.VALUE_TYPE_INTEGER; } ... | public ColumnInfo(String colname, int coltype, String def) { this(colname, coltype); this.combovals=null; this.numeric=numeric; this.tooltip=null; this.allignement=SWT.LEFT; this.readonly=false; this.hide_negative=false; if (numeric) { valueType=Value.VALUE_TYPE_INTEGER; } ... | 1,102,146 |
public ColumnInfo(String colname, int coltype, boolean numeric) { this(colname, coltype); this.combovals=null; this.numeric=numeric; this.tooltip=null; this.allignement=SWT.LEFT; this.readonly=false; this.hide_negative=false; if (numeric) { valueType=Value.VALUE_TYPE_INTEGER; } ... | public ColumnInfo(String colname, int coltype, boolean numeric) { this(colname, coltype); this.combovals=null; this.numeric=numeric; this.tooltip=null; this.allignement=SWT.LEFT; this.readonly=false; this.hide_negative=false; if (numeric) { valueType=Value.VALUE_TYPE_INTEGER; } ... | 1,102,147 |
final void checkStatus() throws SQLException { if (!active) throw newSQLException(SQLState.ALREADY_CLOSED, "Statement"); } | final void checkStatus() throws SQLException { if (!active) throw newSQLException(SQLState.ALREADY_CLOSED, "Statement"); } | 1,102,148 |
public void setValue(boolean theValue) throws StandardException; | public void setValue(Object theValue) throws StandardException; | 1,102,149 |
ReaderToUTF8Stream(LimitReader reader) { this.reader = reader; buffer = new byte[BUFSIZE]; blen = -1; } | ReaderToUTF8Stream(LimitReader reader,int length,int numCharsToTruncate) { this.reader = reader; buffer = new byte[BUFSIZE]; blen = -1; } | 1,102,150 |
public static SQLException notImplemented(String feature) { return newEmbedSQLException(SQLState.NOT_IMPLEMENTED, new Object[] {feature}, StandardException.getSeverityFromIdentifier(SQLState.NOT_IMPLEMENTED)); } | public static SQLException notImplemented() { return newEmbedSQLException(SQLState.NOT_IMPLEMENTED, new Object[] {feature}, StandardException.getSeverityFromIdentifier(SQLState.NOT_IMPLEMENTED)); } | 1,102,153 |
public static SQLException notImplemented(String feature) { return newEmbedSQLException(SQLState.NOT_IMPLEMENTED, new Object[] {feature}, StandardException.getSeverityFromIdentifier(SQLState.NOT_IMPLEMENTED)); } | public static SQLException notImplemented(String feature) { return newEmbedSQLException(SQLState.NOT_IMPLEMENTED, new Object[] {feature}, StandardException.getSeverityFromIdentifier(SQLState.NOT_IMPLEMENTED)); } | 1,102,154 |
public static SQLWarning newWarning(String messageId, Object a1) { Object[] oa = new Object[] {a1}; return newWarningCommon( messageId, oa ); } | public static SQLWarning newWarning(String messageId) { Object[] oa = new Object[] {a1}; return newWarningCommon( messageId, oa ); } | 1,102,155 |
public static SQLWarning newWarning(String messageId, Object a1) { Object[] oa = new Object[] {a1}; return newWarningCommon( messageId, oa ); } | public static SQLWarning newWarning(String messageId, Object a1) { return newWarningCommon( messageId, (Object[]) null ); return newWarningCommon( messageId, oa ); } | 1,102,156 |
public static SQLWarning newWarning(String messageId, Object a1) { Object[] oa = new Object[] {a1}; return newWarningCommon( messageId, oa ); } | public static SQLWarning newWarning(String messageId, Object a1) { Object[] oa = new Object[] {a1}; } | 1,102,157 |
boolean isAscending(Integer keyColumnPosition); | public boolean[] isAscending(); | 1,102,158 |
public void setValue(long l) { if (value==null || value.getType()!=VALUE_TYPE_INTEGER) value = new ValueInteger(l); else value.setInteger(l); setNull(false); } | public void setValue(long l) { if (value==null || value.getType()!=VALUE_TYPE_INTEGER) value = new ValueInteger(l); else value.setInteger(l); setNull(false); } | 1,102,159 |
public void close() { synchronized (lock) { closeIn(); parent = null; noMoreReads = true; } } | public void close() throws IOException { synchronized (lock) { closeIn(); parent = null; noMoreReads = true; } } | 1,102,160 |
private void closeIn() { if (in != null) { try { in.close(); } catch (IOException ioe) { } finally { in = null; } } } | private void closeIn() throws IOException { if (in != null) { try { in.close(); } catch (IOException ioe) { } finally { in = null; } } } | 1,102,161 |
private void closeIn() { if (in != null) { try { in.close(); } catch (IOException ioe) { } finally { in = null; } } } | private void closeIn() { if (in != null) { try { in.close(); } } catch (StandardException e) { e.printStackTrace(); throw new IOException(e.getMessage()); } finally { in = null; } } } | 1,102,162 |
private IOException utfFormatException(String s) { noMoreReads = true; closeIn(); return new UTFDataFormatException(s); } | private IOException utfFormatException(String s) throws IOException { noMoreReads = true; closeIn(); return new UTFDataFormatException(s); } | 1,102,163 |
public static javax.sql.DataSource getDataSource(Properties attrs) { String classname; if(HAVE_DRIVER_CLASS) classname = getDataSourcePrefix() + REGULAR_DATASOURCE_STRING + "DataSource"; else classname = getDataSourcePrefix() + JSR169_DATASOURCE_STRING + "DataSource"; return (javax.sql.DataSource) getDataSou... | public static javax.sql.DataSource getDataSource(Properties attrs) { String classname; if(HAVE_DRIVER_CLASS) classname = getDataSourcePrefix() + REGULAR_DATASOURCE_STRING + "DataSource"; else return getSimpleDataSource(attrs); return (javax.sql.DataSource) getDataSourceWithReflection(classname, attrs); } | 1,102,164 |
public static javax.sql.DataSource getDataSource(Properties attrs) { String classname; if(HAVE_DRIVER_CLASS) classname = getDataSourcePrefix() + REGULAR_DATASOURCE_STRING + "DataSource"; else classname = getDataSourcePrefix() + JSR169_DATASOURCE_STRING + "DataSource"; return (javax.sql.DataSource) getDataSou... | public static javax.sql.DataSource getDataSource(Properties attrs) { String classname; if(HAVE_DRIVER_CLASS) classname = getDataSourcePrefix() + REGULAR_DATASOURCE_STRING + "DataSource"; else classname = getDataSourcePrefix() + JSR169_DATASOURCE_STRING + "DataSource"; } | 1,102,165 |
private void processCommands() throws DRDAProtocolException { DRDAStatement stmt = null; int updateCount = 0; boolean PRPSQLSTTfailed = false; do { correlationID = reader.readDssHeader(); int codePoint = reader.readLengthAndCodePoint(); switch(codePoint) { case CodePoint.CNTQRY: try{ stmt = pa... | private void processCommands() throws DRDAProtocolException { DRDAStatement stmt = null; int updateCount = 0; boolean PRPSQLSTTfailed = false; do { correlationID = reader.readDssHeader(); int codePoint = reader.readLengthAndCodePoint(); switch(codePoint) { case CodePoint.CNTQRY: try{ stmt = pa... | 1,102,166 |
private void processCommands() throws DRDAProtocolException { DRDAStatement stmt = null; int updateCount = 0; boolean PRPSQLSTTfailed = false; do { correlationID = reader.readDssHeader(); int codePoint = reader.readLengthAndCodePoint(); switch(codePoint) { case CodePoint.CNTQRY: try{ stmt = pa... | private void processCommands() throws DRDAProtocolException { DRDAStatement stmt = null; int updateCount = 0; boolean PRPSQLSTTfailed = false; do { correlationID = reader.readDssHeader(); int codePoint = reader.readLengthAndCodePoint(); switch(codePoint) { case CodePoint.CNTQRY: try{ stmt = pa... | 1,102,167 |
protected static DRDAProtocolException newAgentError(DRDAConnThread agent, int svrcod, String rdbnam, String srvdgn) { System.out.println("agent" + agent); Object[] oa = {new Integer(svrcod), rdbnam, srvdgn}; return new DRDAProtocolException(DRDA_AgentError, agent, NO_CODPNT_ARG, NO_ASSO... | protected static DRDAProtocolException newAgentError(DRDAConnThread agent, int svrcod, String rdbnam, String srvdgn) { if ( SanityManager.DEBUG ) System.out.println("agentError in " + agent); Object[] oa = {new Integer(svrcod), rdbnam, srvdgn}; return new DRDAProtocolException(DRDA_AgentError, agent, ... | 1,102,169 |
DRDAProtocolException(String msgid, DRDAConnThread agent, int cpArg, int errCdArg) { this(msgid,agent, cpArg, errCdArg, (Object []) null); } | DRDAProtocolException(String msgid, DRDAConnThread agent, int cpArg, int errCdArg, Object []args) { this(msgid,agent, cpArg, errCdArg, (Object []) null); } | 1,102,170 |
DRDAProtocolException(String msgid, DRDAConnThread agent, int cpArg, int errCdArg) { this(msgid,agent, cpArg, errCdArg, (Object []) null); } | DRDAProtocolException(String msgid, DRDAConnThread agent, int cpArg, int errCdArg) { boolean agentError = false; exceptionInfo = (DRDAProtocolExceptionInfo) errorInfoTable.get(msgid); if (agent != null) { this.correlationID = agent.getCorrelationID(); this.crrtkn = agent.getCrrtkn(); } th... | 1,102,171 |
protected int getQryclsimp() { return currentDrdaRs.qryclsimp; } | protected void getQryclsimp(int value) { return currentDrdaRs.qryclsimp; } | 1,102,172 |
protected int getQryclsimp() { return currentDrdaRs.qryclsimp; } | protected int getQryclsimp() { currentDrdaRs.qryclsimp = value; } | 1,102,173 |
protected void endDss() { endDss(true); } | protected void endDss(byte chainByte) { endDss(true); } | 1,102,174 |
DDMWriter (CcsidManager ccsidManager, DRDAConnThread agent, DssTrace dssTrace) { this.bytes = new byte[DEFAULT_BUFFER_SIZE]; this.ccsidManager = ccsidManager; this.agent = agent; this.prevHdrLocation = -1; this.previousCorrId = DssConstants.CORRELATION_ID_UNKNOWN; this.previousChainByte = DssConstants.DSS_NOCHAI... | DDMWriter (int minSize, CcsidManager ccsidManager, DRDAConnThread agent, DssTrace dssTrace) { this.bytes = new byte[DEFAULT_BUFFER_SIZE]; this.ccsidManager = ccsidManager; this.agent = agent; this.prevHdrLocation = -1; this.previousCorrId = DssConstants.CORRELATION_ID_UNKNOWN; this.previousChainByte = DssConstan... | 1,102,176 |
DDMWriter (CcsidManager ccsidManager, DRDAConnThread agent, DssTrace dssTrace) { this.bytes = new byte[DEFAULT_BUFFER_SIZE]; this.ccsidManager = ccsidManager; this.agent = agent; this.prevHdrLocation = -1; this.previousCorrId = DssConstants.CORRELATION_ID_UNKNOWN; this.previousChainByte = DssConstants.DSS_NOCHAI... | DDMWriter (CcsidManager ccsidManager, DRDAConnThread agent, DssTrace dssTrace) { this.bytes = new byte[minSize]; this.ccsidManager = ccsidManager; this.agent = agent; this.prevHdrLocation = -1; this.previousCorrId = DssConstants.CORRELATION_ID_UNKNOWN; this.previousChainByte = DssConstants.DSS_NOCHAIN; this.isC... | 1,102,177 |
protected void initialize(DRDAConnThread agent, DssTrace dssTrace) { this.agent = agent; if (agent != null) { ccsidManager = agent.ccsidManager; inputStream = agent.getInputStream(); } topDdmCollectionStack = EMPTY_STACK; svrcod = 0; pos = 0; count = 0; ddmScalarLen = 0; dssLength = 0; prevCorrelat... | protected void initialize(DRDAConnThread agent, DssTrace dssTrace) { this.agent = agent; if (agent != null) { ccsidManager = agent.ccsidManager; inputStream = agent.getInputStream(); } topDdmCollectionStack = EMPTY_STACK; svrcod = 0; pos = 0; count = 0; ddmScalarLen = 0; dssLength = 0; prevCorrelat... | 1,102,178 |
protected byte[] readBytes () throws DRDAProtocolException { return readBytes((int)ddmScalarLen); } | protected byte[] readBytes (int length) throws DRDAProtocolException { return readBytes((int)ddmScalarLen); } | 1,102,179 |
protected byte[] readBytes () throws DRDAProtocolException { return readBytes((int)ddmScalarLen); } | protected byte[] readBytes () throws DRDAProtocolException { byte[] b; if (length < dssLength) { ensureBLayerDataInBuffer (length, ADJUST_LENGTHS); b = new byte[length]; System.arraycopy(buffer,pos,b,0,length); pos +=length; } else b = getExtData(length,false); return b; } | 1,102,180 |
protected String readString () throws DRDAProtocolException { return readString((int)ddmScalarLen); } | protected String readString (int length) throws DRDAProtocolException { return readString((int)ddmScalarLen); } | 1,102,181 |
protected String readString () throws DRDAProtocolException { return readString((int)ddmScalarLen); } | protected String readString () throws DRDAProtocolException { ensureBLayerDataInBuffer (length, ADJUST_LENGTHS); String result = ccsidManager.convertToUCS2 (buffer, pos, length); pos += length; return result; } | 1,102,182 |
protected void skipBytes () throws DRDAProtocolException { skipBytes((int)ddmScalarLen); } | protected void skipBytes (int length) throws DRDAProtocolException { skipBytes((int)ddmScalarLen); } | 1,102,183 |
protected void skipBytes () throws DRDAProtocolException { skipBytes((int)ddmScalarLen); } | protected void skipBytes () throws DRDAProtocolException { ensureBLayerDataInBuffer (length, ADJUST_LENGTHS); pos += length; } | 1,102,184 |
protected byte readByte () throws DRDAProtocolException { ensureBLayerDataInBuffer (1, ADJUST_LENGTHS); return (byte) (buffer[pos++] & 0xff); } | protected byte readByte () throws DRDAProtocolException { ensureBLayerDataInBuffer (1, ADJUST_LENGTHS); return buffer[pos++]; } | 1,102,185 |
protected PreparedStatement prepare(String sqlStmt) throws SQLException { // save current prepare iso level int saveIsolationLevel = -1; boolean isolationSet = false; if (pkgnamcsn !=null) { saveIsolationLevel = database.getPrepareIsolation(); database.setPrepareIsolation(isolationLevel); isolationSet = t... | protected PreparedStatement prepare(String sqlStmt) throws SQLException { // save current prepare iso level int saveIsolationLevel = -1; boolean isolationSet = false; if (pkgnamcsn !=null) { saveIsolationLevel = database.getPrepareIsolation(); database.setPrepareIsolation(isolationLevel); isolationSet = t... | 1,102,186 |
protected String readStringData(int length) throws DRDAProtocolException { return readString(length, DB2jServerImpl.DEFAULT_ENCODING); } | protected String readStringData() throws DRDAProtocolException { return readString(length, DB2jServerImpl.DEFAULT_ENCODING); } | 1,102,188 |
protected String readStringData(int length) throws DRDAProtocolException { return readString(length, DB2jServerImpl.DEFAULT_ENCODING); } | protected String readStringData(int length) throws DRDAProtocolException { return readString((int)ddmScalarLen, DB2jServerImpl.DEFAULT_ENCODING); } | 1,102,189 |
protected Session getNextSession(Session currentSession) { Session retval = null; if (shutdown == true) return retval; try { synchronized (runQueue) { // nobody waiting - go on with current session if (runQueue.size() == 0) { // no current session - wait for some work if (currentSession == nu... | protected Session getNextSession(Session currentSession) { Session retval = null; if (shutdown == true) return retval; try { synchronized (runQueue) { // nobody waiting - go on with current session if (runQueue.size() == 0) { // no current session - wait for some work if (currentSession == nu... | 1,102,190 |
protected Session getNextSession(Session currentSession) { Session retval = null; if (shutdown == true) return retval; try { synchronized (runQueue) { // nobody waiting - go on with current session if (runQueue.size() == 0) { // no current session - wait for some work if (currentSession == nu... | protected Session getNextSession(Session currentSession) { Session retval = null; if (shutdown == true) return retval; try { synchronized (runQueue) { // nobody waiting - go on with current session if (runQueue.size() == 0) { // no current session - wait for some work if (currentSession == nu... | 1,102,191 |
protected void writeBytes (byte[] buf, int start, int length) { if (SanityManager.DEBUG) { if (buf == null && length > 0) SanityManager.THROWASSERT("Buf is null"); if (length + start - 1 > buf.length) SanityManager.THROWASSERT("Not enough bytes in buffer"); } ensureLength (length); System.arraycop... | protected void writeBytes (byte[] buf, int length) { if (SanityManager.DEBUG) { if (buf == null && length > 0) SanityManager.THROWASSERT("Buf is null"); if (length + start - 1 > buf.length) SanityManager.THROWASSERT("Not enough bytes in buffer"); } ensureLength (length); System.arraycopy(buf,start... | 1,102,192 |
protected void writeBytes (byte[] buf, int start, int length) { if (SanityManager.DEBUG) { if (buf == null && length > 0) SanityManager.THROWASSERT("Buf is null"); if (length + start - 1 > buf.length) SanityManager.THROWASSERT("Not enough bytes in buffer"); } ensureLength (length); System.arraycop... | protected void writeBytes (byte[] buf, int start, int length) { if (SanityManager.DEBUG) { if (buf == null && length > 0) SanityManager.THROWASSERT("Buf is null"); if (length + start - 1 > buf.length) SanityManager.THROWASSERT("Not enough bytes in buffer"); } ensureLength (length); System.arraycop... | 1,102,193 |
protected void writeScalarBytes (int codePoint, byte[] buf) { int bufLength = buf.length; ensureLength (bufLength + 4); bytes[offset] = (byte) (((bufLength+4) >>> 8) & 0xff); bytes[offset + 1] = (byte) ((bufLength+4) & 0xff); bytes[offset + 2] = (byte) ((codePoint >>> 8) & 0xff); bytes[offset + 3] = (byte) (code... | protected void writeScalarBytes (int codePoint, byte[] buf, int length) { int bufLength = buf.length; ensureLength (bufLength + 4); bytes[offset] = (byte) (((bufLength+4) >>> 8) & 0xff); bytes[offset + 1] = (byte) ((bufLength+4) & 0xff); bytes[offset + 2] = (byte) ((codePoint >>> 8) & 0xff); bytes[offset + 3] = ... | 1,102,194 |
protected void writeScalarBytes (int codePoint, byte[] buf) { int bufLength = buf.length; ensureLength (bufLength + 4); bytes[offset] = (byte) (((bufLength+4) >>> 8) & 0xff); bytes[offset + 1] = (byte) ((bufLength+4) & 0xff); bytes[offset + 2] = (byte) ((codePoint >>> 8) & 0xff); bytes[offset + 3] = (byte) (code... | protected void writeScalarBytes (int codePoint, byte[] buf) { int bufLength = buf.length; ensureLength (bufLength + 4); bytes[offset] = (byte) (((bufLength+4) >>> 8) & 0xff); bytes[offset + 1] = (byte) ((bufLength+4) & 0xff); bytes[offset + 2] = (byte) ((codePoint >>> 8) & 0xff); bytes[offset + 3] = (byte) (code... | 1,102,195 |
protected void writeScalarBytes (int codePoint, byte[] buf) { int bufLength = buf.length; ensureLength (bufLength + 4); bytes[offset] = (byte) (((bufLength+4) >>> 8) & 0xff); bytes[offset + 1] = (byte) ((bufLength+4) & 0xff); bytes[offset + 2] = (byte) ((codePoint >>> 8) & 0xff); bytes[offset + 3] = (byte) (code... | protected void writeScalarBytes (int codePoint, byte[] buf) { int bufLength = buf.length; ensureLength (bufLength + 4); bytes[offset] = (byte) (((bufLength+4) >>> 8) & 0xff); bytes[offset + 1] = (byte) ((bufLength+4) & 0xff); bytes[offset + 2] = (byte) ((codePoint >>> 8) & 0xff); bytes[offset + 3] = (byte) (code... | 1,102,196 |
protected void writeLDString(String s, int index) throws DRDAProtocolException { try { byte [] byteval = s.getBytes(NetworkServerControlImpl.DEFAULT_ENCODING); int origLen = byteval.length; boolean multiByteTrunc = false; int writeLen = java.lang.Math.min(FdocaConstants.LONGVARCHAR_MAX_LEN, origL... | protected void writeLDString(String s) throws DRDAProtocolException { try { byte [] byteval = s.getBytes(NetworkServerControlImpl.DEFAULT_ENCODING); int origLen = byteval.length; boolean multiByteTrunc = false; int writeLen = java.lang.Math.min(FdocaConstants.LONGVARCHAR_MAX_LEN, origLen); /* ... | 1,102,197 |
protected void writeLDString(String s, int index) throws DRDAProtocolException { try { byte [] byteval = s.getBytes(NetworkServerControlImpl.DEFAULT_ENCODING); int origLen = byteval.length; boolean multiByteTrunc = false; int writeLen = java.lang.Math.min(FdocaConstants.LONGVARCHAR_MAX_LEN, origL... | protected void writeLDString(String s, int index) throws DRDAProtocolException { try { byte [] byteval = s.getBytes(NetworkServerControlImpl.DEFAULT_ENCODING); int origLen = byteval.length; boolean multiByteTrunc = false; int writeLen = java.lang.Math.min(FdocaConstants.LONGVARCHAR_MAX_LEN, origL... | 1,102,198 |
protected void writeLDBytes(byte[] buf, int index) { int length = buf.length; int writeLen = buf.length; writeShort(writeLen); writeBytes(buf,0,writeLen); } | protected void writeLDBytes(byte[] buf) { int length = buf.length; int writeLen = buf.length; writeShort(writeLen); writeBytes(buf,0,writeLen); } | 1,102,199 |
protected void writeLDBytes(byte[] buf, int index) { int length = buf.length; int writeLen = buf.length; writeShort(writeLen); writeBytes(buf,0,writeLen); } | protected void writeLDBytes(byte[] buf, int index) { int length = buf.length; int writeLen = buf.length; writeShort(writeLen); writeBytes(buf,0,writeLen); } | 1,102,200 |
protected void writeScalarPaddedString (String string, int paddedLength) { int stringLength = string.length(); int fillLength = paddedLength -stringLength; ensureLength (paddedLength); offset = ccsidManager.convertFromUCS2 (string, bytes, offset); Arrays.fill(bytes,offset, offset + fillLength,ccsidManager.space);... | void writeScalarPaddedString (int codePoint, String string, int paddedLength) { int stringLength = string.length(); int fillLength = paddedLength -stringLength; ensureLength (paddedLength); offset = ccsidManager.convertFromUCS2 (string, bytes, offset); Arrays.fill(bytes,offset, offset + fillLength,ccsidManager.sp... | 1,102,201 |
protected void writeScalarPaddedString (String string, int paddedLength) { int stringLength = string.length(); int fillLength = paddedLength -stringLength; ensureLength (paddedLength); offset = ccsidManager.convertFromUCS2 (string, bytes, offset); Arrays.fill(bytes,offset, offset + fillLength,ccsidManager.space);... | protected void writeScalarPaddedString (String string, int paddedLength) { int stringLength = string.length(); int fillLength = paddedLength -stringLength; ensureLength (paddedLength); offset = ccsidManager.convertFromUCS2 (string, bytes, offset); Arrays.fill(bytes,offset, offset + fillLength,ccsidManager.space);... | 1,102,202 |
protected void writeScalarPaddedBytes (byte[] buf, int paddedLength, byte padByte) { int bufLength = buf.length; int fillLength = paddedLength - bufLength; ensureLength (paddedLength); System.arraycopy(buf,0,bytes,offset,bufLength); offset +=bufLength; Arrays.fill(bytes,offset,offset + fillLength,padByte); offs... | protected void writeScalarPaddedBytes (int codePoint, byte[] buf, int paddedLength, byte padByte) { int bufLength = buf.length; int fillLength = paddedLength - bufLength; ensureLength (paddedLength); System.arraycopy(buf,0,bytes,offset,bufLength); offset +=bufLength; Arrays.fill(bytes,offset,offset + fillLength,... | 1,102,203 |
protected void writeScalarPaddedBytes (byte[] buf, int paddedLength, byte padByte) { int bufLength = buf.length; int fillLength = paddedLength - bufLength; ensureLength (paddedLength); System.arraycopy(buf,0,bytes,offset,bufLength); offset +=bufLength; Arrays.fill(bytes,offset,offset + fillLength,padByte); offs... | protected void writeScalarPaddedBytes (byte[] buf, int paddedLength, byte padByte) { int bufLength = buf.length; int fillLength = paddedLength - bufLength; ensureLength (paddedLength); System.arraycopy(buf,0,bytes,offset,bufLength); offset +=bufLength; Arrays.fill(bytes,offset,offset + fillLength,padByte); offs... | 1,102,204 |
public void saveRep(Repository rep, IProgressMonitor monitor) throws KettleException { try { if (monitor!=null) monitor.subTask(Messages.getString("TransMeta.Monitor.LockingRepository")); //$NON-NLS-1$ rep.lockRepository(); // make sure we're they only one using the repository at... | public void saveRep(Repository rep) throws KettleException { try { if (monitor!=null) monitor.subTask(Messages.getString("TransMeta.Monitor.LockingRepository")); //$NON-NLS-1$ rep.lockRepository(); // make sure we're they only one using the repository at the moment // ... | 1,102,205 |
public void saveRep(Repository rep, IProgressMonitor monitor) throws KettleException { try { if (monitor!=null) monitor.subTask(Messages.getString("TransMeta.Monitor.LockingRepository")); //$NON-NLS-1$ rep.lockRepository(); // make sure we're they only one using the repository at... | public void saveRep(Repository rep, IProgressMonitor monitor) throws KettleException { try { if (monitor!=null) monitor.subTask(Messages.getString("TransMeta.Monitor.LockingRepository")); //$NON-NLS-1$ rep.lockRepository(); // make sure we're they only one using the repository at... | 1,102,206 |
private static void testTimeoutWithFetch(Connection conn1, Connection conn2) throws TestFailedException { System.out.println("Testing timeout with fetch operations"); try { conn1.setAutoCommit(false); conn2.setAutoC... | private static void testTimeoutWithFetch(Connection conn1, Connection conn2) throws TestFailedException { System.out.println("Testing timeout with fetch operations"); try { conn1.setAutoCommit(false); conn2.setAutoC... | 1,102,207 |
public JSQLType getJSQLType ( ) { return jsqlType; } | public JSQLType getJSQLType ( ) { return jsqlType; } | 1,102,208 |
public String getJavaTypeName() { JSQLType myType = getJSQLType(); if ( myType == null ) { return ""; } switch( myType.getCategory() ) { case JSQLType.JAVA_CLASS: return myType.getJavaClassName(); case JSQLType.JAVA_PRIMITIVE: return JSQLType.primitiveNames[ myType.getPrimitiveKind() ]; default: ... | public String getJavaTypeName() throws StandardException { JSQLType myType = getJSQLType(); if ( myType == null ) { return ""; } switch( myType.getCategory() ) { case JSQLType.JAVA_CLASS: return myType.getJavaClassName(); case JSQLType.JAVA_PRIMITIVE: return JSQLType.primitiveNames[ myType.getPrimitiveKi... | 1,102,209 |
public boolean isPrimitiveType() { JSQLType myType = getJSQLType(); if ( myType == null ) { return false; } else { return ( myType.getCategory() == JSQLType.JAVA_PRIMITIVE ); } } | public boolean isPrimitiveType() throws StandardException { JSQLType myType = getJSQLType(); if ( myType == null ) { return false; } else { return ( myType.getCategory() == JSQLType.JAVA_PRIMITIVE ); } } | 1,102,210 |
public void checkReliability( int fragmentBitMask, String fragmentType ) throws StandardException { // if we're in a context that forbids unreliable fragments, raise an error if ( ( getCompilerContext().getReliability() & fragmentBitMask ) != 0 ) { String fragmentTypeTxt = MessageService.getTextMessage(... | public void checkReliability( String fragmentType, int fragmentBitMask ) throws StandardException { // if we're in a context that forbids unreliable fragments, raise an error if ( ( getCompilerContext().getReliability() & fragmentBitMask ) != 0 ) { String fragmentTypeTxt = MessageService.getTextMessage(... | 1,102,211 |
public void checkReliability( int fragmentBitMask, String fragmentType ) throws StandardException { // if we're in a context that forbids unreliable fragments, raise an error if ( ( getCompilerContext().getReliability() & fragmentBitMask ) != 0 ) { String fragmentTypeTxt = MessageService.getTextMessage(... | public void checkReliability( int fragmentBitMask, String fragmentType ) throws StandardException { // if we're in a context that forbids unreliable fragments, raise an error if ( ( getCompilerContext().getReliability() & fragmentBitMask ) != 0 ) { String fragmentTypeTxt = MessageService.getTextMessage(... | 1,102,212 |
public LocalField newFieldDeclaration(int modifiers, String type) { return cb.addField(type, newFieldName(), modifiers); } | public LocalField newFieldDeclaration(int modifiers, String type, String name) { return cb.addField(type, newFieldName(), modifiers); } | 1,102,213 |
public LocalField newFieldDeclaration(int modifiers, String type) { return cb.addField(type, newFieldName(), modifiers); } | public LocalField newFieldDeclaration(int modifiers, String type) { return cb.addField(type, name, modifiers); } | 1,102,214 |
public JSQLType ( String javaName ) { byte primitiveID = getPrimitiveID( javaName ); if ( primitiveID != NOT_PRIMITIVE ) { initialize( primitiveID ); } else { initialize( javaName ); } } | public JSQLType ( String javaName ) { byte primitiveID = getPrimitiveID( javaName ); if ( primitiveID != NOT_PRIMITIVE ) { initialize( primitiveID ); } else { initialize( javaName ); } } | 1,102,215 |
public String toString() { return getFullTableName(); } | public String toString() { if (hasSchema) return getFullTableName(); else return tableName; } | 1,102,217 |
private static void setAscii(PreparedStatement ps, int targetCol) throws Exception { // correct byte count System.out.println("CORRECT NUMBER OF BYTES IN STREAM"); ps.setAsciiStream(targetCol, new java.io.ByteArrayInputStream("Lieberman ran with Gore".getBytes("US-ASCII")), 23); ps.executeUpdate(); // less bytes ... | private static void setAscii(PreparedStatement ps, int targetCol) throws Exception { // correct byte count System.out.println("CORRECT NUMBER OF BYTES IN STREAM"); ps.setAsciiStream(targetCol, new java.io.ByteArrayInputStream("Lieberman ran with Gore".getBytes("US-ASCII")), 23); ps.executeUpdate(); // less bytes ... | 1,102,218 |
private static void setAscii(PreparedStatement ps, int targetCol) throws Exception { // correct byte count System.out.println("CORRECT NUMBER OF BYTES IN STREAM"); ps.setAsciiStream(targetCol, new java.io.ByteArrayInputStream("Lieberman ran with Gore".getBytes("US-ASCII")), 23); ps.executeUpdate(); // less bytes ... | private static void setAscii(PreparedStatement ps, int targetCol) throws Exception { // correct byte count System.out.println("CORRECT NUMBER OF BYTES IN STREAM"); ps.setAsciiStream(targetCol, new java.io.ByteArrayInputStream("Lieberman ran with Gore".getBytes("US-ASCII")), 23); ps.executeUpdate(); // less bytes ... | 1,102,219 |
private static void setCharacter(PreparedStatement ps, int targetCol) throws Exception { // correct character count ps.setCharacterStream(targetCol, new java.io.StringReader("A Mississippi Republican"), 24); ps.executeUpdate(); ps.setCharacterStream(targetCol, new java.io.StringReader("Lott has apologized"), 19); ... | private static void setCharacter(PreparedStatement ps, int targetCol) throws Exception { // correct character count ps.setCharacterStream(targetCol, new java.io.StringReader("A Mississippi Republican"), 24); ps.executeUpdate(); ps.setCharacterStream(targetCol, new java.io.StringReader("Lott has apologized"), 19); ... | 1,102,220 |
private static void setCharacter(PreparedStatement ps, int targetCol) throws Exception { // correct character count ps.setCharacterStream(targetCol, new java.io.StringReader("A Mississippi Republican"), 24); ps.executeUpdate(); ps.setCharacterStream(targetCol, new java.io.StringReader("Lott has apologized"), 19); ... | private static void setCharacter(PreparedStatement ps, int targetCol) throws Exception { // correct character count ps.setCharacterStream(targetCol, new java.io.StringReader("A Mississippi Republican"), 24); ps.executeUpdate(); ps.setCharacterStream(targetCol, new java.io.StringReader("Lott has apologized"), 19); ... | 1,102,221 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.