org.neo4j.server.rest.domain
Class PropertySettingStrategy

java.lang.Object
  extended by org.neo4j.server.rest.domain.PropertySettingStrategy

public class PropertySettingStrategy
extends Object

Responsible for setting properties on primitive types.


Constructor Summary
PropertySettingStrategy(org.neo4j.kernel.GraphDatabaseAPI db)
           
 
Method Summary
 void setAllProperties(org.neo4j.graphdb.PropertyContainer entity, Map<String,Object> properties)
          Set all properties on an entity, deleting any properties that existed on the entity but not in the provided map.
 void setProperties(org.neo4j.graphdb.PropertyContainer entity, Map<String,Object> properties)
           
 void setProperty(org.neo4j.graphdb.PropertyContainer entity, String key, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertySettingStrategy

public PropertySettingStrategy(org.neo4j.kernel.GraphDatabaseAPI db)
Method Detail

setAllProperties

public void setAllProperties(org.neo4j.graphdb.PropertyContainer entity,
                             Map<String,Object> properties)
                      throws PropertyValueException
Set all properties on an entity, deleting any properties that existed on the entity but not in the provided map.

Parameters:
entity -
properties -
Throws:
PropertyValueException

setProperties

public void setProperties(org.neo4j.graphdb.PropertyContainer entity,
                          Map<String,Object> properties)
                   throws PropertyValueException
Throws:
PropertyValueException

setProperty

public void setProperty(org.neo4j.graphdb.PropertyContainer entity,
                        String key,
                        Object value)
                 throws PropertyValueException
Throws:
PropertyValueException


Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.