psdi.app.safety

Class SPRelatedAsset

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


    public class SPRelatedAsset
    extends Mbo
    implements SPRelatedAssetRemote
    Mbo object to represent SPRelatedAsset. Relates SPWorkAsset and SafetyLexicon.

    See Safety Package description.

    This object includes non-persistent attributes.

    This is a site level object.

    The key attributes for this object are SiteID and SPRelatedAssetID.

    The attributes in this object are as follows:

    Attribute NameDescription
    AssetNumAsset number of work asset. Foreign key to SPWorkAsset (workasset) and Asset. Either AssetNum or Location may be specified (not both).
    LocationLocation of work asset. Foreign key to SPWorkAsset (worklocation) and Location. Either AssetNum or Location may be specified (not both).
    OrgIDThe organization for this site, stored on this table for ease of access. This equals the value for OrgID specified on the Site table.
    RelAssetDescriptionNon-persistent attribute. This equals the description of the related asset or location.
    RelatedAssetRelated asset number. Foreign key to SafetyLexicon and Asset.
    RelatedLocationRelated location. Foreign key to SafetyLexicon and Location.
    SiteIDThe site to which this record pertains. Foreign key to Site.
    SPRelatedAssetIDUnique identifier for this object, within site.
    WONumNon-persistent attribute. If this set is owned by Workorder, this is the WONum. This is used ONLY to support the relationships used in the Wotrack "select hazards" dialog.
    • Constructor Detail

      • SPRelatedAsset

        public SPRelatedAsset(MboSet ms)
                       throws MXException,
                              java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a mbo, defaulting the attributes shown below.
        Attribute NameAttribute Value
        AssetNumIf the owner is Asset, equals the owner's AssetNum.
        LocationIf the owner is Locations, equals the owner's Location.
        SPRelatedAssetIDgenerateUniqueID
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException