/** * Get array of CompanyDO objects that refer to the DO held by this BDO. * * @return array of CompanyDO objects. * @exception DataObjectException If the object is not found in the database. */ public jobmatch.data.CompanyDO[] getCompanyDOArray() throws DataObjectException, QueryException { jobmatch.data.CompanyDO[] ret = null; try { jobmatch.data.CompanyQuery q = new jobmatch.data.CompanyQuery(); q.setQueryIndustry(DO); ret = q.getDOArray(); } catch (NonUniqueQueryException e) { throw new DataObjectException("INTERNAL ERROR: unexpected NonUniqueQueryException"); } finally { if (null == ret) ret = new jobmatch.data.CompanyDO[0]; } return ret; }