Interface OTrackedMultiValue<K,V>
- Type Parameters:
K- Value that indicates position of item inside collection.V- Value that is hold by collection.
- All Known Subinterfaces:
ORidBagDelegate
- All Known Implementing Classes:
OEmbeddedRidBag,ORecordLazyList,ORecordLazyMap,ORecordLazySet,ORemoteTreeRidBag,ORidBag,OSBTreeRidBag,OTrackedList,OTrackedMap,OTrackedSet
public interface OTrackedMultiValue<K,V>
Interface that indicates that collection will send notifications about operations that are
performed on it to the listeners.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddInternal(V e) voiddisableTracking(ORecordElement document) voidenableTracking(ORecordElement parent) Class<?>booleanbooleanstatic <X> voidnestedDisable(Iterator<X> iterator, ORecordElement parent) static <X> voidnestedEnabled(Iterator<X> iterator, ORecordElement parent) static <X> voidnestedTransactionClear(Iterator<X> iterator) voidreplace(OMultiValueChangeEvent<Object, Object> event, Object newValue) returnOriginalState(List<OMultiValueChangeEvent<K, V>> changeEvents) Reverts all operations that were performed on collection and return original collection state.void
-
Method Details
-
returnOriginalState
Reverts all operations that were performed on collection and return original collection state.- Parameters:
changeEvents- List of operations that were performed on collection.- Returns:
- Original collection state.
-
getGenericClass
Class<?> getGenericClass() -
replace
-
enableTracking
-
disableTracking
-
isModified
boolean isModified() -
isTransactionModified
boolean isTransactionModified() -
getTimeLine
OMultiValueChangeTimeLine<Object,Object> getTimeLine() -
nestedEnabled
-
nestedDisable
-
nestedTransactionClear
-
transactionClear
void transactionClear() -
addInternal
-
getTransactionTimeLine
OMultiValueChangeTimeLine<K,V> getTransactionTimeLine()
-