Package org.apache.ojb.broker.accesslayer

Examples of org.apache.ojb.broker.accesslayer.OJBIterator.relative()


       
        ojbIter.absolute(2);
        article = (InterfaceArticle)ojbIter.next();
        assertEquals("Article id=12", article.getArticleId(), 12);
       
        ojbIter.relative(-1);
        article = (InterfaceArticle)ojbIter.next();
        assertEquals("Article id=12", article.getArticleId(), 12);

        ojbIter.relative(-1);
        article = (InterfaceArticle)ojbIter.next();
View Full Code Here


       
        ojbIter.relative(-1);
        article = (InterfaceArticle)ojbIter.next();
        assertEquals("Article id=12", article.getArticleId(), 12);

        ojbIter.relative(-1);
        article = (InterfaceArticle)ojbIter.next();
        assertEquals("Article id=12", article.getArticleId(), 12);
       
        // last
        ojbIter.absolute(12);
View Full Code Here

       
        ojbIter.absolute(2);
        article = (InterfaceArticle)ojbIter.next();
        assertEquals("Article stock=12", article.getStock(), 12);
       
        ojbIter.relative(-1);
        article = (InterfaceArticle)ojbIter.next();
        assertEquals("Article id=12", article.getStock(), 12);

        ojbIter.relative(-1);
        article = (InterfaceArticle)ojbIter.next();
View Full Code Here

       
        ojbIter.relative(-1);
        article = (InterfaceArticle)ojbIter.next();
        assertEquals("Article id=12", article.getStock(), 12);

        ojbIter.relative(-1);
        article = (InterfaceArticle)ojbIter.next();
        assertEquals("Article id=12", article.getStock(), 12);
       
        // last
        ojbIter.absolute(12);
View Full Code Here

       
        ojbIter.absolute(2);
        article = (InterfaceArticle)ojbIter.next();
        assertEquals("Article stock=12", article.getStock(), 12);
       
        ojbIter.relative(-1);
        article = (InterfaceArticle)ojbIter.next();
        assertEquals("Article id=12", article.getStock(), 12);

        ojbIter.relative(-1);
        article = (InterfaceArticle)ojbIter.next();
View Full Code Here

       
        ojbIter.relative(-1);
        article = (InterfaceArticle)ojbIter.next();
        assertEquals("Article id=12", article.getStock(), 12);

        ojbIter.relative(-1);
        article = (InterfaceArticle)ojbIter.next();
        assertEquals("Article id=12", article.getStock(), 12);
       
        // last
        ojbIter.absolute(12);
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.