Interface DetachedRelationshipDescription
-
- All Superinterfaces:
MutuallyExclusive<RelationshipDescription>
,PartiallyComparable<RelationshipDescription>
,RelationshipDescription
- All Known Implementing Classes:
DetachedRelationshipDescriptionImpl
public interface DetachedRelationshipDescription extends RelationshipDescription
ARelationshipDescription
that must be detached from the database, i.e. store its own data internally rather than referring to an underlyingRelationship
. It is immutable; once instantiated, new instances with differentPropertiesDescription
s can be constructed using thewith(String, Predicate)
method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DetachedRelationshipDescription
with(String propertyKey, Predicate predicate)
Construct a new description from this description by adding/replacing a properties predicate with a new one.-
Methods inherited from interface com.graphaware.common.description.MutuallyExclusive
isMutuallyExclusive
-
Methods inherited from interface com.graphaware.common.description.PartiallyComparable
isMoreGeneralThan, isMoreSpecificThan
-
Methods inherited from interface com.graphaware.common.description.relationship.RelationshipDescription
getDirection, getPropertiesDescription, getType
-
-
-
-
Method Detail
-
with
DetachedRelationshipDescription with(String propertyKey, Predicate predicate)
Construct a new description from this description by adding/replacing a properties predicate with a new one.- Parameters:
propertyKey
- key of the property the predicate is for.predicate
- the predicate.- Returns:
- a new instance of relationship description.
-
-