
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 |
|---|---|
boolean |
addInternal(T e) |
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, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitnestedDisable, nestedEnabled, nestedTransactionClearcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putIfAbsent, remove, replace, replace, sizeprotected 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 ORecordElementpublic boolean addInternal(T e)
addInternal in interface OTrackedMultiValue<Object,T>public void clear()
public OTrackedMap<T> setDirty()
ORecordElementsetDirty in interface ORecordElementpublic void setDirtyNoChanged()
setDirtyNoChanged in interface ORecordElementpublic Map<Object,T> returnOriginalState(List<OMultiValueChangeEvent<Object,T>> multiValueChangeEvents)
OTrackedMultiValuereturnOriginalState 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–2025 OrientDB. All rights reserved.