public final class JcrModifiablePropertyMap extends JcrPropertyMap implements PersistableValueMap
Constructor and Description |
---|
JcrModifiablePropertyMap(javax.jcr.Node node)
Constructor
|
JcrModifiablePropertyMap(javax.jcr.Node node,
ClassLoader dynamicCL)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Object |
put(String aKey,
Object value) |
void |
putAll(Map<? extends String,? extends Object> t) |
Object |
remove(Object aKey) |
void |
reset()
Reset the changes.
|
void |
save()
Persists the changes.
|
containsKey, containsValue, entrySet, escapeKeyName, get, get, get, getPath, isEmpty, keySet, size, toString, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
public JcrModifiablePropertyMap(javax.jcr.Node node)
node
- The underlying node.public JcrModifiablePropertyMap(javax.jcr.Node node, ClassLoader dynamicCL)
node
- The underlying node.dynamicCL
- Dynamic class loader for loading serialized objects.public void clear()
clear
in interface Map<String,Object>
clear
in class JcrPropertyMap
Map.clear()
public Object put(String aKey, Object value)
put
in interface Map<String,Object>
put
in class JcrPropertyMap
Map.put(java.lang.Object, java.lang.Object)
public void putAll(Map<? extends String,? extends Object> t)
putAll
in interface Map<String,Object>
putAll
in class JcrPropertyMap
Map.putAll(java.util.Map)
public Object remove(Object aKey)
remove
in interface Map<String,Object>
remove
in class JcrPropertyMap
Map.remove(java.lang.Object)
public void reset()
PersistableValueMap
reset
in interface PersistableValueMap
PersistableValueMap.reset()
public void save() throws PersistenceException
PersistableValueMap
save
in interface PersistableValueMap
PersistenceException
- If the changes can't be persisted.PersistableValueMap.save()
Copyright © 2014 The Apache Software Foundation. All rights reserved.