com.inkubator.hrm.web.search.CompetencyUnitSearchParameter.java Source code

Java tutorial

Introduction

Here is the source code for com.inkubator.hrm.web.search.CompetencyUnitSearchParameter.java

Source

/*
 * 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 org.apache.commons.lang.StringUtils;

import com.inkubator.webcore.util.SearchParameter;

/**
 *
 * @author rizkykojek
 */
public class CompetencyUnitSearchParameter extends SearchParameter {

    private String name;
    private String competencyGroupName;
    private String competencyTypeName;

    public String getName() {
        if (StringUtils.equalsIgnoreCase(getKeyParam(), "name")) {
            name = getParameter();
        } else {
            name = null;
        }
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCompetencyGroupName() {
        if (StringUtils.equalsIgnoreCase(getKeyParam(), "competencyGroupName")) {
            competencyGroupName = getParameter();
        } else {
            competencyGroupName = null;
        }
        return competencyGroupName;
    }

    public void setCompetencyGroupName(String competencyGroupName) {
        this.competencyGroupName = competencyGroupName;
    }

    public String getCompetencyTypeName() {
        if (StringUtils.equalsIgnoreCase(getKeyParam(), "competencyTypeName")) {
            competencyTypeName = getParameter();
        } else {
            competencyTypeName = null;
        }
        return competencyTypeName;
    }

    public void setCompetencyTypeName(String competencyTypeName) {
        this.competencyTypeName = competencyTypeName;
    }

}