Package javax.jcr

Examples of javax.jcr.RangeIterator.skip()


      iterator.skip(1);
      next = (NodeImpl)iterator.next();
      assertEquals(15, iterator.getPosition());
      assertEquals(14, next.getProperty(INDEX_PROPERTY).getLong());

      iterator.skip(100);
      next = (NodeImpl)iterator.next();
      assertEquals(116, iterator.getPosition());
      assertEquals(115, next.getProperty(INDEX_PROPERTY).getLong());

      iterator = testRoot.getNodesLazily();
View Full Code Here


      assertEquals(116, iterator.getPosition());
      assertEquals(115, next.getProperty(INDEX_PROPERTY).getLong());

      iterator = testRoot.getNodesLazily();
      long size = iterator.getSize();
      iterator.skip(size);

      try
      {
         iterator.next();
         fail("Exception should be thrown");
View Full Code Here

      {
      }

      // remove nodes from 31..60 to make gap in interval of order numbers
      iterator = testRoot.getNodesLazily();
      iterator.skip(30);
      for (int i = 0; i < 30; i++)
      {
         ((NodeImpl)iterator.next()).remove();
      }
      testRoot.save();
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.