public class Neo4JNodeErsatz extends Neo4JErsatz
entity
Constructor and Description |
---|
Neo4JNodeErsatz(com.webobjects.eoaccess.EOEntity entity,
org.neo4j.graphdb.Node pc) |
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes corresponding node and all of its to-one relationships.
|
Object |
get(EOAttribute att)
Gets neutral value for an EO attribute.
|
protected Number |
getForeignKeyValue(com.webobjects.eoaccess.EORelationship rel)
Gets ID of an object referenced by the given foreign key
|
protected org.neo4j.graphdb.Node |
getNode() |
void |
put(EOAttribute att,
Object value)
Sets neutral java value for an EO attribute.
|
protected void |
setForeignKeyValue(com.webobjects.eoaccess.EORelationship rel,
Number referencedId)
Sets relationship value.
|
attributes, create, getAttribute, getPropertyContainer, remove, setAttribute
public Neo4JNodeErsatz(com.webobjects.eoaccess.EOEntity entity, org.neo4j.graphdb.Node pc)
protected org.neo4j.graphdb.Node getNode()
public Object get(EOAttribute att)
Ersatz
Ersatz.attributes()
.get
in class Neo4JErsatz
att
- EO attribute to retrieve value forpublic void put(EOAttribute att, Object value)
Ersatz
put
in class Neo4JErsatz
att
- EO attribute to set the value forvalue
- library independent valueprotected Number getForeignKeyValue(com.webobjects.eoaccess.EORelationship rel)
Neo4JErsatz
getForeignKeyValue
in class Neo4JErsatz
rel
- foreign key attributeprotected void setForeignKeyValue(com.webobjects.eoaccess.EORelationship rel, Number referencedId)
Neo4JErsatz
setForeignKeyValue
in class Neo4JErsatz
rel
- relationship to set value forreferencedId
- ID of an object referenced by the relationshipCopyright © 2002 – 2020 Project Wonder.