Package net.baguajie.constants

Examples of net.baguajie.constants.Gender


      city = "";
    }
    if(StringUtils.hasText(gender)){
      gender = gender.toUpperCase();
      try{
        Gender g = Gender.valueOf(gender);
        gender = g.name();
      }catch(RuntimeException re){
        logger.error(re.getMessage());
      }
    }
    Collection<PinUserVo> pins = new ArrayList<PinUserVo>();
View Full Code Here


    filter.setTypeLabel("性别");
    filter.setValue("");
    filter.setLabel("无所谓");
    if (StringUtils.hasText(gender)) {
      try {
        Gender g = Gender.valueOf(gender.toUpperCase());
        filter.setLabel(DomainObjectUtil.getGender(g));
        filter.setValue(gender);
      } catch (RuntimeException re) {

      }
View Full Code Here

      return new AjaxResult(AjaxResultCode.INVALID,
          BindingErrors.from(result));
    }
    signInUser.setName(formBean.getName());
    signInUser.setCity(formBean.getCity());
    Gender gender = null;
    try {
      gender = Gender.valueOf(formBean.getGender());
    } catch (IllegalArgumentException iae) {
      logger.warn("Get illegal gender \"" + formBean.getGender()
          + "\" for user" + signInUser.getName());
View Full Code Here

TOP

Related Classes of net.baguajie.constants.Gender

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.