Package com.google.appengine.api.datastore

Examples of com.google.appengine.api.datastore.Cursor.reverse()


        Entity e1 = iter.next();
        Entity e2 = iter.next();
        Cursor cursor = iter.getCursor();
        //reverse
        query = query.reverse();
        cursor = cursor.reverse();
        iter = service.prepare(query).asQueryResultIterator(FetchOptions.Builder.withStartCursor(cursor));
        Assert.assertEquals(e2, iter.next());
        Assert.assertEquals(e1, iter.next());
    }
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.