psdi.app.assetcatalog

Class MeasureUnit

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


    public class MeasureUnit
    extends Mbo
    implements MeasureUnitRemote
    MBO to represent MeasureUnit.

    See Assetcatalog Package description.

    This is an organization level object.

    The key attributes for this object are as follows: OrgId, MeasureunitId

    The attributes in this object are:

    Attribute NameDescription
    AbbreviationAbbreviation for this unit of measure. If this attribute contains a non-null value, it is used during asset description generation. If the value is null, then the generation process will use the entire measure unit identifier in the description.
    DescriptionDescription of this unit of measure.
    MeasureUnitIdIdentifier for this unit of measure. One of the two key attributes for this object.
    OrgIdIdentifier of the organization for this MeasureUnit. One of the two key attributes for this object.
    • Constructor Detail

      • MeasureUnit

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

        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Creates a MeasureUnit object for a ClassSpec object. When ClassSpec object allows a creation of MeasureUnit object for it's measureUnitId column, a MeasureUnit has the ClassSpec as owner.

        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        ClassSpec.save()
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Determines if the object can be deleted. The object cannot be deleted if it is referenced by an AssetAttribute, ClassSpec, AssetSpec, ItemSpec, LocationSpec or Conversion.

        Overrides:
        canDelete in class Mbo
        Throws:
        MXApplicationException - measureunitnodelete
        GROUPKEYREASON
        assetcatalogmeasureunitnodeleteif the asset exists on an AssetAttribute, AssetSpec, Assetmeter, ClassSpec, Conversion, Inventory, Invvendor, Item, ItemSpec, Locationmeter, Locmeterreading, LocationSpec, Meter, Quotationline, Reorderpad, Rfqline, Wpitem, Contractline, Invoiceline, Mrline, Poline, or Prline .
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        07-22104:Check before save()
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • checkDuplicate

        public void checkDuplicate()
                            throws MXException,
                                   java.rmi.RemoteException
        07-22104: check if duplicate values are entered
        Throws:
        MXException
        java.rmi.RemoteException