public class NodeStore extends Object implements Store<Ersatz,Neo4JErsatz>
Modifier and Type | Class and Description |
---|---|
static class |
NodeStore.NodeNumber
Only used to distinguish primary key values being result of a
newPrimaryKey() call from
those where primary key value is set manually. |
Constructor and Description |
---|
NodeStore(org.neo4j.graphdb.GraphDatabaseService db,
EOEntity entity,
NodeSpaceManager spaceManager,
TemporaryNodePool tempNodePool) |
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.
|
void |
update(Ersatz newValues,
Neo4JErsatz neoErsatz)
Update record with the given values.
|
protected static void |
validateEntity(EOEntity entity) |
public NodeStore(org.neo4j.graphdb.GraphDatabaseService db, EOEntity entity, NodeSpaceManager spaceManager, TemporaryNodePool tempNodePool)
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 Ersatz newPrimaryKey()
Store
newPrimaryKey
in interface Store<Ersatz,Neo4JErsatz>
public Cursor<Neo4JErsatz> query(EOQualifier q)
Store
query
in interface Store<Ersatz,Neo4JErsatz>
q
- qualifierprotected static void validateEntity(EOEntity entity) throws UnsupportedEntityException
UnsupportedEntityException
Copyright © 2002 – 2024 Project Wonder.