Examples of previous()


Examples of bm.db.RowSet.previous()

                            );

                        case PREVIOUS:
                            return Conversor.toInstance(
                                    getVirtualMachine(),
                                    rowSet.previous() ?
                                        CoreConstants.TRUE :
                                        CoreConstants.FALSE
                            );

                        case SIZE:
View Full Code Here

Examples of br.com.objectos.way.relational.Page.previous()

    assertThat(page.getFirstIndex(), equalTo(0));

    page.next(); // 1
    page.next(); // 2
    page.next(); // 3
    page.previous(); // 2

    assertThat(page.getFirstIndex(), equalTo(2 * length));
    assertThat(page.getNumber(), equalTo(2));
  }

View Full Code Here

Examples of com.alibaba.druid.pool.DruidPooledResultSet.previous()

        Assert.assertEquals(true, rs.next());
        Assert.assertEquals(false, rs.next());
       
        Assert.assertEquals(1, rs.getFetchRowCount());
       
        Assert.assertEquals(true, rs.previous());
        Assert.assertEquals(false, rs.previous());
       
        Assert.assertEquals(1, rs.getFetchRowCount());
       
        Assert.assertEquals(true, rs.next());
View Full Code Here

Examples of com.alibaba.druid.util.jdbc.LocalResultSet.previous()

        rs.getRows().add(new Object[1]);
        rs.getRows().add(new Object[1]);
        Assert.assertTrue(rs.next());
        Assert.assertTrue(rs.next());
        Assert.assertFalse(rs.next());
        Assert.assertTrue(rs.previous());
        Assert.assertFalse(rs.previous());
        rs.getInt(1);
        Assert.assertTrue(rs.wasNull());
        rs.updateObject(1, 2);
        Assert.assertEquals(2, rs.getInt(1));
View Full Code Here

Examples of com.cedarsolutions.dao.domain.Pagination.previous()

        assertNotSame(pagination, results.getPagination());
        assertPagination(results.getPagination(), 2, true, true, true, true, 4, 19);

        // previous() brings us to page 1
        pagination = results.getPagination();
        results = dao.retrieveTestEntities(pagination.previous());
        assertFound(results, "entity1", "entity2", "entity3", "entity4", "entity5");
        assertNotSame(pagination, results.getPagination());
        assertPagination(results.getPagination(), 1, true, false, true, true, 4, 19);

        // previous() again doesn't exist, so we get page 1 again
View Full Code Here

Examples of com.dotcms.repackage.net.sf.hibernate.ScrollableResults.previous()

              break;
            }

            array[1] = curPortletPreferences;

            if (sr.previous()) {
              array[0] = PortletPreferencesHBMUtil.model((PortletPreferencesHBM)sr.get(
                    0));
            }

            sr.next();
View Full Code Here

Examples of com.ibm.icu.text.BreakIterator.previous()

                            "; found " + foundOffsetsCount + " offsets fwd:" + formatOffsets(foundOffsets, foundOffsetsCount) );
                } else {
                    // do backwards iteration test
                    --foundOffsetsCount; // back off one from the end offset
                    while ( foundOffsetsCount > 0 ) {
                        offset = brkIter.previous();
                        if ( offset != foundOffsets[--foundOffsetsCount] ) {
                            // log error for backwards test
                            String textToDisplay = (text.length() <= 16)? text: text.substring(0,16);
                            errln("For type " + type + " " + locale + ", text \"" + textToDisplay + "...\"" +
                                    "; expect " + expectOffsets.length + " offsets:" + formatOffsets(expectOffsets, expectOffsets.length) +
View Full Code Here

Examples of com.ibm.icu.text.Normalizer.previous()

            errln("FAIL: " "Only got " + index + " chars, expected "
            + expected.length());
        }
       
        cIter.setToLimit();
        while((ch=iter.previous())!=Normalizer.DONE){
            int want = cIter.previousCodePoint();
            if (ch != want ) {
                errln("FAIL: " + "got '" + (char)ch
                        + "' (" + hex(ch) + ")"
                        + " but expected '" + want + "' (" + hex(want) + ")"
View Full Code Here

Examples of com.ibm.icu.text.RuleBasedBreakIterator.previous()

        wordIter1.setText(testString);
        p = wordIter1.last();
        if (p != testString.length()) {
            errln("ERROR: first() returned" + p + "instead of" + testString.length());
        }
        q = wordIter1.previous();
        doTest(testString, p, q, 37, "dollars");
        p = q;
        q = wordIter1.previous();
        doTest(testString, p, q, 36, " ");
        q = wordIter1.preceding(25);
View Full Code Here

Examples of com.positive.charts.data.time.Month.previous()

      Month month = new Month(calendar.getTime());
      Date standardDate = this.calculateDateForPosition(month,
          this.tickMarkPosition);
      final long millis = standardDate.getTime();
      if (millis > date.getTime()) {
        month = (Month) month.previous();
        standardDate = this.calculateDateForPosition(month,
            this.tickMarkPosition);
      }
      return standardDate;
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.