public abstract class RestEntity extends Object implements org.neo4j.graphdb.PropertyContainer, UpdatableRestResult<RestEntity>, UpdateableState
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
propertyData |
protected RestAPI |
restApi |
Constructor and Description |
---|
RestEntity(long id,
Map<String,Object> restData,
RestAPI facade) |
RestEntity(Map<?,?> data,
RestAPI restApi) |
RestEntity(RestEntity entity,
RestAPI facade) |
RestEntity(String uri,
RestAPI restApi) |
RestEntity(URI uri,
RestAPI restApi) |
protected RestAPI restApi
public RestEntity(RestEntity entity, RestAPI facade)
public String getUri()
public void updateFrom(RestEntity updateEntity, RestAPI restApi)
updateFrom
in interface UpdatableRestResult<RestEntity>
protected abstract void doUpdate()
protected boolean hasToUpdateProperties()
public Object getProperty(String key)
getProperty
in interface org.neo4j.graphdb.PropertyContainer
public Object getProperty(String key, Object defaultValue)
getProperty
in interface org.neo4j.graphdb.PropertyContainer
public Iterable<String> getPropertyKeys()
getPropertyKeys
in interface org.neo4j.graphdb.PropertyContainer
public boolean hasProperty(String key)
hasProperty
in interface org.neo4j.graphdb.PropertyContainer
public Object removeProperty(String key)
removeProperty
in interface org.neo4j.graphdb.PropertyContainer
public void setProperty(String key, Object value)
setProperty
in interface org.neo4j.graphdb.PropertyContainer
public void flush()
flush
in interface UpdateableState
public void track()
track
in interface UpdateableState
public static long getEntityId(String uri)
public long getId()
public void delete()
public RestGraphDatabase getGraphDatabase()
getGraphDatabase
in interface org.neo4j.graphdb.PropertyContainer
public RestAPI getRestApi()
public void setLastTimeFetchedPropertyData(long lastTimeFetchedPropertyData)
public void refresh()
refresh
in interface UpdateableState
public void addPropertiesBatch(Map<String,Object> properties)
addPropertiesBatch
in interface UpdateableState
public void addAllLabelsBatch(Collection<String> labels)
addAllLabelsBatch
in interface UpdateableState
Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.