public class ORecordLazySet extends AbstractCollection<OIdentifiable> implements Set<OIdentifiable>, OTrackedMultiValue<OIdentifiable,OIdentifiable>, ORecordElement, ORecordLazyMultiValue, OIdentityChangeListener
Internals:
ORecordElement.STATUS
Modifier and Type | Field and Description |
---|---|
protected boolean |
autoConvertToRecord |
protected static Object |
ENTRY_REMOVAL |
protected Map<OIdentifiable,Object> |
map |
protected ORecordElement |
sourceRecord |
Constructor and Description |
---|
ORecordLazySet(ORecordElement iSourceRecord) |
ORecordLazySet(ORecordElement iSourceRecord,
Collection<OIdentifiable> iOrigin) |
containsAll, isEmpty, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, isEmpty, spliterator, toArray, toArray
parallelStream, removeIf, stream
nestedDisable, nestedEnabled, nestedTransactionClear
protected boolean autoConvertToRecord
protected final ORecordElement sourceRecord
protected Map<OIdentifiable,Object> map
protected static final Object ENTRY_REMOVAL
public ORecordLazySet(ORecordElement iSourceRecord)
public ORecordLazySet(ORecordElement iSourceRecord, Collection<OIdentifiable> iOrigin)
public ORecordElement getOwner()
getOwner
in interface ORecordElement
public boolean addInternal(OIdentifiable e)
public boolean contains(Object o)
contains
in interface Collection<OIdentifiable>
contains
in interface Set<OIdentifiable>
contains
in class AbstractCollection<OIdentifiable>
public void clear()
clear
in interface Collection<OIdentifiable>
clear
in interface Set<OIdentifiable>
clear
in class AbstractCollection<OIdentifiable>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<OIdentifiable>
removeAll
in interface Set<OIdentifiable>
removeAll
in class AbstractCollection<OIdentifiable>
public boolean addAll(Collection<? extends OIdentifiable> c)
addAll
in interface Collection<OIdentifiable>
addAll
in interface Set<OIdentifiable>
addAll
in class AbstractCollection<OIdentifiable>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<OIdentifiable>
retainAll
in interface Set<OIdentifiable>
retainAll
in class AbstractCollection<OIdentifiable>
public int size()
size
in interface OSizeable
size
in interface Collection<OIdentifiable>
size
in interface Set<OIdentifiable>
size
in class AbstractCollection<OIdentifiable>
public ORecordLazySet setDirty()
ORecordElement
setDirty
in interface ORecordElement
public void setDirtyNoChanged()
setDirtyNoChanged
in interface ORecordElement
public Set<OIdentifiable> returnOriginalState(List<OMultiValueChangeEvent<OIdentifiable,OIdentifiable>> events)
OTrackedMultiValue
returnOriginalState
in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>
events
- List of operations that were performed on collection.protected void addOwnerToEmbeddedDoc(OIdentifiable e)
protected void addEvent(OIdentifiable added)
protected void removeEvent(OIdentifiable removed)
public Class<?> getGenericClass()
getGenericClass
in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>
public void replace(OMultiValueChangeEvent<Object,Object> event, Object newValue)
replace
in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>
public void enableTracking(ORecordElement parent)
enableTracking
in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>
public void disableTracking(ORecordElement document)
disableTracking
in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>
public void transactionClear()
transactionClear
in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>
public boolean isModified()
isModified
in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>
public boolean isTransactionModified()
isTransactionModified
in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>
public OMultiValueChangeTimeLine<Object,Object> getTimeLine()
getTimeLine
in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>
public boolean detach()
ODetachable
detach
in interface ODetachable
public Iterator<OIdentifiable> iterator()
iterator
in interface Iterable<OIdentifiable>
iterator
in interface Collection<OIdentifiable>
iterator
in interface Set<OIdentifiable>
iterator
in class AbstractCollection<OIdentifiable>
public Iterator<OIdentifiable> rawIterator()
rawIterator
in interface ORecordLazyMultiValue
public boolean add(OIdentifiable e)
add
in interface Collection<OIdentifiable>
add
in interface Set<OIdentifiable>
add
in class AbstractCollection<OIdentifiable>
public void convertLinks2Records()
ORecordLazyMultiValue
It converts only items that already loaded into memory from storage. To convert records that
will be fetched from disk later use OAutoConvertToRecord.setAutoConvertToRecord(boolean)
convertLinks2Records
in interface ORecordLazyMultiValue
public void onAfterIdentityChange(ORecord record)
OIdentityChangeListener
onAfterIdentityChange
in interface OIdentityChangeListener
public void onBeforeIdentityChange(ORecord record)
OIdentityChangeListener
onBeforeIdentityChange
in interface OIdentityChangeListener
public boolean convertRecords2Links()
ORecordLazyMultiValue
convertRecords2Links
in interface ORecordLazyMultiValue
public boolean clearDeletedRecords()
public boolean remove(Object o)
remove
in interface Collection<OIdentifiable>
remove
in interface Set<OIdentifiable>
remove
in class AbstractCollection<OIdentifiable>
public boolean isAutoConvertToRecord()
isAutoConvertToRecord
in interface OAutoConvertToRecord
public void setAutoConvertToRecord(boolean convertToRecord)
setAutoConvertToRecord
in interface OAutoConvertToRecord
public boolean equals(Object obj)
equals
in interface Collection<OIdentifiable>
equals
in interface Set<OIdentifiable>
equals
in class Object
public int hashCode()
hashCode
in interface Collection<OIdentifiable>
hashCode
in interface Set<OIdentifiable>
hashCode
in class Object
public String toString()
toString
in class AbstractCollection<OIdentifiable>
public OMultiValueChangeTimeLine<OIdentifiable,OIdentifiable> getTransactionTimeLine()
getTransactionTimeLine
in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>
Copyright © 2009–2020 OrientDB. All rights reserved.