Package com.tinkerpop.blueprints.util.wrappers.readonly

Examples of com.tinkerpop.blueprints.util.wrappers.readonly.ReadOnlyGraph


            if (isReadOnly) {
                // the graph is configured to be readonly so wrap it up
                if (readWriteGraph instanceof IndexableGraph) {
                    graph = new ReadOnlyIndexableGraph((IndexableGraph) readWriteGraph);
                } else {
                    graph = new ReadOnlyGraph(readWriteGraph);
                }
            } else {
                graph = readWriteGraph;
            }
View Full Code Here


    }

    @Test
    public void unwrapGraphReadonlyWrapping() {
        Graph tg = TinkerGraphFactory.createTinkerGraph();
        Graph g = new ReadOnlyGraph(tg);
        Graph unwrapped = RexsterApplicationGraph.unwrapGraph(g);
        Assert.assertEquals(tg, unwrapped);
    }
View Full Code Here

    @Test
    public void unwrapGraphReadonlyEventWrapping() {
        Graph tg = TinkerGraphFactory.createTinkerGraph();
        Graph eg = new EventGraph(tg);
        Graph g = new ReadOnlyGraph(eg);
        Graph unwrapped = RexsterApplicationGraph.unwrapGraph(g);
        Assert.assertEquals(tg, unwrapped);
    }
View Full Code Here

TOP

Related Classes of com.tinkerpop.blueprints.util.wrappers.readonly.ReadOnlyGraph

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.