psdi.app.company

Class FldCompanyContact

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldCompanyContact
    extends MAXTableDomain
    Companies.contact validation class: Checks that the entry is a valid company contact. Gets the list of all company contacts from the compcontact table to be used by the UI to display in the lookup. NOTE: The application should catch the exception when the user tries to add a brand new company with a contact field not null, and then upon user's decision if she wants to add this contact into the compcontact table, get the mboset from the company's mbo, and add the new company and contact into compcontact. For now a contact is added to compcontact if the unique combination of company and contact is not there.
    • Constructor Detail

      • FldCompanyContact

        public FldCompanyContact(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
        Validate the contact except when the company is being added by a company master or the contact value is changed to null. Validates using the "CONTACT" relationship to check contacts in both database and memory.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException