psdi.app.location

Class FldLocHierarchyNewParent

    • Constructor Detail

      • FldLocHierarchyNewParent

        public FldLocHierarchyNewParent(MboValue mbv)
                                 throws MXException
        LocHierarchy can take only OPERATING type of locations
        Throws:
        MXException
    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        Further validate if the parent entered is OK; It is assumed in the add() of LocHierarcy that the value of "location" of the owning Location object is the "location" of this locHierarchy. Validation will fail if: 1. If the parent entered is the same as the location (child). 2. Multiple parents are attempted when this system is hierarchical and a. this system is the primary system the primary system must be hierarchical- a DEFINITE error. b. this system is not the primary system: currently just throws exception, assuming it is not wanted to be made networked. But Centura does allow a selection of YES/NO.... 3. If the parent entered does not belong to any system. A location has to be in a hierarchy before it can be a parent. 4. If the parent entered is alreay a child, should not allow.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException