public static class LabelFieldAccessorFactory.LabelFieldAccessor extends Object implements FieldAccessor
Modifier and Type | Field and Description |
---|---|
protected Neo4jPersistentProperty |
property |
Constructor and Description |
---|
LabelFieldAccessor(Neo4jPersistentProperty property,
Neo4jTemplate template) |
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.
|
protected final Neo4jPersistentProperty property
public LabelFieldAccessor(Neo4jPersistentProperty property, Neo4jTemplate template)
public boolean isWriteable(Object entity)
isWriteable
in interface FieldAccessor
public Object setValue(Object entity, Object newVal, MappingPolicy mappingPolicy)
FieldAccessor
setValue
in interface FieldAccessor
public Object getValue(Object entity, MappingPolicy mappingPolicy)
getValue
in interface FieldAccessor
public Object getDefaultValue()
FieldAccessor
null
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 FieldAccessor
null
if none is provided.Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.