1、简单插入
int prepareQuery(String sql,HashMap<Integer,Object> params)
int prepareQuery(String sql,Object param1,Object param2,...)
2、简化插入
int fields("a,b,c").values(1,2,"k").prepareInsert();
int fields("a,b,c").values(1,2,"k").prepareReplace();
int fields("a,b,c").prepareInsert(HashMap<Integer,Object> params)
int fields("a,b,c").prepareInsert(Object param1,Object param2,Object param3,...)
int fields("a,b,c").prepareReplace(Object param1,Object param2,Object param3,...)
int prepareMapInsert(HashMap<String key,Object value> params)
int prepareReplace(HashMap<Integer,Object> params)
Member m=new Member();
HashMap<Integer,Object> params=new HashMap<Integer,Object>();
params.put(1,1);
m.fields("a").values("?").prepareInsert(params);
或
m.fields("a,name").values("?,?").prepareInsert(1,"zhou");