psdi.app.route

Class RouteStop

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


    public class RouteStop
    extends Mbo
    implements RouteStopRemote
    MBO object to represent Route Stop.
    See Route Package description for details.

    This is a site level object.

    The key attributes for this object are SiteId,Route and RouteStopID.

    The attributes in this object are as follows::

    Attribute NameDescription
    AssetDescriptionA non-persistent attribute that identifies the description of the asset or location, if they are not null.
    Assetdescription_longdescriptionA non-persistent attribute that identifies the long description of the asset or location, if they are not null.
    DescriptionDescription of the Route Stop.
    AssetnumIdentifier of the Asset at Route Stop.
    JpnumIdentifier of the JobPlan to be used by Asset or Location during work order generation for this Route Stop.
    LDKeyLong Description Key. This is a link to text stored in the LongDescription table.
    LocationIdentifier of the Location at Route Stop.
    OrgIdIdentifier of the organization for the Rotue Stop.
    RouteUnique indifier for the route.
    RouteStopIdUnique Identifier of a Route Stop record added to a Route.
    SiteIdIdentifier of the site for the Route Stop.
    StopSequenceIndentifier of the sequence of Asset or Location to stop at a Route.
    RTS1 through RTS5Extra Fields.

    • Constructor Detail

      • RouteStop

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new Route Stop object. Non null Field defaults are set.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Every route stop should be associated either with a location or asset. Both asset and location cannot be null. If the asset is a linear asset and there is a feature or asset feature on the row then make sure it has a valid assetfeatureid
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException - if both assetnum or location are null, then MXApplicationException("route","selectassetlocation")
        java.rmi.RemoteException
      • validateAssetLoc

        public void validateAssetLoc(boolean newAssetNum,
                                     boolean newLocation)
                              throws MXException,
                                     java.rmi.RemoteException
        Validates asset /location fields If asset entered -> location field set to null. If location entered ->asset field set to null
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        RouteStop.setAssetDescription()
      • getRouteStopId

        public int getRouteStopId()
                           throws MXException,
                                  java.rmi.RemoteException
        generates Routestopid which is autonumbered(incremented by 1) for a new route stop
        Returns:
        routestopid
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        This method overrides the skipCopyField() in the Mbo. This method takes the MboValueInfo as its parameter to see if this field needs to be copied or skipped.If this field does not need to be copied, it returns true. The following fields donot get copied from the source RouteStop to the target RouteStop.
        1. route
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - 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
        Description copied from class: Mbo
        Unmark the Mbo for deletion. Can only be called after a delete() and before the save() has been performed. This method will also unmark associated Long Description and Translation Mbos.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • setLinearAssetFieldsReadOnly

        public void setLinearAssetFieldsReadOnly(boolean readonlystate)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Set the linear asset fields as a group to ReadOnly or not.
        Throws:
        MXException
        java.rmi.RemoteException
      • clearLinearAssetFields

        public void clearLinearAssetFields()
                                    throws MXException,
                                           java.rmi.RemoteException
        Clear all the linear asset fields.
        Throws:
        MXException
        java.rmi.RemoteException
      • isChangeByUserWhenSetFromLookup

        public boolean isChangeByUserWhenSetFromLookup(java.lang.String lookupAttrName,
                                                       java.lang.String attributeName)
        Indicates whether the CHANGEDBY_USER flag should be set for attributes on this Mbo when their values are set (along with other key fields) via lookup.
        Overrides:
        isChangeByUserWhenSetFromLookup in class Mbo
        Parameters:
        lookupAttrName - the attribute whose lookup is being called.
        attributeName - the attribute that is not the lookup attribute.
        Returns:
      • clearFormName

        public void clearFormName()
                           throws MXException,
                                  java.rmi.RemoteException
        Set the value of "inspformname" equal to null.
        Throws:
        MXException
        java.rmi.RemoteException