public class ManagedPrefixedDynamicProperties extends PrefixedDynamicProperties
prefix
Constructor and Description |
---|
ManagedPrefixedDynamicProperties(String prefix,
int initialCapacity,
Neo4jPersistentProperty property,
Object entity,
Neo4jTemplate template,
FieldAccessor fieldAccessor,
MappingPolicy mappingPolicy) |
ManagedPrefixedDynamicProperties(String prefix,
Neo4jPersistentProperty property,
Object entity,
Neo4jTemplate template,
FieldAccessor fieldAccessor,
MappingPolicy mappingPolicy) |
Modifier and Type | Method and Description |
---|---|
static ManagedPrefixedDynamicProperties |
create(String prefix,
Neo4jPersistentProperty property,
Object entity,
Neo4jTemplate template,
FieldAccessor fieldAccessor,
MappingPolicy mappingPolicy) |
DynamicProperties |
createFrom(Map<String,Object> map)
Creates a new instance with the properties set from the given map with
DynamicProperties.setPropertiesFrom(Map) |
Object |
removeProperty(String key)
Removes the property with the given key
|
void |
setPropertiesFrom(Map<String,Object> map)
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.
|
asMap, equals, getPrefixedProperty, getPrefixedPropertyKeys, getProperty, getProperty, getPropertyKeys, hashCode, hasPrefixedProperty, hasProperty, isPrefixedKey, setPrefixedProperty, setPropertyIfPrefixed
public ManagedPrefixedDynamicProperties(String prefix, Neo4jPersistentProperty property, Object entity, Neo4jTemplate template, FieldAccessor fieldAccessor, MappingPolicy mappingPolicy)
public ManagedPrefixedDynamicProperties(String prefix, int initialCapacity, Neo4jPersistentProperty property, Object entity, Neo4jTemplate template, FieldAccessor fieldAccessor, MappingPolicy mappingPolicy)
public static ManagedPrefixedDynamicProperties create(String prefix, Neo4jPersistentProperty property, Object entity, Neo4jTemplate template, FieldAccessor fieldAccessor, MappingPolicy mappingPolicy)
public void setProperty(String key, Object value)
DynamicProperties
setProperty
in interface DynamicProperties
setProperty
in class PrefixedDynamicProperties
key
- key of the propertyvalue
- value of the propertypublic Object removeProperty(String key)
DynamicProperties
removeProperty
in interface DynamicProperties
removeProperty
in class PrefixedDynamicProperties
DynamicProperties.hasProperty(java.lang.String)
returns
falsepublic void setPropertiesFrom(Map<String,Object> map)
DynamicProperties
setPropertiesFrom
in interface DynamicProperties
setPropertiesFrom
in class PrefixedDynamicProperties
map
- that contains the key/value pairs to setpublic DynamicProperties createFrom(Map<String,Object> map)
DynamicProperties
DynamicProperties.setPropertiesFrom(Map)
createFrom
in interface DynamicProperties
createFrom
in class PrefixedDynamicProperties
map
- that contains the key/value pairs to setCopyright © 2012 SpringSource. All Rights Reserved.