All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.objectify.util.QueryResultIteratorWrapper Maven / Gradle / Ivy

Go to download

*** 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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy