com.ibm.ism.script.autoscript

Class ScriptLaunchPointVars

  • java.lang.Object
    • psdi.mbo.Mbo
      • com.ibm.ism.script.autoscript.ScriptLaunchPointVars
  • All Implemented Interfaces:
    java.rmi.Remote, MboConstants, MboRemote, MaxRemoteProxy


    public class ScriptLaunchPointVars
    extends Mbo
    implements MboRemote
    MBO to represent ScriptLaunchPointVars. See the Script Launch Point description for details.

    The key attributes for this object is LAUNCHPOINTNAME and AUTOSCRIPT and VARNAME

    The attributes in this object are as follows:

    LAUNCHPOINTNAME Name for the launch point.
    OVERRIDDEN Indicates if the value for the variable has been overridden
    AUTOSCRIPTName of the script.
    VARNAME Name of the variable used within the launch point
    VARBINDINGVALUEOverridden value for the variable
    OVERRIDDEN Object Structure name
    LAUNCHPOINTVARSIDUnique Identifier for the ScriptLaunchPointVars record.

    • Field Detail

      • skipFieldCopy

        protected static java.util.Set skipFieldCopy
        This is a static HashSet that contains the names of the fields whose values need not be copied from the source Mbo to the target Mbo and is used only for duplication the ScriptLaunchPointVars Mbo. This HashSet is loaded in the loadSkipFieldCopyHashSet.
      • isHashSetLoaded

        protected static boolean isHashSetLoaded
        This is a protected boolean variable to check if the HashSet has already been loaded. The HashSet is loaded only once since it is static. The same hashSet can be used by all duplicate methods once it has been loaded
    • Constructor Detail

      • ScriptLaunchPointVars

        public ScriptLaunchPointVars(MboSet ms)
                              throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Default value for some of the fields of the new Launch Point Vars. The table below shows the default values for each of the attributes listed.
        launchpointnamevalue from owner(SCRIPTLAUNCHPOINT)
        AUTOSCRIPTvalue from owner(SCRIPTLAUNCHPOINT)
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • modify

        public void modify()
                    throws MXException,
                           java.rmi.RemoteException
        This is called whenever a change is made to the attributes of ScriptLaunchPointVars. When any field related to ScriptLaunchPointVars is changed, AutoScript objects changedate and changeby is updated.
        Overrides:
        modify in class Mbo
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Called when the mbo is saved to the database. Remove the Mbo's from the set which are not overridden.
        Overrides:
        save in class Mbo
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • loadSkipFieldCopyHashSet

        protected void loadSkipFieldCopyHashSet()
                                         throws MXException,
                                                java.rmi.RemoteException
        Loads the static HashSet with the names of the fields whose values need not be copied from the source Mbo to the target Mbo when a duplicate operation is performed. As an example the statusdate is one of the fields that need not be copied and the hashSet is loaded in the following way skipFieldCopy.add("STATUSDATE") The following is a list of fields that are not copied from the source script to the target script and these are the field names that are loaded into the HashSet.
        1. AUTOSCRIPT
        2. LAUNCHPOINTNAME
        3. VARNAME
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.skipCopyField(psdi.mbo.MboValueInfo)
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        Overrides the skipCopyField() in the Mbo. Since this method takes the MboValueInfo as its parameter just check to see if this field needs to be copied or skipped by using the data from the static HashSet. If this field does not need to be copied return true.
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        The - MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        True,if the field does not need to be copied.In all other cases return false
        Throws:
        java.rmi.RemoteException
        MXException