package com.cym.bean; import java.util.HashMap; import java.util.Map; import com.cym.reflection.ReflectionUtil; import com.cym.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; } }