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

com.googlecode.objectify.condition.PojoIf 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.condition;

/**
 * 

Base class for If classes that test against a whole POJO object. This allows * partial indexes to test against field values which are not the field being indexed.

* *

The pojo will be an entity of the field is on an entity, or an embedded class * if the field is on an embedded class.

* *

All concrete instances of this interface must have either a no-arg constructor * or a constructor that takes {@code Class, Field} parameters.

* * @author Jeff Schnitzer */ abstract public class PojoIf implements If { /** * Override this method to test a whole pojo for your condition. The pojo might * be an entity or an embedded class object - whichever holds the field being tested. */ abstract public boolean matches(V pojo); /* (non-Javadoc) * @see com.googlecode.objectify.condition.If#matches(java.lang.Object, java.lang.Object) */ @Override final public boolean matches(Object value, V onPojo) { return this.matches(onPojo); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy