psdi.app.kpi

Class KPITemplate

  • All Implemented Interfaces:
    java.rmi.Remote, MboConstants, MboRemote, MaxRemoteProxy


    public class KPITemplate
    extends Mbo
    implements MboRemote
    KPITemplate is a template for generating KPI records using variables The key attribute for this object is:

    The attributes in this object are as follows:

    • Field Detail

      • CREATEDDATE

        public static final java.lang.String CREATEDDATE
        Created Date
        MAX TYPE: DATETIME
        SAME AS: KPIMAIN.LASTUPDATED
        See Also:
        Constant Field Values
      • DESCRIPTION

        public static final java.lang.String DESCRIPTION
        Template Description
        MAX TYPE: ALN
        See Also:
        Constant Field Values
      • DESCRIPTION_LONGDESCRIPTION

        public static final java.lang.String DESCRIPTION_LONGDESCRIPTION
        Long Description for Description
        MAX TYPE: LONGALN
        See Also:
        Constant Field Values
      • FORMAT

        public static final java.lang.String FORMAT
        Indicates whether the KPI is decimal or percentage based.
        MAX TYPE: UPPER
        SAME AS: KPIMAIN.FORMAT
        See Also:
        Constant Field Values
      • HASLD

        public static final java.lang.String HASLD
        Boolean flag to indicate if there is any long description for this record
        MAX TYPE: YORN
        See Also:
        Constant Field Values
      • KPITEMPLATEID

        public static final java.lang.String KPITEMPLATEID
        Unique Id
        MAX TYPE: BIGINT
        See Also:
        Constant Field Values
      • KPITEMPLATENUM

        public static final java.lang.String KPITEMPLATENUM
        Template Id
        MAX TYPE: UPPER
        See Also:
        Constant Field Values
      • OWNER

        public static final java.lang.String OWNER
        The name of the person who created the KPI.
        MAX TYPE: UPPER
        SAME AS: PERSON.PERSONID
        See Also:
        Constant Field Values
      • QUERY

        public static final java.lang.String QUERY
        KPI Template Query
        MAX TYPE: ALN
        See Also:
        Constant Field Values
      • REVISEDBY

        public static final java.lang.String REVISEDBY
        Revised By
        MAX TYPE: UPPER
        SAME AS: PERSON.PERSONID
        See Also:
        Constant Field Values
      • REVISEDDATE

        public static final java.lang.String REVISEDDATE
        Last Updated Date
        MAX TYPE: DATETIME
        SAME AS: KPIMAIN.LASTUPDATED
        See Also:
        Constant Field Values
      • TRENDENABLED

        public static final java.lang.String TRENDENABLED
        Enable Trend Value
        MAX TYPE: YORN
        SAME AS: KPIMAIN.TRENDENABLED
        See Also:
        Constant Field Values
      • TRENDBATCHSIZE

        public static final java.lang.String TRENDBATCHSIZE
        Batch Size of Trend Value
        MAX TYPE: INTEGER
        SAME AS: KPIMAIN.TRENDBATCHSIZE
        See Also:
        Constant Field Values
      • RELATIONSHIP_VARIABLES

        public static final java.lang.String RELATIONSHIP_VARIABLES
        "KPITEMPLATEVARS"
        See Also:
        Constant Field Values
      • RELATIONSHIP_KPIS

        public static final java.lang.String RELATIONSHIP_KPIS
        "KPITEMPLATEMAINS"
        See Also:
        Constant Field Values
      • RELATIONSHIP_EXISTING_KPIS

        public static final java.lang.String RELATIONSHIP_EXISTING_KPIS
        "KPITEMPLATES"
        See Also:
        Constant Field Values
      • RELATIONSHIP_ALL_KPIS

        public static final java.lang.String RELATIONSHIP_ALL_KPIS
        "ALLKPIS"
        See Also:
        Constant Field Values
    • Constructor Detail

      • KPITemplate

        public KPITemplate(MboSet ms)
                    throws MXException,
                           java.rmi.RemoteException
        Constructs the KPITemplate object.

        Parameters:
        ms - MboSet
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Initialization routine. Set the fields to read/write mode conditionally
        Overrides:
        init in class Mbo
        Parameters:
        none -
        Throws:
        none
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Adds a new KPITemplate object. This is called when a new Mbo is added to the Mboset collection. It is called AFTER user defaults have been set from the data dictionary. Programmer should usually override this to set some defaults.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Parameters:
        none -
        Throws:
        MXException - , RemoteException
        java.rmi.RemoteException
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Saves a KPITemplate object.
        Overrides:
        save in class Mbo
        Parameters:
        none -
        Throws:
        none
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        override delete to delete this and records associated with KPITemplate
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request. For example: if the accessModifer is NOACCESSCHECK, then the check for the object's NODELETE flag and the call to the object's canDelete() method will not be performed. If the accessModifer is NONE, then all the access checks are performed before this object is marked delete.
        Throws:
        MXException - , RemoteException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Description copied from class: Mbo
        Unmark the Mbo for deletion. Can only be called after a delete() and before the save() has been performed. This method will also unmark associated Long Description and Translation Mbos.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • validateQuery

        public void validateQuery()
                           throws MXException,
                                  java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException