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.PropertyContainerpublic Object getProperty(String key, Object defaultValue)
getProperty in interface org.neo4j.graphdb.PropertyContainerpublic Iterable<String> getPropertyKeys()
getPropertyKeys in interface org.neo4j.graphdb.PropertyContainerpublic boolean hasProperty(String key)
hasProperty in interface org.neo4j.graphdb.PropertyContainerpublic Object removeProperty(String key)
removeProperty in interface org.neo4j.graphdb.PropertyContainerpublic void setProperty(String key, Object value)
setProperty in interface org.neo4j.graphdb.PropertyContainerpublic void flush()
flush in interface UpdateableStatepublic void track()
track in interface UpdateableStatepublic static long getEntityId(String uri)
public long getId()
public void delete()
public RestGraphDatabase getGraphDatabase()
getGraphDatabase in interface org.neo4j.graphdb.PropertyContainerpublic RestAPI getRestApi()
public void setLastTimeFetchedPropertyData(long lastTimeFetchedPropertyData)
public void refresh()
refresh in interface UpdateableStatepublic void addPropertiesBatch(Map<String,Object> properties)
addPropertiesBatch in interface UpdateableStatepublic void addAllLabelsBatch(Collection<String> labels)
addAllLabelsBatch in interface UpdateableStateCopyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.