@API(status=INTERNAL,
since="6.0")
public final class NestedRelationshipProcessingStateMachine
extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NestedRelationshipProcessingStateMachine.ProcessState
Valid processing states.
|
| Constructor and Description |
|---|
NestedRelationshipProcessingStateMachine(Neo4jMappingContext mappingContext) |
NestedRelationshipProcessingStateMachine(Neo4jMappingContext mappingContext,
Object initialObject,
Long internalId) |
| Modifier and Type | Method and Description |
|---|---|
Long |
getInternalId(Object object) |
Object |
getProcessedAs(Object entity) |
NestedRelationshipProcessingStateMachine.ProcessState |
getStateOf(Object fromId,
RelationshipDescription relationshipDescription,
Collection<?> valuesToStore) |
boolean |
hasProcessedRelationship(Object fromId,
RelationshipDescription relationshipDescription)
Checks if the relationship has already been processed.
|
boolean |
hasProcessedValue(Object value)
Checks if the value has already been processed.
|
void |
markRelationshipAsProcessed(Object fromId,
RelationshipDescription relationshipDescription)
Marks the passed objects as processed
|
void |
markValueAsProcessed(Object valueToStore,
Long internalId)
Marks the passed objects as processed
|
void |
markValueAsProcessedAs(Object valueToStore,
Object bean) |
public NestedRelationshipProcessingStateMachine(Neo4jMappingContext mappingContext)
public NestedRelationshipProcessingStateMachine(Neo4jMappingContext mappingContext, Object initialObject, Long internalId)
public NestedRelationshipProcessingStateMachine.ProcessState getStateOf(Object fromId, RelationshipDescription relationshipDescription, @Nullable Collection<?> valuesToStore)
relationshipDescription - Check whether this relationship description has been processedvaluesToStore - Check whether all the values in the collection have been processedpublic void markRelationshipAsProcessed(Object fromId, @Nullable RelationshipDescription relationshipDescription)
relationshipDescription - To be marked as processedpublic void markValueAsProcessed(Object valueToStore, @Nullable Long internalId)
valueToStore - If not null, all non-null values will be marked as processedinternalId - The internal id of the value processedpublic boolean hasProcessedValue(Object value)
value - the object that should be looked for in the registry.public boolean hasProcessedRelationship(Object fromId, @Nullable RelationshipDescription relationshipDescription)
relationshipDescription - the relationship that should be looked for in the registry.Copyright © 2019–2021 Neo4j, Neo4j Sweden AB. All rights reserved.