Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.tinkerpop.blueprints.impls.neo4j2.batch;
 
 

Author(s):
Marko A. Rodriguez (http://markorodriguez.com)
class Neo4j2BatchVertex extends Neo4j2BatchElement implements Vertex {
    public Neo4j2BatchVertex(final Neo4j2BatchGraph graphfinal Long id) {
        super(graphid);
    }
    public <T> T removeProperty(final String key) {
        final Map<StringObjectproperties = this.getPropertyMapClone();
        final Object value = properties.remove(key);
        this..getRawGraph().setNodeProperties(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();
        final Map<StringObjectproperties = this.getPropertyMapClone();
        properties.put(keyvalue);
        this..getRawGraph().setNodeProperties(this.properties);
    }

    
    public Iterable<EdgegetEdges(final Direction directionfinal String... labelsthrows UnsupportedOperationException {
        throw new UnsupportedOperationException();
    }

    
    public Iterable<VertexgetVertices(final Direction directionfinal String... labelsthrows UnsupportedOperationException {
        throw new UnsupportedOperationException();
    }
    public Edge addEdge(final String labelfinal Vertex vertex) {
        return this..addEdge(nullthisvertexlabel);
    }

    
    public VertexQuery query() throws UnsupportedOperationException {
        throw new UnsupportedOperationException();
    }
    public Map<StringObjectgetPropertyMap() {
        return this..getRawGraph().getNodeProperties(this.);
    }
    public String toString() {
        return StringFactory.vertexString(this);
    }
New to GrepCode? Check out our FAQ X