Class OObjectLazyList<TYPE>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<TYPE>
com.orientechnologies.orient.object.db.OObjectLazyList<TYPE>
- All Implemented Interfaces:
OLazyObjectListInterface<TYPE>,OObjectLazyMultivalueElement<List<TYPE>>,Serializable,Cloneable,Iterable<TYPE>,Collection<TYPE>,List<TYPE>,RandomAccess
public class OObjectLazyList<TYPE>
extends ArrayList<TYPE>
implements OLazyObjectListInterface<TYPE>, OObjectLazyMultivalueElement<List<TYPE>>, Serializable
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionOObjectLazyList(Object iSourceRecord, List<OIdentifiable> iRecordList, boolean orphanRemoval) OObjectLazyList(Object iSourceRecord, List<OIdentifiable> iRecordList, Collection<? extends TYPE> iSourceList, boolean orphanRemoval) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends TYPE> c) booleanaddAll(Collection<? extends TYPE> c) voidclear()booleanbooleancontainsAll(Collection<?> c) protected voidprotected voidconvertAndDetachAll(boolean nonProxiedInstance, Map<Object, Object> alreadyDetached, Map<Object, Object> lazyObjects) voiddetach()voiddetach(boolean nonProxiedInstance) voiddetachAll(boolean nonProxiedInstance, Map<Object, Object> alreadyDetached, Map<Object, Object> lazyObjects) get(int index) protected OObjectDatabaseTxprotected booleanindexLoaded(int iIndex) intbooleanbooleanbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) voidsetConvertToRecord(boolean convertToRecord) voidsetDirty()setFetchPlan(String fetchPlan) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) toString()Methods inherited from class java.util.ArrayList
clone, ensureCapacity, equals, forEach, hashCode, removeIf, removeRange, replaceAll, sort, trimToSizeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort
-
Constructor Details
-
OObjectLazyList
public OObjectLazyList(Object iSourceRecord, List<OIdentifiable> iRecordList, boolean orphanRemoval) -
OObjectLazyList
public OObjectLazyList(Object iSourceRecord, List<OIdentifiable> iRecordList, Collection<? extends TYPE> iSourceList, boolean orphanRemoval)
-
-
Method Details
-
iterator
-
spliterator
- Specified by:
spliteratorin interfaceCollection<TYPE>- Specified by:
spliteratorin interfaceIterable<TYPE>- Specified by:
spliteratorin interfaceList<TYPE>- Overrides:
spliteratorin classArrayList<TYPE>
-
contains
-
add
-
add
-
get
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<TYPE>- Overrides:
lastIndexOfin classArrayList<TYPE>
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
size
public int size() -
isEmpty
public boolean isEmpty() -
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<TYPE>- Specified by:
containsAllin interfaceList<TYPE>- Overrides:
containsAllin classAbstractCollection<TYPE>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
set
-
remove
-
listIterator
- Specified by:
listIteratorin interfaceList<TYPE>- Overrides:
listIteratorin classArrayList<TYPE>
-
listIterator
- Specified by:
listIteratorin interfaceList<TYPE>- Overrides:
listIteratorin classArrayList<TYPE>
-
subList
-
getFetchPlan
-
setFetchPlan
-
isConvertToRecord
public boolean isConvertToRecord() -
setConvertToRecord
public void setConvertToRecord(boolean convertToRecord) - Specified by:
setConvertToRecordin interfaceOLazyObjectListInterface<TYPE>
-
isConverted
public boolean isConverted()- Specified by:
isConvertedin interfaceOLazyObjectListInterface<TYPE>
-
detach
public void detach() -
detach
public void detach(boolean nonProxiedInstance) - Specified by:
detachin interfaceOObjectLazyMultivalueElement<TYPE>
-
convertAll
protected void convertAll() -
setDirty
public void setDirty() -
getNonOrientInstance
- Specified by:
getNonOrientInstancein interfaceOObjectLazyMultivalueElement<TYPE>
-
getUnderlying
- Specified by:
getUnderlyingin interfaceOObjectLazyMultivalueElement<TYPE>
-
detachAll
public void detachAll(boolean nonProxiedInstance, Map<Object, Object> alreadyDetached, Map<Object, Object> lazyObjects) - Specified by:
detachAllin interfaceOObjectLazyMultivalueElement<TYPE>
-
convertAndDetachAll
-
getDatabase
-
indexLoaded
protected boolean indexLoaded(int iIndex) -
toString
- Overrides:
toStringin classAbstractCollection<TYPE>
-