public static class PropertyFieldAccessorFactory.PropertyFieldAccessor extends Object implements FieldAccessor
| Modifier and Type | Field and Description |
|---|---|
protected Class<?> |
fieldType |
protected Neo4jPersistentProperty |
property |
protected String |
propertyName |
protected Neo4jTemplate |
template |
| Constructor and Description |
|---|
PropertyFieldAccessor(Neo4jTemplate template,
Neo4jPersistentProperty property) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
convertSimplePropertyValue(Object value) |
protected Object |
doGetValue(Object entity) |
Object |
getDefaultValue()
Returns a default implementation for a field or
null if none is provided. |
Object |
getValue(Object entity,
MappingPolicy mappingPolicy) |
boolean |
isWriteable(Object entity) |
Object |
setValue(Object entity,
Object newVal,
MappingPolicy mappingPolicy)
handles field write modification.
|
protected final Neo4jTemplate template
protected final Neo4jPersistentProperty property
protected final String propertyName
protected final Class<?> fieldType
public PropertyFieldAccessor(Neo4jTemplate template, Neo4jPersistentProperty property)
public boolean isWriteable(Object entity)
isWriteable in interface FieldAccessorpublic Object setValue(Object entity, Object newVal, MappingPolicy mappingPolicy)
FieldAccessorsetValue in interface FieldAccessorpublic final Object getValue(Object entity, MappingPolicy mappingPolicy)
getValue in interface FieldAccessorpublic Object getDefaultValue()
FieldAccessornull if none is provided.
This default implementation is returned in detached mode by the DetachedEntityState
when the value of the field is get.
getDefaultValue in interface FieldAccessornull if none is provided.Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.