
public class OTrackedSet<T> extends LinkedHashSet<T> implements ORecordElement, OTrackedMultiValue<T,T>, Serializable
ORecordElement.STATUS| Modifier and Type | Field and Description |
|---|---|
protected Class<?> |
genericClass |
protected ORecordElement |
sourceRecord |
| Constructor and Description |
|---|
OTrackedSet(ORecordElement iSourceRecord) |
OTrackedSet(ORecordElement iRecord,
Collection<? extends T> iOrigin,
Class<?> cls) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addInternal(T e) |
void |
clear() |
void |
disableTracking(ORecordElement document) |
void |
enableTracking(ORecordElement parent) |
Class<?> |
getGenericClass() |
ORecordElement |
getOwner() |
OMultiValueChangeTimeLine<Object,Object> |
getTimeLine() |
OMultiValueChangeTimeLine<T,T> |
getTransactionTimeLine() |
boolean |
isModified() |
boolean |
isTransactionModified() |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
void |
replace(OMultiValueChangeEvent<Object,Object> event,
Object newValue) |
Set<T> |
returnOriginalState(List<OMultiValueChangeEvent<T,T>> multiValueChangeEvents)
Reverts all operations that were performed on collection and return original collection state.
|
OTrackedSet<T> |
setDirty()
Marks the instance as dirty.
|
void |
setDirtyNoChanged() |
void |
transactionClear() |
spliteratorequals, hashCode, removeAllcontainsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitnestedDisable, nestedEnabled, nestedTransactionClearcontains, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArrayparallelStream, removeIf, streamprotected final ORecordElement sourceRecord
protected Class<?> genericClass
public OTrackedSet(ORecordElement iRecord, Collection<? extends T> iOrigin, Class<?> cls)
public OTrackedSet(ORecordElement iSourceRecord)
public ORecordElement getOwner()
getOwner in interface ORecordElementpublic boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T>addAll in interface Set<T>addAll in class AbstractCollection<T>public boolean add(T e)
public boolean addInternal(T e)
addInternal in interface OTrackedMultiValue<T,T>public boolean remove(Object o)
public void clear()
public OTrackedSet<T> setDirty()
ORecordElementsetDirty in interface ORecordElementpublic void setDirtyNoChanged()
setDirtyNoChanged in interface ORecordElementpublic Set<T> returnOriginalState(List<OMultiValueChangeEvent<T,T>> multiValueChangeEvents)
OTrackedMultiValuereturnOriginalState in interface OTrackedMultiValue<T,T>multiValueChangeEvents - List of operations that were performed on collection.public Class<?> getGenericClass()
getGenericClass in interface OTrackedMultiValue<T,T>public void replace(OMultiValueChangeEvent<Object,Object> event, Object newValue)
replace in interface OTrackedMultiValue<T,T>public void enableTracking(ORecordElement parent)
enableTracking in interface OTrackedMultiValue<T,T>public void disableTracking(ORecordElement document)
disableTracking in interface OTrackedMultiValue<T,T>public void transactionClear()
transactionClear in interface OTrackedMultiValue<T,T>public boolean isModified()
isModified in interface OTrackedMultiValue<T,T>public boolean isTransactionModified()
isTransactionModified in interface OTrackedMultiValue<T,T>public OMultiValueChangeTimeLine<Object,Object> getTimeLine()
getTimeLine in interface OTrackedMultiValue<T,T>public OMultiValueChangeTimeLine<T,T> getTransactionTimeLine()
getTransactionTimeLine in interface OTrackedMultiValue<T,T>Copyright © 2009–2025 OrientDB. All rights reserved.