Examples of last()


Examples of javax.sql.rowset.WebRowSet.last()

        WebRowSet webRs = newWebRowSet();
        rs = st.executeQuery("SELECT * FROM USER_INFO");
        webRs.populate(rs);
        webRs.writeXml(strWriter);
        assertTrue(webRs.last());
        assertEquals(unicodeChar, webRs.getString(2));
        assertFalse(-1 == strWriter.toString().indexOf(unicodeChar));

        WebRowSet webRs2 = newWebRowSet();
        webRs2.readXml(new StringReader(strWriter.toString()));
View Full Code Here

Examples of javax.sql.rowset.spi.SyncResolver.last()

            fail("should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
        try {
            resolver.last();
            fail("should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
View Full Code Here

Examples of javax.swing.text.Segment.last()

   */
  public void test(TestHarness harness)     
  {
    char[] ch = new char[] {'A', 'B', 'C', 'D', 'E', 'F', 'G'};
    Segment s = new Segment(ch, 0, 7);
    harness.check(s.last(), 'G');
    harness.check(s.getIndex(), 6);
   
    // try results for a subset of the characters
    s = new Segment(ch, 3, 3);
    harness.check(s.last(), 'F');
View Full Code Here

Examples of net.fqsc.inscriptions.model.inscriptions.InfosSaison.last()

       * utilise celui utilisé lors de la dernière course.
       */
      if (infoSaisons.size() > 0)
      {

        final InfoSaison infoSaison = (InfoSaison) infoSaisons.last();
        return infoSaison.getNoLicence();
      }
      else
      // Creer nouveau No Licence
      {
View Full Code Here

Examples of net.sf.hibernate.ScrollableResults.last()

            }

            list = new ArrayList(numberPerPage);
            ScrollableResults results = getScrollableResults(query, info);

            results.last();
            int lastRowNumber = results.getRowNumber();
            info.setTotalNumberOfEntries(lastRowNumber + 1);

            if (numberPerPage == 0)
            {
View Full Code Here

Examples of org.apache.commons.collections.SortedBag.last()

        String three = "three";
        bag.add(one);
        bag.add(two);
        bag.add(three);
        assertEquals("first element", bag.first(), one);
        assertEquals("last element", bag.last(), two);
        Comparator c = bag.comparator();
        assertTrue("natural order, so comparator should be null", c == null);
    }

    protected boolean skipSerializedCanonicalTests() {
View Full Code Here

Examples of org.apache.commons.collections15.SortedBag.last()

        String three = "three";
        bag.add(one);
        bag.add(two);
        bag.add(three);
        assertEquals("first element", bag.first(), one);
        assertEquals("last element", bag.last(), two);
        Comparator c = bag.comparator();
        assertTrue("natural order, so comparator should be null", c == null);
    }

    protected boolean skipSerializedCanonicalTests() {
View Full Code Here

Examples of org.apache.commons.net.nntp.NNTPClient.last()

        /* Retrieve initial news */
        for (int i = 0; i < INITIAL_NEWS && !monitor.isCanceled(); i++) {
          createNews(client.retrieveArticle(), feed, monitor);

          /* Goto previous news if provided */
          int result = client.last();
          if (result != STATUS_ARTICLE_POINTER_OK)
            break;
        }
      }

View Full Code Here

Examples of org.apache.directory.server.xdbm.search.cursor.PresenceCursor.last()

        cursor.first();
        assertTrue( cursor.available() );
        assertEquals( SchemaConstants.CN_AT_OID, cursor.get().getKey() );

        // test last()
        cursor.last();
        assertTrue( cursor.available() );
        assertEquals( SchemaConstants.CN_AT_OID, cursor.get().getKey() );

        // test beforeFirst()
        cursor.beforeFirst();
View Full Code Here

Examples of org.apache.directory.server.xdbm.search.cursor.PresenceCursor.last()

        cursor.first();
        assertTrue( cursor.available() );
        assertEquals( SchemaConstants.SN_AT_OID, cursor.get().getKey() );

        // test last()
        cursor.last();
        assertTrue( cursor.available() );
        assertEquals( SchemaConstants.SN_AT_OID, cursor.get().getKey() );

        // test beforeFirst()
        cursor.beforeFirst();
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.