public class FieldProperty extends AbstractProperty
Constructor and Description |
---|
FieldProperty(ObjectifyFactory fact,
Class<?> examinedClass,
Field field) |
Modifier and Type | Method and Description |
---|---|
Object |
get(Object pojo)
Get the value of the property (field) if possible, or null if not possible (method)
|
Boolean |
getIndexInstruction(Object onPojo)
Gets the index instruction for this property, if there is one.
|
Type |
getType()
Get the real generic type of the field
|
boolean |
isSaved(Object onPojo) |
void |
set(Object pojo,
Object value)
Actually set the property (field or method) on an object
|
String |
toString() |
getAnnotation, getAnnotations, getLoadNames, getName
public FieldProperty(ObjectifyFactory fact, Class<?> examinedClass, Field field)
examinedClass
- is the actual top level concrete class we are examining; the field might
be declared on a superclass of this class so it's not the same as field.getDeclaringClass()public Type getType()
Property
public void set(Object pojo, Object value)
Property
public Object get(Object pojo)
Property
public boolean isSaved(Object onPojo)
public Boolean getIndexInstruction(Object onPojo)
Property
Copyright © 2014. All rights reserved.