public static class DynamicPropertiesFieldAccessorFactory.DynamicPropertiesFieldAccessor extends Object implements FieldAccessor
| Constructor and Description |
|---|
DynamicPropertiesFieldAccessor(Neo4jTemplate template,
String propertyName,
Neo4jPersistentProperty field) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public DynamicPropertiesFieldAccessor(Neo4jTemplate template, String propertyName, Neo4jPersistentProperty field)
public Object setValue(Object entity, Object newVal, MappingPolicy mappingPolicy)
FieldAccessorsetValue in interface FieldAccessorpublic Object getValue(Object entity, MappingPolicy mappingPolicy)
getValue in interface FieldAccessorpublic boolean isWriteable(Object entity)
isWriteable 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-2014–2014 Pivotal Software, Inc.. All rights reserved.