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

com.google.appengine.api.datastore.Cursor_CustomFieldSerializer 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.google.appengine.api.datastore;

import com.google.gwt.user.client.rpc.SerializationException;
import com.google.gwt.user.client.rpc.SerializationStreamReader;
import com.google.gwt.user.client.rpc.SerializationStreamWriter;

/**
 * Custom field serializer for the datastore Cursor class
 */
public class Cursor_CustomFieldSerializer
{
	public static void deserialize(SerializationStreamReader streamReader, Cursor instance)
			throws SerializationException
	{
		// already handled in instantiate
	}


	public static Cursor instantiate(SerializationStreamReader streamReader)
			throws SerializationException
	{
		return Cursor.fromWebSafeString(streamReader.readString());
	}

	public static void serialize(SerializationStreamWriter streamWriter, Cursor instance)
			throws SerializationException
	{
		streamWriter.writeString(instance.toWebSafeString());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy