Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.tinkerpop.blueprints.impls.neo4j2.batch;
 
 
 import java.util.Map;

Author(s):
Marko A. Rodriguez (http://markorodriguez.com)
class Neo4j2BatchEdge extends Neo4j2BatchElement implements Edge {
    private final String label;
    public Neo4j2BatchEdge(final Neo4j2BatchGraph graphfinal Long idfinal String label) {
        super(graphid);
        this. = label;
    }
    public <T> T removeProperty(final String key) {
        final Map<StringObjectproperties = this.getPropertyMapClone();
        final Object value = properties.remove(key);
        this..getRawGraph().setRelationshipProperties(this.properties);
        return (T) value;
    }
    public void setProperty(final String keyfinal Object value) {
        if (key.isEmpty())
            throw ExceptionFactory.propertyKeyCanNotBeEmpty();
        if (key.equals(.))
            throw ExceptionFactory.propertyKeyIdIsReserved();
        if (key.equals(.))
            throw ExceptionFactory.propertyKeyLabelIsReservedForEdges();
        final Map<StringObjectproperties = this.getPropertyMapClone();
        properties.put(keyvalue);
        this..getRawGraph().setRelationshipProperties(this.properties);
    }
    public Map<StringObjectgetPropertyMap() {
        return this..getRawGraph().getRelationshipProperties(this.);
    }

    
    public Vertex getVertex(final Direction directionthrows UnsupportedOperationException {
        throw new UnsupportedOperationException();
    }
    public String getLabel() {
        return this.;
    }
    public String toString() {
        return "e[" + this. + "][?-" + this. + "->?]";
    }
New to GrepCode? Check out our FAQ X