Class MapKeyLookupResult
- java.lang.Object
-
- org.eclipse.persistence.sdo.helper.MapKeyLookupResult
-
public class MapKeyLookupResult extends Object
Class for wrapping cache key lookup results. The result of a key lookup will be an application name and class loader, or a class loader. Note that all instances of this class are expected to have a loader set.
-
-
Constructor Summary
Constructors Constructor Description MapKeyLookupResult(ClassLoader classLoader)
This constructor should be used when caching on class loader.MapKeyLookupResult(String applicationName, ClassLoader classLoader)
This constructor should be used when caching on application name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getApplicationName()
Return the applicationName value.ClassLoader
getLoader()
Return the loader value.
-
-
-
Constructor Detail
-
MapKeyLookupResult
public MapKeyLookupResult(ClassLoader classLoader)
This constructor should be used when caching on class loader.- Parameters:
classLoader
-
-
MapKeyLookupResult
public MapKeyLookupResult(String applicationName, ClassLoader classLoader)
This constructor should be used when caching on application name. The loader will be used to determine if a redeploy has occurred, i.e. same application name but different class loaders.- Parameters:
applicationName
-classLoader
-
-
-
Method Detail
-
getApplicationName
public String getApplicationName()
Return the applicationName value.- Returns:
-
getLoader
public ClassLoader getLoader()
Return the loader value.- Returns:
-
-