コード例 #1
0
 /**
  * Loads the descriptions associated with the daos
  *
  * @param aDAOUtils
  * @param aLocale
  */
 public void loadDescriptions(DAOUtils aDAOUtils, Locale aLocale) {
   aDAOUtils.loadObjects(
       NewUtil.equal((Integer) eyeWearDAO.getId(), Constants.ALL_OPTION_VAL) ? null : eyeWearDAO,
       NewUtil.equal((Integer) headWearDAO.getId(), Constants.ALL_OPTION_VAL) ? null : headWearDAO,
       NewUtil.equal((Integer) pantWearDAO.getId(), Constants.ALL_OPTION_VAL) ? null : pantWearDAO,
       NewUtil.equal((Integer) weatherConditionDAO.getId(), Constants.ALL_OPTION_VAL)
           ? null
           : weatherConditionDAO,
       NewUtil.equal((Integer) coursePlayed.getId(), Constants.ALL_OPTION_VAL)
           ? null
           : coursePlayed);
   strFactory = LabelStringFactory.getInstance(aLocale);
 }
コード例 #2
0
 /**
  * Getter
  *
  * @return
  */
 public final String getHeadWearTypeDescription() {
   return NewUtil.equal((Integer) headWearDAO.getId(), Constants.ALL_OPTION_VAL)
       ? strFactory.getString(Constants.ALL_OPTION_LBL_KEY)
       : headWearDAO.getDescription();
 }
コード例 #3
0
 /**
  * Setter
  *
  * @param aHeadWearTypeId
  */
 public final void setHeadWearTypeId(int aHeadWearTypeId) {
   headWearDAO.setId(aHeadWearTypeId);
 }
コード例 #4
0
 /**
  * Getter
  *
  * @return
  */
 public final int getHeadWearTypeId() {
   return (Integer) headWearDAO.getId();
 }