Package org.neo4j.graphdb

Examples of org.neo4j.graphdb.Node.removeProperty()


        @Override
        protected Object executeInTransaction( GraphDatabaseService db, Transaction tx )
        {
            Node refNode = db.getReferenceNode();
            // To force it to pull updates
            refNode.removeProperty( "yoyoyoyo" );
            Node node = refNode.getSingleRelationship( REL_TYPE,
                    Direction.OUTGOING ).getEndNode();
            Object oldValue = node.getProperty( key, null );
            node.setProperty( key, value );
            tx.success();
View Full Code Here


        assertEquals( recordCount, dynamicRecordsInUse() );
        assertEquals( propCount + 1, propertyRecordsInUse() );
        assertEquals( "value", node.getProperty( "key" ) );

        node.removeProperty( "key" );
        commit();

        assertEquals( recordCount, dynamicRecordsInUse() );
        assertEquals( propCount, propertyRecordsInUse() );
        assertFalse( node.hasProperty( "key" ) );
View Full Code Here

        for ( int i = 0; i < nodes.size(); i++ )
        {
            Node node = nodes.get( i );
            switch ( i % 6 )
            {
            case 0: node.removeProperty( "number" ); break;
            case 1: node.removeProperty( "string" ); break;
            case 2: node.removeProperty( "array" ); break;
            case 3:
                node.removeProperty( "number" );
                node.removeProperty( "string" );
View Full Code Here

        {
            Node node = nodes.get( i );
            switch ( i % 6 )
            {
            case 0: node.removeProperty( "number" ); break;
            case 1: node.removeProperty( "string" ); break;
            case 2: node.removeProperty( "array" ); break;
            case 3:
                node.removeProperty( "number" );
                node.removeProperty( "string" );
                node.removeProperty( "array" );
View Full Code Here

            Node node = nodes.get( i );
            switch ( i % 6 )
            {
            case 0: node.removeProperty( "number" ); break;
            case 1: node.removeProperty( "string" ); break;
            case 2: node.removeProperty( "array" ); break;
            case 3:
                node.removeProperty( "number" );
                node.removeProperty( "string" );
                node.removeProperty( "array" );
                break;
View Full Code Here

            {
            case 0: node.removeProperty( "number" ); break;
            case 1: node.removeProperty( "string" ); break;
            case 2: node.removeProperty( "array" ); break;
            case 3:
                node.removeProperty( "number" );
                node.removeProperty( "string" );
                node.removeProperty( "array" );
                break;
            case 4:
                node.setProperty( "new", 34 );
View Full Code Here

            case 0: node.removeProperty( "number" ); break;
            case 1: node.removeProperty( "string" ); break;
            case 2: node.removeProperty( "array" ); break;
            case 3:
                node.removeProperty( "number" );
                node.removeProperty( "string" );
                node.removeProperty( "array" );
                break;
            case 4:
                node.setProperty( "new", 34 );
                break;
View Full Code Here

            case 1: node.removeProperty( "string" ); break;
            case 2: node.removeProperty( "array" ); break;
            case 3:
                node.removeProperty( "number" );
                node.removeProperty( "string" );
                node.removeProperty( "array" );
                break;
            case 4:
                node.setProperty( "new", 34 );
                break;
            case 5:
View Full Code Here

        Relationship rel = node1.getSingleRelationship( MyRelTypes.TEST,
            Direction.BOTH );

        // test remove property
        assertEquals( 1, node1.removeProperty( key1 ) );
        assertEquals( 2, node2.removeProperty( key1 ) );
        assertEquals( 1, rel.removeProperty( key1 ) );
        assertEquals( string1, node1.removeProperty( key2 ) );
        assertEquals( string2, node2.removeProperty( key2 ) );
        assertEquals( string1, rel.removeProperty( key2 ) );
        assertTrue( node1.removeProperty( arrayKey ) != null );
View Full Code Here

        // test remove property
        assertEquals( 1, node1.removeProperty( key1 ) );
        assertEquals( 2, node2.removeProperty( key1 ) );
        assertEquals( 1, rel.removeProperty( key1 ) );
        assertEquals( string1, node1.removeProperty( key2 ) );
        assertEquals( string2, node2.removeProperty( key2 ) );
        assertEquals( string1, rel.removeProperty( key2 ) );
        assertTrue( node1.removeProperty( arrayKey ) != null );
        assertTrue( node2.removeProperty( arrayKey ) != null );
        assertTrue( rel.removeProperty( arrayKey ) != null );
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.