Examples of reset()


Examples of com.hp.hpl.jena.query.ResultSetRewindable.reset()

            // Create a ResultSetRewindable that can be reset to the beginning.
            // Do before first use.
           
            ResultSetRewindable rewindable = ResultSetFactory.makeRewindable(qexec.execSelect()) ;
            ResultSetFormatter.out(rewindable) ;
            rewindable.reset() ;
            ResultSetFormatter.out(rewindable) ;
        }
        finally
        {
            // QueryExecution objects should be closed to free any system resources
View Full Code Here

Examples of com.hp.hpl.jena.sparql.resultset.ResultSetRewindable.reset()

                resultsActual = unique(resultsActual) ;
            }
            boolean b = resultSetEquivalent(query, resultsExpected, resultsActual) ;
            if ( ! b )
            {
                resultsExpected.reset() ;
                resultsActual.reset() ;
                boolean b2 = resultSetEquivalent(query, resultsExpected, resultsActual) ;
                printFailedResultSetTest(query, qe, resultsExpected, resultsActual) ;
            }
            assertTrue("Results do not match: "+testItem.getName(), b) ;
View Full Code Here

Examples of com.ibatis.sqlmap.engine.scope.ErrorContext.reset()

      errorContext.setMoreInfo("Check the output parameters.");
      if (parameterObject != null) {
        postProcessParameterObject(request, parameterObject, parameters);
      }

      errorContext.reset();
      sql.cleanup(request);
      notifyListeners();
      return rows;
    } catch (SQLException e) {
      errorContext.setCause(e);
View Full Code Here

Examples of com.ibm.icu.impl.ICUService.reset()

    // should not be able to locate invisible services
    Set ids = service.getVisibleIDs();
    confirmBoolean("18) find invisible", !ids.contains("en_US_BAR"));

    service.reset();
    // an anonymous factory than handles all ids
    {
        Factory factory = new Factory() {
            public Object create(Key key, ICUService unusedService) {
                return new ULocale(key.currentID());
View Full Code Here

Examples of com.ibm.icu.lang.UScriptRun.reset()

        } catch (IllegalArgumentException iae) {
            errln("new UScriptRun() produced an IllegalArgumentException!");
        }
       
        try {
            scriptRun.reset(0, 100);
            errln("scriptRun.reset(0, 100) did not produce an IllegalArgumentException!");
        } catch (IllegalArgumentException iae) {
            logln("PASS: scriptRun.reset failed as expected");
        }
       
View Full Code Here

Examples of com.ibm.icu.text.CanonicalIterator.reset()

                set.add(result); // sort them
                //logln(++counter + ": " + hex.transliterate(result));
                //logln(" = " + name.transliterate(result));
            }
            expectEqual(i + ": ", testArray[i][0], collectionToString(set), testArray[i][1]);
            it.reset();
            if(!it.next().equals(first)){
                errln("CanonicalIterator.reset() failed");
            }
            if(!it.getSource().equals(Normalizer.normalize(testArray[i][0],Normalizer.NFD))){
                errln("CanonicalIterator.getSource() does not return NFD of input source");
View Full Code Here

Examples of com.ibm.icu.util.GlobalizationPreferences.reset()

            }
        } catch (MissingResourceException mre) {
            errln("FAIL: Missing resouces");
        }

        gp.reset();

        logln("Get a resource bundle " + baseName +
        " using GlobalizationPreferences initialized by locales - ja, en_US_California");

        locales = new ULocale[2];
View Full Code Here

Examples of com.ibm.icu.util.RangeValueIterator.reset()

                    }
                }
            }
        }

        iterator.reset();
        if (iterator.next(result) == false || result.start != 0) {
            System.out.println("result " + result.start);
            errln("UCharacterIteration reset() failed");
        }
    }
View Full Code Here

Examples of com.ibm.icu.util.UResourceBundleIterator.reset()

        bundle = (ICUResourceBundle)bundle.get(INSTALLED_LOCALES);
        int length = bundle.getSize();
        int i = 0;
        ULocale[] locales = new ULocale[length];
        UResourceBundleIterator iter = bundle.getIterator();
        iter.reset();
        while (iter.hasNext()) {
            locales[i++] = new ULocale(iter.next().getKey());
        }
        bundle = null;
        return locales;
View Full Code Here

Examples of com.ibm.icu.util.ValueIterator.reset()

                    break;
                }
                old.integer = element.integer;
            }

            iterator.reset();
            iterator.next(element);
            if (element.integer != 0x20) {
                errln("FAIL reset in iterator");
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.