@Override public long relationshipCreate( KernelStatement state, int relationshipTypeId, long startNodeId, long endNodeId) throws EntityNotFoundException { assertNodeExists(state, startNodeId); assertNodeExists(state, endNodeId); long id = storeLayer.reserveRelationship(); state.txState().relationshipDoCreate(id, relationshipTypeId, startNodeId, endNodeId); return id; }
@Override public void nodeDelete(KernelStatement state, long nodeId) throws EntityNotFoundException { assertNodeExists(state, nodeId); legacyPropertyTrackers.nodeDelete(nodeId); state.txState().nodeDoDelete(nodeId); }