Package org.neo4j.cypherdsl.core
Interface PropertyContainer
-
- All Superinterfaces:
IdentifiableElement,Named
- All Known Subinterfaces:
Node,Relationship
- All Known Implementing Classes:
NodeBase,RelationshipBase
@API(status=STABLE, since="1.1") public interface PropertyContainer extends NamedA container having properties. A property container must beNamedwith a non empty name to be able to refer to properties.- Since:
- 1.1
- Author:
- Andreas Berger, Michael J. Simons
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Operationmutate(MapExpression properties)Creates anOperationmutating the properties of this container to a new value.@NotNull Operationmutate(Parameter<?> parameter)Creates anOperationmutating the properties of this container to a new value.@NotNull MapProjectionproject(Object... entries)Creates a map projection based on this container.@NotNull MapProjectionproject(List<Object> entries)Unwraps the list of entries into an array before creating a projection out of it.@NotNull Propertyproperty(@NotNull String name)Creates a newPropertyassociated with this property container.@NotNull Propertyproperty(String... names)@NotNull Propertyproperty(Expression lookup)Creates a newPropertyassociated with this property container.@NotNull Operationset(MapExpression properties)Creates anSET operationsetting the properties of this container to a new value.@NotNull Operationset(Parameter<?> parameter)Creates anSET operationsetting the properties of this container to a new value.-
Methods inherited from interface org.neo4j.cypherdsl.core.Named
asExpression, getRequiredSymbolicName, getSymbolicName
-
-
-
-
Method Detail
-
property
@NotNull @Contract(pure=true) @NotNull Property property(@NotNull @NotNull String name)
Creates a newPropertyassociated with this property container. This property can be used as a lookup in other expressions. It does not add a value to the property.Note: The property container does not track property creation and there is no possibility to enumerate all properties that have been created for this property container.
- Parameters:
name- property name, must not be null or empty.- Returns:
- a new
Propertyassociated with this named container
-
property
@NotNull @Contract(pure=true) @NotNull Property property(String... names)
- Parameters:
names- a list of nested property names- Returns:
- a new
Propertyassociated with this named container - See Also:
property(String)
-
property
@NotNull @Contract(pure=true) @NotNull Property property(Expression lookup)
Creates a newPropertyassociated with this property container. This property can be used as a lookup in other expressions. It does not add a value to the property.The new
Propertyobject is a dynamic lookup, based on theexpressionpassed to this method. The expression can be example another property, a function result or a Cypher parameter. A property defined in such a way will render asp[expression].Note: The property container does not track property creation and there is no possibility to enumerate all properties that have been created for this property container.
- Parameters:
lookup- the expression that is evaluated to lookup this property.- Returns:
- a new
Propertyassociated with this named container - Since:
- 2021.0.0
-
mutate
@NotNull @Contract(pure=true) @NotNull Operation mutate(Parameter<?> parameter)
Creates anOperationmutating the properties of this container to a new value. The container does not track the operations created with this method.- Parameters:
parameter- the new properties- Returns:
- A new operation.
- Since:
- 2020.1.5
-
mutate
@NotNull @Contract(pure=true) @NotNull Operation mutate(MapExpression properties)
Creates anOperationmutating the properties of this container to a new value. The container does not track the operations created with this method.- Parameters:
properties- the new properties- Returns:
- A new operation.
- Since:
- 2020.1.5
-
set
@NotNull @Contract(pure=true) @NotNull Operation set(Parameter<?> parameter)
Creates anSET operationsetting the properties of this container to a new value. The container does not track the operations created with this method.- Parameters:
parameter- the new properties- Returns:
- A new operation.
- Since:
- 2022.5.0
-
set
@NotNull @Contract(pure=true) @NotNull Operation set(MapExpression properties)
Creates anSET operationsetting the properties of this container to a new value. The container does not track the operations created with this method.- Parameters:
properties- the new properties- Returns:
- A new operation.
- Since:
- 2022.5.0
-
project
@NotNull @Contract(pure=true) @NotNull MapProjection project(List<Object> entries)
Unwraps the list of entries into an array before creating a projection out of it.- Parameters:
entries- A list of entries for the projection- Returns:
- A map projection.
- See Also:
SymbolicName.project(List)
-
project
@NotNull @Contract(pure=true) @NotNull MapProjection project(Object... entries)
Creates a map projection based on this container. The container needs a symbolic name for this to work.- Parameters:
entries- A list of entries for the projection- Returns:
- A map projection.
- See Also:
SymbolicName.project(Object...)
-
-