@@ -0,0 +1,992 @@
+package com.angkorteam.mbaas.server.bean;%0A%0Aimport com.google.common.collect.Lists;%0Aimport org.apache.commons.lang3.StringUtils;%0A%0Aimport java.util.List;%0A%0A/**%0A * Created by socheat on 11/25/16.%0A */%0Apublic class InsertBuilder %7B%0A%0A    private String table;%0A%0A    private List%3CString%3E values = Lists.newArrayList();%0A%0A    private List%3CString%3E fields = Lists.newArrayList();%0A%0A    private List%3CString%3E wheres = Lists.newArrayList();%0A%0A    public void addField(String name) %7B%0A        this.fields.add(name);%0A        this.values.add(%22:%22 + name);%0A    %7D%0A%0A    public void intoTable(String table) %7B%0A        this.table = table;%0A    %7D%0A%0A    public String toSQL() %7B%0A        StringBuffer buffer = new StringBuffer();%0A        buffer.append(%22INSERT INTO %22).append(this.table);%0A        buffer.append(%22(%22).append(StringUtils.join(this.fields, %22, %22)).append(%22)%22);%0A        buffer.append(%22 %22).append(%22VALUES%22).append(%22(%22).append(StringUtils.join(this.values, %22, %22)).append(%22)%22);%0A        return buffer.toString();%0A    %7D%0A%0A%7D%0A

add insert builder