public class NullProperty extends AbstractProperty
Modifier and Type | Field and Description |
---|---|
static NullProperty |
INSTANCE
Always just use this instance
|
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)
Since we are never saved this is never called
|
String |
getName()
Get the primary name associated with this property
|
Type |
getType()
Get the real generic type of the field
|
boolean |
hasIgnoreSaveConditions()
Never saved, so never has conditions
|
boolean |
isSaved(Object onPojo)
Never saved
|
void |
set(Object pojo,
Object value)
Actually set the property (field or method) on an object
|
String |
toString() |
getAnnotation, getLoadNames, shouldLoad
public static final NullProperty INSTANCE
public String getName()
Property
getName
in interface Property
getName
in class AbstractProperty
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)
public boolean hasIgnoreSaveConditions()
Copyright © 2013. All Rights Reserved.