Package com.googlecode.objectify.impl
Class FieldProperty
java.lang.Object
com.googlecode.objectify.impl.AbstractProperty
com.googlecode.objectify.impl.FieldProperty
- All Implemented Interfaces:
Property
Property which encapsulates a simple field.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the value of the property (field) if possible, or null if not possible (method)getIndexInstruction
(Object onPojo) Gets the index instruction for this property, if there is one.getType()
Get the real generic type of the fieldboolean
void
Actually set the property (field or method) on an objecttoString()
Methods inherited from class com.googlecode.objectify.impl.AbstractProperty
getAnnotation, getAnnotations, getLoadNames, getName
-
Constructor Details
-
FieldProperty
- Parameters:
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()
-
-
Method Details
-
getType
Description copied from interface:Property
Get the real generic type of the field -
set
Description copied from interface:Property
Actually set the property (field or method) on an object -
get
Description copied from interface:Property
Get the value of the property (field) if possible, or null if not possible (method) -
toString
-
isSaved
- Returns:
- true if this field should be saved, false if not
-
getIndexInstruction
Description copied from interface:Property
Gets the index instruction for this property, if there is one. Properties do not necessarily have a specific index or unindex instruction, and even if they do, the instruction might be conditional. Also factors in any index instruction on the class as a default. However, explicit index instruction on the field overrides the class.- Returns:
- true if this field should be indexed, false if it should be unindexed, null is "no information, continue with defaults".
-