Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.inkubator.hrm.web.search; import com.inkubator.webcore.util.SearchParameter; import org.apache.commons.lang3.StringUtils; /** * * @author EKA */ public class FamilyRelationSearchParameter extends SearchParameter { private String relasiName; private String code; public String getRelasiName() { if (StringUtils.equalsIgnoreCase(getKeyParam(), "relasiName")) { relasiName = getParameter(); } else { relasiName = null; } return relasiName; } public void setRelasiName(String relasiName) { this.relasiName = relasiName; } public String getCode() { if (StringUtils.equalsIgnoreCase(getKeyParam(), "code")) { code = getParameter(); } else { code = null; } return code; } public void setCode(String code) { this.code = code; } }