psdi.mbo

Class MaxLookupMapCache

  • java.lang.Object
    • psdi.mbo.MaxLookupMapCache
  • All Implemented Interfaces:
    MaximoCache, FixedLoggerNames, FixedLoggers


    public class MaxLookupMapCache
    extends java.lang.Object
    implements MaximoCache, FixedLoggers
    SystemService maintains a cache of lookup foreign key mapping. The cache is populated based on MAXLOOKUPMAP table. When a record is fetched, it will be stored in the cache.
    • Method Detail

      • get

        public java.lang.Object[] get(java.lang.String target,
                                      java.lang.String source,
                                      java.lang.String attr)
      • get

        public java.lang.Object[] get(java.lang.String target,
                                      java.lang.String source,
                                      java.lang.String attr,
                                      boolean lookExtendingObject)
      • getExtendingObject

        public java.lang.String getExtendingObject(java.lang.String objName)
      • init

        public void init()
                  throws MXException
        Initialize the cache object. This will be called by the app server on startup.
        Specified by:
        init in interface MaximoCache
        Throws:
        MXException
      • reload

        public void reload()
                    throws MXException
        Reloads the cache object. This will be called by the app server whenever the cache needs to be refreshed.
        Specified by:
        reload in interface MaximoCache
        Throws:
        MXException
      • reload

        public void reload(java.lang.String target,
                           java.lang.String source,
                           java.lang.String attr)
                    throws MXException
        Throws:
        MXException
      • getName

        public java.lang.String getName()
        Returns the name of the cache object. Should be unique within the app server. This name is used to uniquely identify the cache object among all cached object for both accessing the cache object as well as refreshing the cache object. Ex. MaximoDD returns "MAXIMODD"
        Specified by:
        getName in interface MaximoCache
        Returns:
      • reload

        public void reload(java.lang.String key)
                    throws MXException
        Description copied from interface: MaximoCache
        Initialize a specific component of the cache identified by the key. E.g. In Maxvars, a specific maxvar can be reinitiliazed from the database. Don't call this method directly. Instead call MXServer.reloadCache(String, String, boolean).
        Specified by:
        reload in interface MaximoCache
        Throws:
        MXException
      • getLookupKeyMap

        public java.lang.Object[] getLookupKeyMap(java.lang.String target,
                                                  java.lang.String source,
                                                  java.lang.String attr)
        Get the lookup key map. If the map is not defined in maxlookupmap, null will be returned.
        Parameters:
        targetMbo -
        attr -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • setLookupKeyMap

        public void setLookupKeyMap(java.lang.String target,
                                    java.lang.String source,
                                    java.lang.String attr,
                                    java.lang.Object[] map)