psdi.iface.mos

Class ObjectStructureCacheImpl

  • java.lang.Object
    • psdi.iface.mos.ObjectStructureCacheImpl
  • All Implemented Interfaces:
    MaximoCache


    public class ObjectStructureCacheImpl
    extends java.lang.Object
    implements MaximoCache
    Loads data from MAXINTOBJECT, MAXINTOBJDETAIL, MAXINTOBJCOLS and MAXINTOBJALIAS into memory
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String NAME 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Map getAllMos()
      Get all Maximo Object Structures in the memory
      java.util.Map getGQLObjects() 
      java.util.Map getIntObjAlias(MosDetailInfo mosDInfo)
      Get the map of alias values from maxintobjalias.
      MosInfo getMosInfo(java.lang.String intObjectName)
      Gets the info object for the specific MOS
      java.lang.String getName()
      Returns the name as registered in Maximo Cache
      void init()
      Initialization.
      void refresh()
      Refresh the Integration DD
      void reload()
      Refresh the integration DD in memory
      void reload(java.lang.String key)
      Re-load a particular key in Maximo Cache.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectStructureCacheImpl

        public ObjectStructureCacheImpl()
    • Method Detail

      • init

        public void init()
                  throws MXException
        Initialization. Sets up the Database connection to be used and loads the object structure DD into maximo cache
        Specified by:
        init in interface MaximoCache
        Throws:
        MXException - Maximo Exception
      • getIntObjAlias

        public java.util.Map getIntObjAlias(MosDetailInfo mosDInfo)
                                     throws MXException,
                                            java.rmi.RemoteException
        Get the map of alias values from maxintobjalias.
        Parameters:
        mosDInfo - the mosDetailInfo
        Returns:
        map of column, alias namevalue pair
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • getAllMos

        public java.util.Map getAllMos()
        Get all Maximo Object Structures in the memory
        Returns:
        intObjects Maximo Object Structures loaded in memory
      • getMosInfo

        public MosInfo getMosInfo(java.lang.String intObjectName)
        Gets the info object for the specific MOS
        Parameters:
        intObjectName - Maximo Object Structure name
        Returns:
        MosInfo object for the Maximo Onject Structure
      • getName

        public java.lang.String getName()
        Returns the name as registered in Maximo Cache
        Specified by:
        getName in interface MaximoCache
        Returns:
        INTOBJECT
      • reload

        public void reload(java.lang.String key)
                    throws MXException
        Re-load a particular key in Maximo Cache. Does not do anything (exists only for the sake of compilation)
        Specified by:
        reload in interface MaximoCache
        Parameters:
        key - key
        Throws:
        MXException - Maximo Exception
      • refresh

        public void refresh()
                     throws MXException
        Refresh the Integration DD
        Throws:
        MXException - Maximo Exception
      • getGQLObjects

        public java.util.Map getGQLObjects()