Ejemplo n.º 1
0
 public Representation getRelationshipProperty(long relationshipId, String key)
     throws NoSuchPropertyException, RelationshipNotFoundException {
   Relationship relationship = relationship(relationshipId);
   try {
     return PropertiesRepresentation.value(relationship.getProperty(key));
   } catch (NotFoundException e) {
     throw new NoSuchPropertyException(relationship, key);
   }
 }
Ejemplo n.º 2
0
 public Representation getNodeProperty(long nodeId, String key)
     throws NodeNotFoundException, NoSuchPropertyException {
   Node node = node(nodeId);
   try {
     return PropertiesRepresentation.value(node.getProperty(key));
   } catch (NotFoundException e) {
     throw new NoSuchPropertyException(node, key);
   }
 }