@Override public void setRelationshipProperties( long rel, Map<String,Object> properties ) { delegate.setRelationshipProperties( rel, properties ); }
@Override public void setRelationshipProperties( long rel, Map<String,Object> properties ) { delegate.setRelationshipProperties( rel, properties ); }
public Object removeProperty(final String key) { final Map<String, Object> properties = this.getPropertyMapClone(); final Object value = properties.remove(key); this.graph.getRawGraph().setRelationshipProperties(this.id, properties); return value; }
public <T> T removeProperty(final String key) { final Map<String, Object> properties = this.getPropertyMapClone(); final Object value = properties.remove(key); this.graph.getRawGraph().setRelationshipProperties(this.id, properties); return (T) value; }
public void setProperty(final String key, final Object value) { if (key.isEmpty()) throw ExceptionFactory.propertyKeyCanNotBeEmpty(); if (key.equals(StringFactory.ID)) throw ExceptionFactory.propertyKeyIdIsReserved(); if (key.equals(StringFactory.LABEL)) throw ExceptionFactory.propertyKeyLabelIsReservedForEdges(); final Map<String, Object> properties = this.getPropertyMapClone(); properties.put(key, value); this.graph.getRawGraph().setRelationshipProperties(this.id, properties); }
public void setProperty(final String key, final Object value) { if (key.isEmpty()) throw ExceptionFactory.elementKeyCanNotBeEmpty(); if (key.equals(StringFactory.ID)) throw ExceptionFactory.propertyKeyIdIsReserved(); if (key.equals(StringFactory.LABEL)) throw ExceptionFactory.propertyKeyLabelIsReservedForEdges(); final Map<String, Object> properties = this.getPropertyMapClone(); properties.put(key, value); this.graph.getRawGraph().setRelationshipProperties(this.id, properties); }
@Override public void addRelationshipProperty(long relationship, String property, Object value) { if (GraphUtil.ignoreProperty(value)) { return; } synchronized(graphLock) { Map<String, Object> propertyMap = inserter.getRelationshipProperties(relationship); if (propertyMap.containsKey(property)) { Object originalValue = propertyMap.get(property); Object newValue = GraphUtil.getNewPropertyValue(originalValue, value); Map<String, Object> properties = Maps.newHashMap(propertyMap); properties.put(property, newValue); synchronized (graphLock) { inserter.setRelationshipProperties(relationship, properties); } } else { setRelationshipProperty(relationship, property, value); } } }