- All Superinterfaces:
Expression,IdentifiableElement,PropertyAccessor,Visitable
@API(status=STABLE,
since="1.0")
public non-sealed interface Property
extends Expression, IdentifiableElement
A property. A property might belong to a container such as a
Node or
Relationship, but it's not uncommon to extract single properties from maps or
from various datatypes such as a duration returned from stored procedures. The
container can be retrieved via getContainer() in case the property belongs to
a node or relationship.
A property has always a reference to the name of the object it was extracted from.
- Since:
- 1.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionReturns the container "owning" this property.default ExpressionReturns a reference to the container owning this property.getName()Returns the concatenated names of the property or the external reference (SeereferencedAs(String)) if set.getNames()Returns the actual property being looked up.referencedAs(String newReference) Creates a new property with an external reference.to(Expression expression) Creates anOperationsetting this property to a new value.Methods inherited from interface org.neo4j.cypherdsl.core.Expression
add, as, as, ascending, asCondition, concat, contains, descending, divide, endsWith, eq, gt, gte, hasSize, in, includesAll, includesAny, isEmpty, isEqualTo, isFalse, isNotEqualTo, isNotNull, isNull, isTrue, lt, lte, matches, matches, multiply, ne, pow, property, property, remainder, size, sorted, startsWith, subtractMethods inherited from interface org.neo4j.cypherdsl.core.IdentifiableElement
asExpressionMethods inherited from interface org.neo4j.cypherdsl.core.PropertyAccessor
property
-
Method Details
-
getName
Returns the concatenated names of the property or the external reference (SeereferencedAs(String)) if set.- Returns:
- a name to reference the property under in an external application
-
getNames
List<PropertyLookup> getNames()Returns the actual property being looked up. The order matters, so this will return a list, not a random collection.- Returns:
- the actual property being looked up
-
getContainer
Named getContainer()Returns the container "owning" this property.- Returns:
- the container "owning" this property
-
getContainerReference
Returns a reference to the container owning this property.- Returns:
- a reference to the container owning this property
-
referencedAs
Creates a new property with an external reference.- Parameters:
newReference- an arbitrary, external reference- Returns:
- a new property
-
to
Creates anOperationsetting this property to a new value. The property does not track the operations created with this method.- Parameters:
expression- expression describing the new value- Returns:
- a new operation.
-