|
Spring Data Neo4j | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 DynamicProperties
key
- the key to be checked
public Object getProperty(String key)
getProperty
in interface DynamicProperties
key
- key of the property to get
DynamicProperties.hasProperty(java.lang.String)
returns falsepublic Object getProperty(String key, Object defaultValue)
getProperty
in interface DynamicProperties
key
- 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 falsepublic void setProperty(String key, Object value)
DynamicProperties
setProperty
in interface DynamicProperties
key
- key of the propertyvalue
- value of the propertypublic Object removeProperty(String key)
DynamicProperties
removeProperty
in interface DynamicProperties
DynamicProperties.hasProperty(java.lang.String)
returns
falsepublic Iterable<String> getPropertyKeys()
DynamicProperties
getPropertyKeys
in interface DynamicProperties
public Map<String,Object> asMap()
asMap
in interface DynamicProperties
public void setPropertiesFrom(Map<String,Object> m)
DynamicProperties
setPropertiesFrom
in interface DynamicProperties
m
- that contains the key/value pairs to setpublic DynamicProperties createFrom(Map<String,Object> map)
DynamicProperties
DynamicProperties.setPropertiesFrom(Map)
createFrom
in interface DynamicProperties
map
- 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 |