psdi.app.company

Class FldContactCompany

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldContactCompany
    extends MAXTableDomain
    CompContact.company validation class: Check that the entry is a valid company contact. The company field in CompContact needs to exist in the Companies table. But, when it is called from Company Mbo object, the validation will be turned off, because the company might not exist yet.

    The application should allow users to add a new company in the compcontact only they are adding a new company into companies table. Otherwise, the compcontact is not able to accept a brand new company entry.

    • Constructor Detail

      • FldContactCompany

        public FldContactCompany(MboValue mbv)
                          throws MXException
        Construct and attach to the MboValue.
        Parameters:
        mbv -
        Throws:
        MXException
    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        Validation rules for company entered for the contact. CompContact needs to exist in the Companies table. But, when it is called from Company Mbo object, the validation will be turned off, because the company might not exist yet.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException