All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.jhonsapp.bootstrap.object.persistence.parameter.Parameter Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy