com.googlecode.objectify.util.QueryResultIteratorWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectify Show documentation
Show all versions of objectify Show documentation
*** THIS VERSION UPLOADED FOR USE WITH CEDAR-COMMON, TO AVOID DEPENDENCIES ON GOOGLE CODE-BASED MAVEN REPOSITORIES. *** The simplest convenient interface to the Google App Engine datastore
The newest version!
package com.googlecode.objectify.util;
import com.google.appengine.api.datastore.Cursor;
import com.google.appengine.api.datastore.QueryResultIterator;
/**
* Simple wrapper/decorator for a QueryResultIterator.
*
* @author Jeff Schnitzer
*/
public class QueryResultIteratorWrapper implements QueryResultIterator
{
/** */
QueryResultIterator base;
/** */
public QueryResultIteratorWrapper(QueryResultIterator base)
{
this.base = base;
}
@Override
public Cursor getCursor()
{
return this.base.getCursor();
}
@Override
public boolean hasNext()
{
return this.base.hasNext();
}
@Override
public T next()
{
return this.base.next();
}
@Override
public void remove()
{
this.base.remove();
}
}