psdi.app.safety

Class HazardPrec

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


    public class HazardPrec
    extends Mbo
    implements HazardPrecRemote
    Mbo object to represent HazardPrec. Relates hazards and precautions.

    See Safety Package description.

    This object includes non-persistent attributes.

    This is a site level object.

    The key attributes for this object are SiteID, HazardID and PrecautionID.

    The attributes in this object are as follows:

    Attribute NameDescription
    HazardIDForeign key to Hazard.
    DescriptionNon-persistent attribute for the precaution description.
    OrgIDThe organization for this site, stored on this table for ease of access. This equals the value for OrgID specified on the Site table.
    PrecautionIDForeign key to Precaution.
    SiteIDThe site to which this record pertains. Foreign key to Site.
    • Constructor Detail

    • 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
        HazardIDIf owner is Hazard, equals the owner's HazardID. If owner is Precaution and precaution's owner is Hazard, equals that HazardID.
        DescriptionIf owner is Precaution, equals the owner's description.
        PrecautionIDIf owner is Precaution, equals the owner's PrecautionID.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException