com.googlecode.objectify.impl.load.RootSetter 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.impl.load;
import com.googlecode.objectify.impl.LoadContext;
/**
* An instance of this object makes the construction of setter chains a lot easier.
* It should be removed from the chain after construction is complete.
*/
public class RootSetter extends Setter
{
/**
* This shouldn't be called and will actually pop an assertion. However, if assertions
* are disabled it will operate just fine.
*/
@Override
public void set(Object obj, Object value, LoadContext context)
{
// Might as well let us know that someone screwed up
assert false: "SetterRoot should have been removed from the setter chain. This is a programmer error.";
// Let things work for anyone with assertions disabled - it will
this.next.set(obj, value, context);
}
}