psdi.app.contract

Class ContractTerm

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


    public class ContractTerm
    extends Mbo
    implements ContractTermRemote
    MBO to represent Contract Terms and Conditions. The ContractTERM object represents the terms and conditions for a Contract. These terms and conditions are to be defined at the organization and site level.

    The key attributes for this object are OrgId and ContractNum

    The attributes in this object are as follows:

    Attrirbute NameAttribute Description
    ContractNumContract Number
    SeqNumSequence order of the terms
    TermIdTerm or Condition to which the Terms apply.
    DescriptionDescription of the Term.
    LDKEY Long Description Key
    SiteIdSite Identifier
    OrgIdOrganization Identifier
    Description_longdescription Long Description for Term Description non persisten attribute
    • Constructor Detail

      • ContractTerm

        public ContractTerm(MboSet ms)
                     throws MXException,
                            java.rmi.RemoteException
        Construct the ContractTERM object.
        Parameters:
        ms -
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Initialized ContractTerm mbo. Set all CONTRACTTERM fields to readonly when fetched from database if the CANEDIT field is set to false
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        This is called when a new CONTRACTTERM object is added to the CONTRACT MboSet collection. The field defaults and field flags are set here.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Validating that either TERM or TERM Description is entered.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        This method 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.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
      • generateSeqNumID

        protected int generateSeqNumID()
                                throws MXException,
                                       java.rmi.RemoteException
        Generates a unique Seq ID with an interval.
        Throws:
        MXException
        java.rmi.RemoteException
      • propagateKeyValue

        public void propagateKeyValue(java.lang.String keyName,
                                      java.lang.String keyValue)
                               throws MXException,
                                      java.rmi.RemoteException
        Set value for CONTRACTNUM.
        Specified by:
        propagateKeyValue in interface MboRemote
        Overrides:
        propagateKeyValue in class Mbo
        Parameters:
        keyName - Should equal "CONTRACTNUM" or else nothing will be propagated.
        keyValue - The new value of CONTRACTNUM.
        Throws:
        MXException
        java.rmi.RemoteException