psdi.app.location

Class FldLocHierarchyLocation

    • Constructor Detail

      • FldLocHierarchyLocation

        public FldLocHierarchyLocation(MboValue mbv)
                                throws MXException
        Construct and attatch to the specified mbo value, 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 location(the child) entered is OK; It is assumed in the add() of LocHierarcy that the value of "location" of the owning Location object is the "parent" of this locHierarchy. Validation will fail if: 1. The location entered has the same value as the parent. 2. If the location/parent/systemid already exists - we do not want to have a unique constraint violation. 3. If this is a hierarchical system and the location already exists in the system: 3a. if this happens to be the primary system, definitely an error, because a primary system can not be made networked. 3b. if this is not a primary system and it is not wanted to be made network. - Currently we just throw exception. Centura does have the YES/NO selection as to making the system network or not.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException