br.com.jhonsapp.bootstrap.object.persistence.parameter.Parameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bootstrap-object Show documentation
Show all versions of bootstrap-object Show documentation
A complete architecture for creating and managing users.
package br.com.jhonsapp.bootstrap.object.persistence.parameter;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import br.com.jhonsapp.bootstrap.object.persistence.generic.AbstractGenericDAO;
/**
* This class represents a parameter in a query.
*
* @see AbstractGenericDAO
*
* @author Jhonathan Camacho
*
*/
public class Parameter {
private Map map = new HashMap();
public void put(String variable, Object value) {
if (!this.map.containsKey(variable)) {
this.map.put(variable, value);
}
}
public Object get(String variable) {
return this.map.get(variable);
}
public Set getKeySet() {
return map.keySet();
}
public static Parameter createParameter() {
return new Parameter();
}
}