
public class OSBTreeRidBag extends Object implements ORidBagDelegate
| Modifier and Type | Class and Description |
|---|---|
static interface |
OSBTreeRidBag.Change |
static class |
OSBTreeRidBag.ChangeSerializationHelper |
| Constructor and Description |
|---|
OSBTreeRidBag() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(OIdentifiable identifiable) |
void |
addAll(Collection<OIdentifiable> values) |
void |
addChangeListener(OMultiValueChangeListener<OIdentifiable,OIdentifiable> changeListener)
Add change listener.
|
void |
clearChanges() |
void |
confirmDelete() |
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.
|
void |
debugPrint(PrintStream writer) |
int |
deserialize(byte[] stream,
int offset) |
boolean |
detach()
Detaches the object.
|
void |
fireCollectionChangedEvent(OMultiValueChangeEvent<OIdentifiable,OIdentifiable> event) |
List<OMultiValueChangeListener<OIdentifiable,OIdentifiable>> |
getChangeListeners() |
OBonsaiCollectionPointer |
getCollectionPointer() |
Class<?> |
getGenericClass() |
ORecord |
getOwner() |
int |
getSerializedSize() |
int |
getSerializedSize(byte[] stream,
int offset) |
boolean |
isAutoConvertToRecord() |
boolean |
isEmpty() |
Iterator<OIdentifiable> |
iterator() |
void |
mergeChanges(OSBTreeRidBag treeRidBag) |
Iterator<OIdentifiable> |
rawIterator() |
void |
remove(OIdentifiable identifiable) |
void |
removeRecordChangeListener(OMultiValueChangeListener<OIdentifiable,OIdentifiable> changeListener)
Remove change listener.
|
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) |
void |
setCollectionPointer(OBonsaiCollectionPointer collectionPointer) |
void |
setOwner(ORecord owner) |
int |
size() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic ORecord getOwner()
getOwner in interface ORidBagDelegatepublic void setOwner(ORecord owner)
setOwner in interface ORidBagDelegatepublic Iterator<OIdentifiable> iterator()
iterator in interface Iterable<OIdentifiable>public Iterator<OIdentifiable> rawIterator()
rawIterator in interface ORecordLazyMultiValuepublic void convertLinks2Records()
ORecordLazyMultiValueOAutoConvertToRecord.setAutoConvertToRecord(boolean)convertLinks2Records in interface ORecordLazyMultiValuepublic boolean convertRecords2Links()
ORecordLazyMultiValueconvertRecords2Links in interface ORecordLazyMultiValuepublic void mergeChanges(OSBTreeRidBag treeRidBag)
public boolean isAutoConvertToRecord()
isAutoConvertToRecord in interface OAutoConvertToRecordpublic void setAutoConvertToRecord(boolean convertToRecord)
setAutoConvertToRecord in interface OAutoConvertToRecordpublic boolean detach()
ODetachabledetach in interface ODetachablepublic void addAll(Collection<OIdentifiable> values)
addAll in interface ORidBagDelegatepublic void add(OIdentifiable identifiable)
add in interface ORidBagDelegatepublic void remove(OIdentifiable identifiable)
remove in interface ORidBagDelegatepublic boolean contains(OIdentifiable identifiable)
ORidBagDelegatecontains in interface ORidBagDelegateidentifiable - Object to check.public String toString()
toString in interface ORidBagDelegatetoString in class Objectpublic boolean isEmpty()
isEmpty in interface ORidBagDelegatepublic void addChangeListener(OMultiValueChangeListener<OIdentifiable,OIdentifiable> changeListener)
OTrackedMultiValueaddChangeListener in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>changeListener - Change listener instance.public void removeRecordChangeListener(OMultiValueChangeListener<OIdentifiable,OIdentifiable> changeListener)
OTrackedMultiValueremoveRecordChangeListener in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>changeListener - Change listener instance.public Class<?> getGenericClass()
getGenericClass in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>public 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)
ORidBagDelegateserialize in interface ORidBagDelegatestream - to write contentoffset - in stream where start to write contentownerUuid - id of delegate ownerpublic void clearChanges()
public void requestDelete()
requestDelete in interface ORidBagDelegatepublic void confirmDelete()
public int deserialize(byte[] stream,
int offset)
deserialize in interface ORidBagDelegatepublic OBonsaiCollectionPointer getCollectionPointer()
public void setCollectionPointer(OBonsaiCollectionPointer collectionPointer)
public List<OMultiValueChangeListener<OIdentifiable,OIdentifiable>> getChangeListeners()
getChangeListeners in interface ORidBagDelegatepublic void fireCollectionChangedEvent(OMultiValueChangeEvent<OIdentifiable,OIdentifiable> event)
fireCollectionChangedEvent in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>public void debugPrint(PrintStream writer) throws IOException
IOExceptionpublic void replace(OMultiValueChangeEvent<Object,Object> event, Object newValue)
replace in interface OTrackedMultiValue<OIdentifiable,OIdentifiable>Copyright © 2009–2025 OrientDB. All rights reserved.