be.SIRAPRISE.client.jsba
Class GetterMethodCache

java.lang.Object
  extended by be.SIRAPRISE.client.jsba.GetterMethodCache

public final class GetterMethodCache
extends java.lang.Object

The JSBAGetterMethodCache caches the sets of getter methods that can be derived by the JSBA architecture from a given combination of relvar name and java class.

Author:
Erwin

Method Summary
 MyReadOnlyMap<java.lang.String,JSBAMethodInvoker> getGetterMethods(java.lang.Class<?> clazz, java.lang.String jsbaCanonicalRelvarName)
          Gets A map of getter methods that could be found in the given class for the given relvar name from the cache.
static GetterMethodCache getInstance()
          Gets the instance of the cache
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GetterMethodCache getInstance()
Gets the instance of the cache

Returns:
the instance of the cache

getGetterMethods

public MyReadOnlyMap<java.lang.String,JSBAMethodInvoker> getGetterMethods(java.lang.Class<?> clazz,
                                                                          java.lang.String jsbaCanonicalRelvarName)
Gets A map of getter methods that could be found in the given class for the given relvar name from the cache. If the given class/relvarname combination is not yet cached, determines the info and caches it prior to returning it.

Parameters:
clazz - A class implementing the JSBA DBObject interface that is to be inspected for the presence of JSBA-compliant getter methods for the given relvar name.
jsbaCanonicalRelvarName - A relvar name in JSBA canonical format (i.e. first token uppercase, all others lowercase), for which JSBA-compliant getter methods are to be searched in the given class.
Returns:
A map of getter methods that could be found in the given class for the given relvar name.