org.springframework.data.neo4j.fieldaccess
Class ManagedPrefixedDynamicProperties
java.lang.Object
org.springframework.data.neo4j.fieldaccess.PrefixedDynamicProperties
org.springframework.data.neo4j.fieldaccess.ManagedPrefixedDynamicProperties
- All Implemented Interfaces:
- DynamicProperties
public class ManagedPrefixedDynamicProperties
- extends PrefixedDynamicProperties
Updates the entity containing such a ManagedPrefixedDynamicProperties when some property is added, changed or
deleted.
Constructor Summary |
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)
|
Methods inherited from class org.springframework.data.neo4j.fieldaccess.PrefixedDynamicProperties |
asMap, equals, getPrefixedProperty, getPrefixedPropertyKeys, getProperty, getProperty, getPropertyKeys, hashCode, hasPrefixedProperty, hasProperty, isPrefixedKey, setPrefixedProperty, setPropertyIfPrefixed |
ManagedPrefixedDynamicProperties
public ManagedPrefixedDynamicProperties(String prefix,
Neo4jPersistentProperty property,
Object entity,
Neo4jTemplate template,
FieldAccessor fieldAccessor,
MappingPolicy mappingPolicy)
ManagedPrefixedDynamicProperties
public ManagedPrefixedDynamicProperties(String prefix,
int initialCapacity,
Neo4jPersistentProperty property,
Object entity,
Neo4jTemplate template,
FieldAccessor fieldAccessor,
MappingPolicy mappingPolicy)
create
public static ManagedPrefixedDynamicProperties create(String prefix,
Neo4jPersistentProperty property,
Object entity,
Neo4jTemplate template,
FieldAccessor fieldAccessor,
MappingPolicy mappingPolicy)
setProperty
public void setProperty(String key,
Object value)
- Description copied from interface:
DynamicProperties
- Set the value of the property with the given key to the given value and overwrites it when such a property
already exists.
- Specified by:
setProperty
in interface DynamicProperties
- Overrides:
setProperty
in class PrefixedDynamicProperties
- Parameters:
key
- key of the propertyvalue
- value of the property
removeProperty
public Object removeProperty(String key)
- Description copied from interface:
DynamicProperties
- Removes the property with the given key
- Specified by:
removeProperty
in interface DynamicProperties
- Overrides:
removeProperty
in class PrefixedDynamicProperties
- Returns:
- the property that has been removed or null if no such property exists and
DynamicProperties.hasProperty(java.lang.String)
returns
false
setPropertiesFrom
public void setPropertiesFrom(Map<String,Object> map)
- Description copied from interface:
DynamicProperties
- Sets a property for all key/value pairs in the given map
- Specified by:
setPropertiesFrom
in interface DynamicProperties
- Overrides:
setPropertiesFrom
in class PrefixedDynamicProperties
- Parameters:
map
- that contains the key/value pairs to set
createFrom
public DynamicProperties createFrom(Map<String,Object> map)
- Description copied from interface:
DynamicProperties
- Creates a new instance with the properties set from the given map with
DynamicProperties.setPropertiesFrom(Map)
- Specified by:
createFrom
in interface DynamicProperties
- Overrides:
createFrom
in class PrefixedDynamicProperties
- Parameters:
map
- that contains the key/value pairs to set
- Returns:
- a new DynamicProperties instance
Copyright © 2011 SpringSource. All Rights Reserved.