T - the type of entity created by this UniqueFactory.public abstract class UniqueFactory<T extends PropertyContainer> extends Object
putIfAbsent() method of the referenced index.| Modifier and Type | Class and Description |
|---|---|
static class |
UniqueFactory.UniqueEntity<T extends PropertyContainer> |
static class |
UniqueFactory.UniqueNodeFactory
Implementation of
UniqueFactory for Node. |
static class |
UniqueFactory.UniqueRelationshipFactory
Implementation of
UniqueFactory for Relationship. |
| Modifier and Type | Method and Description |
|---|---|
T |
getOrCreate(String key,
Object value)
Get the indexed entity, creating it (exactly once) if no indexed entity exists.
|
UniqueFactory.UniqueEntity<T> |
getOrCreateWithOutcome(String key,
Object value)
Get the indexed entity, creating it (exactly once) if no indexed entity exists.
|
public final T getOrCreate(String key, Object value)
key - the key to find the entity under in the index.value - the value the key is mapped to for the entity in the index.public final UniqueFactory.UniqueEntity<T> getOrCreateWithOutcome(String key, Object value)
key - the key to find the entity under in the index.value - the value the key is mapped to for the entity in the index.UniqueFactory.UniqueEntity.Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.