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

cn.cucc.bean.Update Maven / Gradle / Ivy

There is a newer version: 0.4.3
Show newest version
package cn.cucc.bean;

import java.util.HashMap;
import java.util.Map;

import cn.cucc.reflection.ReflectionUtil;
import cn.cucc.reflection.SerializableFunction;

public class Update {

	Map sets;

	public Update() {
		sets = new HashMap();
	}

	public Update set(String key, Object value) {
		sets.put(key, value);
		return this;
	}

	public  Update set(SerializableFunction property, Object value) {
		sets.put(ReflectionUtil.getFieldName(property), value);
		return this;
	}

	public Map getSets() {
		return sets;
	}

	public void setSets(Map sets) {
		this.sets = sets;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy