package com.changhong.autoform.entity.sql.create; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import com.changhong.autoform.entity.sql.Sql; public class Create extends Sql{ public Create(String tableName, Map fields) { super(tableName, fields); } public String getSql() { StringBuilder sql = new StringBuilder(); Set> entrySet = getFields().entrySet(); for (Entry entry : entrySet) { if("DATAROWNUM".equals(entry.getKey())){ continue; } sql.append(entry.getKey() ).append(" "+entry.getValue()).append("null"); sql.append(','); } return sql.toString(); } @Override public Object[] getParams() { Object[] arr = new Object[]{}; return arr; } }