public class OTrackedMap<T> extends LinkedHashMap<Object,T> implements ORecordElement, OTrackedMultiValue<Object,T>, Serializable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
ORecordElement.STATUS
Modifier and Type | Field and Description |
---|---|
protected Class<?> |
genericClass |
protected ORecordElement |
sourceRecord |
Constructor and Description |
---|
OTrackedMap(ORecordElement iSourceRecord) |
OTrackedMap(ORecordElement iRecord,
Map<Object,T> iOrigin,
Class<?> cls) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
disableTracking(ORecordElement document) |
void |
enableTracking(ORecordElement parent) |
Class<?> |
getGenericClass() |
ORecordElement |
getOwner() |
OMultiValueChangeTimeLine<Object,Object> |
getTimeLine() |
OMultiValueChangeTimeLine<Object,T> |
getTransactionTimeLine() |
boolean |
isModified() |
boolean |
isTransactionModified() |
T |
put(Object key,
T value) |
void |
putAll(Map<?,? extends T> m) |
T |
putInternal(Object key,
T value) |
T |
remove(Object iKey) |
void |
replace(OMultiValueChangeEvent<Object,Object> event,
Object newValue) |
Map<Object,T> |
returnOriginalState(List<OMultiValueChangeEvent<Object,T>> multiValueChangeEvents)
Reverts all operations that were performed on collection and return original collection state.
|
OTrackedMap<T> |
setDirty()
Marks the instance as dirty.
|
void |
setDirtyNoChanged() |
void |
transactionClear() |
containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
nestedDisable, nestedEnabled, nestedTransactionClear
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putIfAbsent, remove, replace, replace, size
protected final ORecordElement sourceRecord
protected Class<?> genericClass
public OTrackedMap(ORecordElement iRecord, Map<Object,T> iOrigin, Class<?> cls)
public OTrackedMap(ORecordElement iSourceRecord)
public ORecordElement getOwner()
getOwner
in interface ORecordElement
public void clear()
public OTrackedMap<T> setDirty()
ORecordElement
setDirty
in interface ORecordElement
public void setDirtyNoChanged()
setDirtyNoChanged
in interface ORecordElement
public Map<Object,T> returnOriginalState(List<OMultiValueChangeEvent<Object,T>> multiValueChangeEvents)
OTrackedMultiValue
returnOriginalState
in interface OTrackedMultiValue<Object,T>
multiValueChangeEvents
- List of operations that were performed on collection.public Class<?> getGenericClass()
getGenericClass
in interface OTrackedMultiValue<Object,T>
public void replace(OMultiValueChangeEvent<Object,Object> event, Object newValue)
replace
in interface OTrackedMultiValue<Object,T>
public void enableTracking(ORecordElement parent)
enableTracking
in interface OTrackedMultiValue<Object,T>
public void disableTracking(ORecordElement document)
disableTracking
in interface OTrackedMultiValue<Object,T>
public void transactionClear()
transactionClear
in interface OTrackedMultiValue<Object,T>
public boolean isModified()
isModified
in interface OTrackedMultiValue<Object,T>
public boolean isTransactionModified()
isTransactionModified
in interface OTrackedMultiValue<Object,T>
public OMultiValueChangeTimeLine<Object,Object> getTimeLine()
getTimeLine
in interface OTrackedMultiValue<Object,T>
public OMultiValueChangeTimeLine<Object,T> getTransactionTimeLine()
getTransactionTimeLine
in interface OTrackedMultiValue<Object,T>
Copyright © 2009–2020 OrientDB. All rights reserved.