Package org.neo4j.cypherdsl.query

Examples of org.neo4j.cypherdsl.query.Query


    public void test5_1_1()
    {
        // This test shows how to do partial queries. When the Query from toQuery() is passed into a new CypherQuery
        // it is cloned, so any modifications do not affect the original query

        Query query = start( lookup( "n", "node_auto_index", "name", "User1" ) ).
                match( node( "n" ).out( "hasRoleInGroup" ).node( "hyperEdge" ).out( "hasGroup" ).node( "group" ),
                        node( "hyperEdge" ).out( "hasRole" ).node( "role" ) ).toQuery();

        assertQueryEquals( CYPHER + "START n=node:node_auto_index(name=\"User1\") MATCH (n)-[:hasRoleInGroup]->" +
                "(hyperEdge)-[:hasGroup]->(group),(hyperEdge)-[:hasRole]->(role) WHERE group.name=\"Group2\" RETURN " +
View Full Code Here


     *     }}.toString()
     * </pre>
     */
    public CypherQuery()
    {
        query = new Query();
    }
View Full Code Here

TOP

Related Classes of org.neo4j.cypherdsl.query.Query

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.