コード例 #1
0
 /**
  * Return successive BDOs from array built from ResultSet returned by query.
  *
  * @exception DataObjectException If a database access error occurs.
  * @exception NonUniqueQueryException If too many rows were found.
  */
 public SoftwareCandidateBDO getNextBDO() throws DataObjectException, NonUniqueQueryException {
   SoftwareCandidateDO DO = getNextDO();
   if (null == DO) return null;
   return SoftwareCandidateBDO.createExisting(DO);
 }
コード例 #2
0
 /**
  * Return array of BDOs constructed from ResultSet returned by query.
  *
  * @exception DataObjectException If a database access error occurs.
  * @exception NonUniqueQueryException If too many rows were found.
  */
 public SoftwareCandidateBDO[] getBDOArray() throws DataObjectException, NonUniqueQueryException {
   if (needToRun) runQuery();
   SoftwareCandidateBDO[] BDOs = new SoftwareCandidateBDO[DOs.length];
   for (int i = 0; i < DOs.length; i++) BDOs[i] = SoftwareCandidateBDO.createExisting(DOs[i]);
   return BDOs;
 }