
public class OEmbeddedRidBag extends Object implements ORidBagDelegate
ORecordElement.STATUS| Constructor and Description |
|---|
OEmbeddedRidBag() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(OIdentifiable identifiable) |
void |
addAll(Collection<OIdentifiable> values) |
void |
addEntry(OIdentifiable identifiable) |
boolean |
addInternal(OIdentifiable identifiable) |
boolean |
contains(OIdentifiable identifiable)
THIS IS VERY EXPENSIVE METHOD AND CAN NOT BE CALLED IN REMOTE STORAGE.
|
void |
convertLinks2Records()
Browse all the set to convert all the items into records.
|
boolean |
convertRecords2Links()
Browse all the set to convert all the items into links.
|
OEmbeddedRidBag |
copy() |
int |
deserialize(byte[] stream,
int offset) |
boolean |
detach()
Detaches the object.
|
void |
disableTracking(ORecordElement document) |
void |
enableTracking(ORecordElement parent) |
NavigableMap<OIdentifiable,Change> |
getChanges() |
Object[] |
getEntries() |
Class<?> |
getGenericClass() |
ORecordElement |
getOwner() |
int |
getSerializedSize() |
int |
getSerializedSize(byte[] stream,
int offset) |
OMultiValueChangeTimeLine<Object,Object> |
getTimeLine() |
OSimpleMultiValueTracker<OIdentifiable,OIdentifiable> |
getTracker() |
OMultiValueChangeTimeLine<OIdentifiable,OIdentifiable> |
getTransactionTimeLine() |
boolean |
isAutoConvertToRecord() |
boolean |
isEmpty() |
boolean |
isModified() |
boolean |
isTransactionModified() |
Iterator<OIdentifiable> |
iterator() |
Iterator<OIdentifiable> |
rawIterator() |
void |
remove(OIdentifiable identifiable) |
void |
replace(OMultiValueChangeEvent<Object,Object> event,
Object newValue) |
void |
requestDelete() |
Object |
returnOriginalState(List<OMultiValueChangeEvent<OIdentifiable,OIdentifiable>> multiValueChangeEvents)
Reverts all operations that were performed on collection and return original collection state.
|
int |
serialize(byte[] stream,
int offset,
UUID ownerUuid)
Writes content of bag to stream.
|
void |
setAutoConvertToRecord(boolean convertToRecord) |
<RET> RET |
setDirty()
Marks the instance as dirty.
|
void |
setDirtyNoChanged() |
void |
setOwner(ORecordElement owner) |
void |
setSize(int size) |
void |
setTracker(OSimpleMultiValueTracker<OIdentifiable,OIdentifiable> tracker) |
void |
setTransactionModified(boolean transactionDirty) |
int |
size() |
boolean |
swap(int index,
OIdentifiable newValue)
for internal use only
|
String |
toString() |
void |
transactionClear() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratornestedDisable, nestedEnabled, nestedTransactionClearpublic void setSize(int size)
setSize in interface ORidBagDelegatepublic Object[] getEntries()
public ORecordElement getOwner()
getOwner in interface ORecordElementgetOwner in interface ORidBagDelegatepublic boolean contains(OIdentifiable identifiable)
ORidBagDelegatecontains in interface ORidBagDelegateidentifiable - Object to check.public void setOwner(ORecordElement owner)
setOwner in interface ORidBagDelegatepublic void addAll(Collection<OIdentifiable> values)
addAll in interface ORidBagDelegatepublic void add(OIdentifiable identifiable)
add in interface ORidBagDelegatepublic OEmbeddedRidBag copy()
public void remove(OIdentifiable identifiable)
remove in interface ORidBagDelegatepublic boolean swap(int index,
OIdentifiable newValue)
index - newValue - public boolean isEmpty()
isEmpty in interface ORidBagDelegatepublic Iterator<OIdentifiable> iterator()
iterator in interface Iterable<OIdentifiable>public Iterator<OIdentifiable> rawIterator()
rawIterator in interface ORecordLazyMultiValuepublic void convertLinks2Records()
ORecordLazyMultiValueIt 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 ORecordLazyMultiValuepublic boolean convertRecords2Links()
ORecordLazyMultiValueconvertRecords2Links in interface ORecordLazyMultiValuepublic boolean isAutoConvertToRecord()
isAutoConvertToRecord in interface OAutoConvertToRecordpublic void setAutoConvertToRecord(boolean convertToRecord)
setAutoConvertToRecord in interface OAutoConvertToRecordpublic boolean detach()
ODetachabledetach in interface ODetachablepublic String toString()
toString in interface ORidBagDelegatetoString in class Objectpublic Object returnOriginalState(List<OMultiValueChangeEvent<OIdentifiable,OIdentifiable>> multiValueChangeEvents)
OTrackedMultiValuereturnOriginalState in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>multiValueChangeEvents - List of operations that were performed on collection.public int getSerializedSize()
getSerializedSize in interface ORidBagDelegatepublic int getSerializedSize(byte[] stream,
int offset)
getSerializedSize in interface ORidBagDelegatepublic int serialize(byte[] stream,
int offset,
UUID ownerUuid)
ORidBagDelegateOwnerUuid is needed to notify db about changes of collection pointer if some happens during serialization.
serialize in interface ORidBagDelegatestream - to write contentoffset - in stream where start to write contentownerUuid - id of delegate ownerpublic int deserialize(byte[] stream,
int offset)
deserialize in interface ORidBagDelegatepublic void requestDelete()
requestDelete in interface ORidBagDelegatepublic Class<?> getGenericClass()
getGenericClass in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>public boolean addInternal(OIdentifiable identifiable)
addInternal in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>public void addEntry(OIdentifiable identifiable)
public NavigableMap<OIdentifiable,Change> getChanges()
getChanges in interface ORidBagDelegatepublic 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 <RET> RET setDirty()
ORecordElementsetDirty in interface ORecordElementpublic void setTransactionModified(boolean transactionDirty)
setTransactionModified in interface ORidBagDelegatepublic void setDirtyNoChanged()
setDirtyNoChanged in interface ORecordElementpublic OSimpleMultiValueTracker<OIdentifiable,OIdentifiable> getTracker()
getTracker in interface ORidBagDelegatepublic void setTracker(OSimpleMultiValueTracker<OIdentifiable,OIdentifiable> tracker)
setTracker in interface ORidBagDelegatepublic OMultiValueChangeTimeLine<OIdentifiable,OIdentifiable> getTransactionTimeLine()
getTransactionTimeLine in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>Copyright © 2009–2025 OrientDB. All rights reserved.