public class DetachedEntityState<STATE> extends Object implements EntityState<STATE>
| Modifier and Type | Field and Description |
|---|---|
protected EntityState<STATE> |
delegate |
| Constructor and Description |
|---|
DetachedEntityState(EntityState<STATE> delegate,
Neo4jTemplate template) |
| Modifier and Type | Method and Description |
|---|---|
void |
createAndAssignState()
callback for creating and initializing an initial state
TODO will be internal implementation detail of persist
|
Object |
getDefaultValue(Neo4jPersistentProperty property) |
Object |
getEntity() |
Neo4jPersistentEntity<?> |
getPersistentEntity() |
STATE |
getPersistentState() |
Neo4jTemplate |
getTemplate() |
Object |
getValue(Field field,
MappingPolicy mappingPolicy) |
Object |
getValue(Neo4jPersistentProperty property,
MappingPolicy mappingPolicy) |
boolean |
hasPersistentState() |
protected boolean |
isDetached() |
boolean |
isWritable(Neo4jPersistentProperty property) |
Object |
persist() |
void |
setPersistentState(STATE state) |
Object |
setValue(Field field,
Object newVal,
MappingPolicy mappingPolicy) |
Object |
setValue(Neo4jPersistentProperty property,
Object newVal,
MappingPolicy mappingPolicy) |
protected boolean |
transactionIsRunning() |
protected final EntityState<STATE> delegate
public DetachedEntityState(EntityState<STATE> delegate, Neo4jTemplate template)
public boolean isWritable(Neo4jPersistentProperty property)
isWritable in interface EntityState<STATE>public Object getEntity()
getEntity in interface EntityState<STATE>public boolean hasPersistentState()
hasPersistentState in interface EntityState<STATE>public STATE getPersistentState()
getPersistentState in interface EntityState<STATE>public Neo4jPersistentEntity<?> getPersistentEntity()
getPersistentEntity in interface EntityState<STATE>public Object getValue(Neo4jPersistentProperty property, MappingPolicy mappingPolicy)
getValue in interface EntityState<STATE>public Object getValue(Field field, MappingPolicy mappingPolicy)
getValue in interface EntityState<STATE>protected boolean isDetached()
protected boolean transactionIsRunning()
public Object setValue(Field field, Object newVal, MappingPolicy mappingPolicy)
setValue in interface EntityState<STATE>public Object setValue(Neo4jPersistentProperty property, Object newVal, MappingPolicy mappingPolicy)
setValue in interface EntityState<STATE>public Object getDefaultValue(Neo4jPersistentProperty property)
getDefaultValue in interface EntityState<STATE>FieldAccessor or null if none is provided.public void createAndAssignState()
EntityStatecreateAndAssignState in interface EntityState<STATE>public void setPersistentState(STATE state)
setPersistentState in interface EntityState<STATE>public Neo4jTemplate getTemplate()
public Object persist()
persist in interface EntityState<STATE>Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.