Package org.neo4j.graphdb

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


        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 );
    }

    @Test
    public void testNodeChangeProperty()
View Full Code Here


        node.setProperty( "key1", "1" );
        node.setProperty( "key2", "2" );
        node.setProperty( "key3", "3" );
        node.setProperty( "key4", "4" );
        newTransaction();
        node.removeProperty( "key3" );
        node.removeProperty( "key2" );
        node.removeProperty( "key3" );
        newTransaction();
        getNodeManager().clearCache();
        assertEquals( "0", node.getProperty( "key0" ) );
View Full Code Here

        node.setProperty( "key2", "2" );
        node.setProperty( "key3", "3" );
        node.setProperty( "key4", "4" );
        newTransaction();
        node.removeProperty( "key3" );
        node.removeProperty( "key2" );
        node.removeProperty( "key3" );
        newTransaction();
        getNodeManager().clearCache();
        assertEquals( "0", node.getProperty( "key0" ) );
        assertEquals( "1", node.getProperty( "key1" ) );
View Full Code Here

        node.setProperty( "key3", "3" );
        node.setProperty( "key4", "4" );
        newTransaction();
        node.removeProperty( "key3" );
        node.removeProperty( "key2" );
        node.removeProperty( "key3" );
        newTransaction();
        getNodeManager().clearCache();
        assertEquals( "0", node.getProperty( "key0" ) );
        assertEquals( "1", node.getProperty( "key1" ) );
        assertEquals( "4", node.getProperty( "key4" ) );
View Full Code Here

            Node tempNode = getGraphDb().createNode();
            Relationship tempRel = tempNode.createRelationshipTo( node1,
                    RelTypes.TXEVENT );
            tempNode.setProperty( "something", "Some value" );
            tempRel.setProperty( "someproperty", 101010 );
            tempNode.removeProperty( "nothing" );

            node3.setProperty( "test", "hello" );
            node3.setProperty( "name", "No name" );
            node3.delete();
            expectedData.expectedDeletedNodes.add( node3 );
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.