public class RelationshipStore extends Object implements Store<Ersatz,Neo4JErsatz>
Constructor and Description |
---|
RelationshipStore(org.neo4j.graphdb.GraphDatabaseService db,
EOEntity entity) |
Modifier and Type | Method and Description |
---|---|
void |
delete(Neo4JErsatz neoErsatz)
Delete record from the store.
|
Neo4JErsatz |
insert(Ersatz row)
Creates a new record in the store.
|
Ersatz |
newPrimaryKey()
Generate new primary key.
|
Cursor<Neo4JErsatz> |
query(EOQualifier q)
Query for records matching EO qualifier.
|
static boolean |
shouldBeStoredAsRelationship(EOEntity entity) |
void |
update(Ersatz newValues,
Neo4JErsatz neoErsatz)
Update record with the given values.
|
public RelationshipStore(org.neo4j.graphdb.GraphDatabaseService db, EOEntity entity)
public static boolean shouldBeStoredAsRelationship(EOEntity entity)
public Ersatz newPrimaryKey()
Store
newPrimaryKey
in interface Store<Ersatz,Neo4JErsatz>
public Neo4JErsatz insert(Ersatz row)
Store
insert
in interface Store<Ersatz,Neo4JErsatz>
row
- inserted object descriptiontoInsert
public void update(Ersatz newValues, Neo4JErsatz neoErsatz)
Store
update
in interface Store<Ersatz,Neo4JErsatz>
newValues
- new values, can be partial ersatzneoErsatz
- ersatz representing record to be updatedpublic void delete(Neo4JErsatz neoErsatz)
Store
delete
in interface Store<Ersatz,Neo4JErsatz>
neoErsatz
- ersatz representing record to be deletedpublic Cursor<Neo4JErsatz> query(EOQualifier q)
Store
query
in interface Store<Ersatz,Neo4JErsatz>
q
- qualifierCopyright © 2002 – 2024 Project Wonder.