Package | Description |
---|---|
org.datanucleus |
This package provides classes that are typically externally called, whether that means by developers
or by other DataNucleus plugins.
|
org.datanucleus.cache |
This package provides classes implementing L1/L2 persistable object caching within DataNucleus.
|
org.datanucleus.state |
Provides classes relating to the life cycle state of a persistable object.
|
Modifier and Type | Method and Description |
---|---|
protected CachedPC |
ExecutionContextImpl.getL2CacheableObject(ObjectProvider op,
CachedPC currentCachedPC)
Convenience method to convert the object managed by the ObjectProvider into a form suitable for caching in an L2 cache.
|
Modifier and Type | Method and Description |
---|---|
protected CachedPC |
ExecutionContextImpl.getL2CacheableObject(ObjectProvider op,
CachedPC currentCachedPC)
Convenience method to convert the object managed by the ObjectProvider into a form suitable for caching in an L2 cache.
|
Modifier and Type | Field and Description |
---|---|
protected Map<Object,CachedPC> |
WeakLevel2Cache.pinnedCache
Pinned objects cache.
|
protected Map<CacheUniqueKey,CachedPC> |
WeakLevel2Cache.uniqueKeyCache
Unique Key cache.
|
protected Map<Object,CachedPC> |
WeakLevel2Cache.unpinnedCache
Unpinned objects cache.
|
Modifier and Type | Method and Description |
---|---|
protected CachedPC |
L2CachePopulateFieldManager.convertPersistableToCachedPC(Object pc)
Method to convert an embedded/serialised object to a CachedPC object for L2 caching.
|
CachedPC |
NullLevel2Cache.get(Object oid)
Accessor for an object from the cache
|
CachedPC |
WeakLevel2Cache.get(Object oid)
Accessor for an object from the cache.
|
CachedPC |
JavaxCacheLevel2Cache.get(Object oid)
Accessor for an object in the cache.
|
<T> CachedPC<T> |
Level2Cache.get(Object oid)
Accessor for an object from the cache.
|
CachedPC<T> |
CachedPC.getCopy() |
CachedPC |
WeakLevel2Cache.getUnique(CacheUniqueKey key) |
CachedPC |
JavaxCacheLevel2Cache.getUnique(CacheUniqueKey key) |
default CachedPC |
Level2Cache.getUnique(CacheUniqueKey key)
Method to retrieve the id represented by the specified unique key.
|
CachedPC |
NullLevel2Cache.put(Object oid,
CachedPC pc)
Method to put an object in the L2 cache
|
CachedPC |
WeakLevel2Cache.put(Object oid,
CachedPC pc)
Method to put an object in the cache.
|
CachedPC |
JavaxCacheLevel2Cache.put(Object oid,
CachedPC pc)
Method to add an object to the cache under its id
|
<T> CachedPC<T> |
Level2Cache.put(Object oid,
CachedPC<T> pc)
Method to put an object in the cache.
|
CachedPC |
WeakLevel2Cache.putUnique(CacheUniqueKey key,
CachedPC pc) |
CachedPC |
JavaxCacheLevel2Cache.putUnique(CacheUniqueKey key,
CachedPC pc) |
default CachedPC |
Level2Cache.putUnique(CacheUniqueKey key,
CachedPC pc)
Method to store a persistable object for this unique key.
|
Modifier and Type | Method and Description |
---|---|
Map<Object,CachedPC> |
WeakLevel2Cache.getAll(Collection oids) |
Map<Object,CachedPC> |
JavaxCacheLevel2Cache.getAll(Collection oids) |
default Map<Object,CachedPC> |
Level2Cache.getAll(Collection oids)
Accessor for a collection of objects from the cache.
|
Modifier and Type | Method and Description |
---|---|
CachedPC |
NullLevel2Cache.put(Object oid,
CachedPC pc)
Method to put an object in the L2 cache
|
CachedPC |
WeakLevel2Cache.put(Object oid,
CachedPC pc)
Method to put an object in the cache.
|
CachedPC |
JavaxCacheLevel2Cache.put(Object oid,
CachedPC pc)
Method to add an object to the cache under its id
|
<T> CachedPC<T> |
Level2Cache.put(Object oid,
CachedPC<T> pc)
Method to put an object in the cache.
|
CachedPC |
WeakLevel2Cache.putUnique(CacheUniqueKey key,
CachedPC pc) |
CachedPC |
JavaxCacheLevel2Cache.putUnique(CacheUniqueKey key,
CachedPC pc) |
default CachedPC |
Level2Cache.putUnique(CacheUniqueKey key,
CachedPC pc)
Method to store a persistable object for this unique key.
|
Modifier and Type | Method and Description |
---|---|
void |
WeakLevel2Cache.putAll(Map<Object,CachedPC> objs) |
void |
JavaxCacheLevel2Cache.putAll(Map<Object,CachedPC> objs) |
default void |
Level2Cache.putAll(Map<Object,CachedPC> objs)
Method to put several objects into the cache.
|
void |
WeakLevel2Cache.putUniqueAll(Map<CacheUniqueKey,CachedPC> objs) |
void |
JavaxCacheLevel2Cache.putUniqueAll(Map<CacheUniqueKey,CachedPC> objs) |
default void |
Level2Cache.putUniqueAll(Map<CacheUniqueKey,CachedPC> objs)
Method to put several objects into the cache.
|
Constructor and Description |
---|
L2CachePopulateFieldManager(ObjectProvider op,
CachedPC cachedpc) |
L2CacheRetrieveFieldManager(ObjectProvider op,
CachedPC cachedpc) |
Modifier and Type | Method and Description |
---|---|
void |
StateManagerImpl.initialiseForCachedPC(CachedPC<Persistable> cachedPC,
Object id)
Initialise the ObjectProvider, assigning the specified id to the object.
|
void |
ObjectProvider.initialiseForCachedPC(CachedPC<T> cachedPC,
Object id)
Initialise the ObjectProvider, assigning the specified id to the object.
|
<T> ObjectProvider<T> |
ObjectProviderFactoryImpl.newForCachedPC(ExecutionContext ec,
Object id,
CachedPC<T> cachedPC)
Constructor to create an ObjectProvider for an object taken from the L2 cache with the specified id.
|
<T> ObjectProvider<T> |
ObjectProviderFactory.newForCachedPC(ExecutionContext ec,
Object id,
CachedPC<T> cachedPC)
Constructor to create an ObjectProvider for an object taken from the L2 cache with the specified id.
|
Copyright © 2019. All rights reserved.