psdi.app.craft

Class PPCraftRate

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


    public class PPCraftRate
    extends Mbo
    implements PPCraftRateRemote
    Mbo object to represent a new PPCraftRate MBO. This is an Organization level object.

    The key attributes for this object are Craft, premiumpaycode and OrgID.

    The attributes in this object are as follows:

    Attribute Description

    AttributeDescription
    CRAFTCraft
    DisplayRateNon-Persistent column Display Rate
    DisplayRateTypeNon-Persistent column Display Rate Inherit from Premium Pay table?
    InheritInherit from Premium Pay table?
    LaborInheritNon-Persistent column to display whether a labor is inheriting a rate
    OrgidOrganization
    PremiumPayCodePremium Pay Code
    PPCraftRateIdUnique Identifier
    RateRate
    RateType Rate Type
    • Constructor Detail

      • PPCraftRate

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add new PPCraftRate.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.mbo.Mbo#add.
      • propagateKeyValue

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

        protected java.lang.String getDefaultRate()
                                           throws MXException,
                                                  java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getDefaultRateType

        protected java.lang.String getDefaultRateType()
                                               throws MXException,
                                                      java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • 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 HashTable. If this field does not need to be copied return true. The following are Craft field will be skipped without being copied to the newly duplicated Craft
        1. Craft
        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:
        MXException
        java.rmi.RemoteException