psdi.app.craft

Class Craft

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


    public class Craft
    extends Mbo
    implements CraftRemote
    Mbo object to represent a new Craft MBO. Allows a user to create a Craft record that provide a detailed information about of standard rates, skill levels and Premium Pay cods associated with Crafts. The Standard Rates can be defined based on Vendor and Labor Contracts for Crafts, Crafts and Skill Levels and Premium Pay Codes. These Standard Rates will be used as default Rates for Labor associated with these Craft, Skills, Companies and Contracts. This is an Organization level object.

    The key attributes for this object are Craft and OrgId.

    The attributes in this object are as follows:

    Attribute Description

    AttributeDescription
    CraftCraft
    DescriptionCraft Description
    Description_LongDescriptionLong Description Field
    OrgidOrganization
    StandardRateA Non-Persistent Column to represent to Standard Rate for this Craft
    • Constructor Detail

      • Craft

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

      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Craft cannot be deleted if it is referenced by any rows in the CraftSkill, CraftRate.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Delete Craft and associated skilllevels and rates
        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
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • getCraftRate

        public double getCraftRate(java.lang.String skilllevel,
                                   java.lang.String vendor,
                                   java.lang.String contractnum)
                            throws MXException,
                                   java.rmi.RemoteException
        Return the StandardRate from CraftRate for the given the combination of craft, skilllevel, vendor, contract and revisionnum
        Specified by:
        getCraftRate in interface CraftRemote
        Returns:
        double
        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
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Undelete Craft and associated skilllevels and rates IV80199 - associated records were not undeleted if an error occured
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException