|
Spring Data Neo4j | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.neo4j.fieldaccess.DynamicPropertiesContainer
public class DynamicPropertiesContainer
| Constructor Summary | |
|---|---|
DynamicPropertiesContainer()
|
|
DynamicPropertiesContainer(Map<String,Object> map)
|
|
| Method Summary | |
|---|---|
Map<String,Object> |
asMap()
|
DynamicProperties |
createFrom(Map<String,Object> map)
Creates a new instance with the properties set from the given map with DynamicProperties.setPropertiesFrom(Map) |
Object |
getProperty(String key)
|
Object |
getProperty(String key,
Object defaultValue)
|
Iterable<String> |
getPropertyKeys()
Returns all keys |
boolean |
hasProperty(String key)
|
Object |
removeProperty(String key)
Removes the property with the given key |
void |
setPropertiesFrom(Map<String,Object> m)
Sets a property for all key/value pairs in the given map |
void |
setProperty(String key,
Object value)
Set the value of the property with the given key to the given value and overwrites it when such a property already exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicPropertiesContainer()
public DynamicPropertiesContainer(Map<String,Object> map)
| Method Detail |
|---|
public boolean hasProperty(String key)
hasProperty in interface DynamicPropertieskey - the key to be checked
public Object getProperty(String key)
getProperty in interface DynamicPropertieskey - key of the property to get
DynamicProperties.hasProperty(java.lang.String)
returns false
public Object getProperty(String key,
Object defaultValue)
getProperty in interface DynamicPropertieskey - key of the property to getdefaultValue - the default value to return if no property with the given key exists
DynamicProperties.hasProperty(java.lang.String)
returns false
public void setProperty(String key,
Object value)
DynamicProperties
setProperty in interface DynamicPropertieskey - key of the propertyvalue - value of the propertypublic Object removeProperty(String key)
DynamicProperties
removeProperty in interface DynamicPropertiesDynamicProperties.hasProperty(java.lang.String) returns
falsepublic Iterable<String> getPropertyKeys()
DynamicProperties
getPropertyKeys in interface DynamicPropertiespublic Map<String,Object> asMap()
asMap in interface DynamicPropertiespublic void setPropertiesFrom(Map<String,Object> m)
DynamicProperties
setPropertiesFrom in interface DynamicPropertiesm - that contains the key/value pairs to setpublic DynamicProperties createFrom(Map<String,Object> map)
DynamicPropertiesDynamicProperties.setPropertiesFrom(Map)
createFrom in interface DynamicPropertiesmap - that contains the key/value pairs to set
|
Spring Data Neo4j | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||