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() |
spliterator
equals, hashCode, removeAll
containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
nestedDisable, nestedEnabled, nestedTransactionClear
contains, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArray
parallelStream, removeIf, stream
protected 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 ORecordElement
public 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)
public boolean remove(Object o)
public void clear()
public OTrackedSet<T> setDirty()
ORecordElement
setDirty
in interface ORecordElement
public void setDirtyNoChanged()
setDirtyNoChanged
in interface ORecordElement
public Set<T> returnOriginalState(List<OMultiValueChangeEvent<T,T>> multiValueChangeEvents)
OTrackedMultiValue
returnOriginalState
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–2020 OrientDB. All rights reserved.