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

com.googlecode.objectify.impl.Wrapper 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.impl;

import java.lang.reflect.Type;

/** 
 * Basic interface so we can wrap fields and methods so they look more or less the same.
 * This makes @AlsoLoad methods look just like fields. 
 */
public interface Wrapper
{
	/** Actually set the thing (field or method) on an object */
	void set(Object pojo, Object value);

	/** Get the value of the thing thing (field) if possible, or null if not possible (method) */
	Object get(Object pojo);

	/** Get the type of the thing.  Might return null when unknown (ie content of Collection with no generic type) */
	Class getType();
	
	/** Get the "generictype", which can be a ParameterizedType */
	Type getGenericType();
	
	/** @return true if the value should be deserialized from blob */
	boolean isSerialized();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy