Exemplo n.º 1
0
 public override Relationship MapRelationship(VirtualRelationshipValue value)
 {
     if (value is RelationshipProxyWrappingValue)
     {               // this is the back door through which "virtual relationships" slip
         return((( RelationshipProxyWrappingValue )value).RelationshipProxy());
     }
     return(new RelationshipProxy(_proxySPI, value.Id()));
 }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unused") public static long unboxRelationshipOrNull(org.neo4j.values.virtual.VirtualRelationshipValue value)
        public static long UnboxRelationshipOrNull(VirtualRelationshipValue value)
        {
            if (value == null)
            {
                return(-1L);
            }
            return(value.Id());
        }
 public override AnyValue MapRelationship(VirtualRelationshipValue value)
 {
     if (value is RelationshipValue)
     {
         return(value);
     }
     return(ValueUtils.fromRelationshipProxy(ProxySpi.newRelationshipProxy(value.Id())));
 }