Class OObjectLazyMap<TYPE>
- All Implemented Interfaces:
OLazyObjectMapInterface<TYPE>,OObjectLazyMultivalueElement<Map<Object,,TYPE>> Serializable,Cloneable,Map<Object,Object>
public class OObjectLazyMap<TYPE>
extends HashMap<Object,Object>
implements Serializable, OObjectLazyMultivalueElement<Map<Object,TYPE>>, OLazyObjectMapInterface<TYPE>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionOObjectLazyMap(Object iSourceRecord, Map<Object, OIdentifiable> iRecordMap, boolean orphanRemoval) OObjectLazyMap(Object iSourceRecord, Map<Object, OIdentifiable> iRecordMap, Map<Object, Object> iSourceMap, boolean orphanRemoval) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleanbooleanprotected voidConverts all the itemsprotected 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) entrySet()protected OObjectDatabaseTxgetOrDefault(Object key, Object defaultValue) booleanbooleanbooleanisEmpty()keySet()voidvoidsetConvertToRecord(boolean convertToRecord) voidsetDirty()setFetchPlan(String fetchPlan) intsize()toString()values()Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, forEach, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from class java.util.AbstractMap
equals, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
OObjectLazyMap
public OObjectLazyMap(Object iSourceRecord, Map<Object, OIdentifiable> iRecordMap, boolean orphanRemoval) -
OObjectLazyMap
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<Object,Object> - Overrides:
containsKeyin classHashMap<Object,Object>
-
containsValue
- Specified by:
containsValuein interfaceMap<Object,Object> - Overrides:
containsValuein classHashMap<Object,Object>
-
put
-
remove
-
clear
public void clear() -
getFetchPlan
-
isConvertToRecord
public boolean isConvertToRecord() -
setConvertToRecord
public void setConvertToRecord(boolean convertToRecord) - Specified by:
setConvertToRecordin interfaceOLazyObjectMapInterface<TYPE>
-
isConverted
public boolean isConverted()- Specified by:
isConvertedin interfaceOLazyObjectMapInterface<TYPE>
-
setFetchPlan
-
toString
- Overrides:
toStringin classAbstractMap<Object,Object>
-
entrySet
-
get
-
getOrDefault
- Specified by:
getOrDefaultin interfaceMap<Object,Object> - Overrides:
getOrDefaultin classHashMap<Object,Object>
-
keySet
-
putAll
-
values
-
setDirty
public void setDirty() -
getUnderlying
- Specified by:
getUnderlyingin interfaceOObjectLazyMultivalueElement<TYPE>
-
detach
public void detach() -
detach
public void detach(boolean nonProxiedInstance) - Specified by:
detachin interfaceOObjectLazyMultivalueElement<TYPE>
-
detachAll
public void detachAll(boolean nonProxiedInstance, Map<Object, Object> alreadyDetached, Map<Object, Object> lazyObjects) - Specified by:
detachAllin interfaceOObjectLazyMultivalueElement<TYPE>
-
getNonOrientInstance
- Specified by:
getNonOrientInstancein interfaceOObjectLazyMultivalueElement<TYPE>
-
convertAll
protected void convertAll()Converts all the items -
convertAndDetachAll
-
getDatabase
-