public abstract class EntityWrapper<T extends org.neo4j.graphdb.PropertyContainer> extends Object implements org.structr.api.graph.PropertyContainer
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
cache |
protected boolean |
deleted |
protected T |
entity |
protected Neo4jDatabaseService |
graphDb |
protected Map<String,Boolean> |
hasCache |
Constructor and Description |
---|
EntityWrapper(Neo4jDatabaseService graphDb,
T entity) |
Modifier and Type | Method and Description |
---|---|
void |
clearCaches() |
Object |
getProperty(String name) |
Object |
getProperty(String name,
Object defaultValue) |
Iterable<String> |
getPropertyKeys() |
boolean |
hasProperty(String name) |
void |
removeProperty(String name) |
void |
setProperty(String name,
Object value) |
org.neo4j.graphdb.Direction |
unwrap(org.structr.api.graph.Direction direction) |
org.neo4j.graphdb.Label |
unwrap(org.structr.api.graph.Label label) |
org.neo4j.graphdb.Node |
unwrap(org.structr.api.graph.Node node) |
org.neo4j.graphdb.Relationship |
unwrap(org.structr.api.graph.Relationship relationship) |
org.neo4j.graphdb.RelationshipType |
unwrap(org.structr.api.graph.RelationshipType relationshipType) |
protected Neo4jDatabaseService graphDb
protected boolean deleted
protected T extends org.neo4j.graphdb.PropertyContainer entity
public EntityWrapper(Neo4jDatabaseService graphDb, T entity)
public boolean hasProperty(String name)
hasProperty
in interface org.structr.api.graph.PropertyContainer
public Object getProperty(String name)
getProperty
in interface org.structr.api.graph.PropertyContainer
public Object getProperty(String name, Object defaultValue)
getProperty
in interface org.structr.api.graph.PropertyContainer
public void setProperty(String name, Object value)
setProperty
in interface org.structr.api.graph.PropertyContainer
public void removeProperty(String name)
removeProperty
in interface org.structr.api.graph.PropertyContainer
public Iterable<String> getPropertyKeys()
getPropertyKeys
in interface org.structr.api.graph.PropertyContainer
public org.neo4j.graphdb.Node unwrap(org.structr.api.graph.Node node)
public org.neo4j.graphdb.Relationship unwrap(org.structr.api.graph.Relationship relationship)
public org.neo4j.graphdb.RelationshipType unwrap(org.structr.api.graph.RelationshipType relationshipType)
public org.neo4j.graphdb.Label unwrap(org.structr.api.graph.Label label)
public org.neo4j.graphdb.Direction unwrap(org.structr.api.graph.Direction direction)
public void clearCaches()
Copyright © 2016. All rights reserved.