Class SqlUtil

java.lang.Object
cn.net.pap.common.jsonorm.util.SqlUtil

public class SqlUtil extends Object
数据结构转SQL语句
  • Constructor Details

    • SqlUtil

      public SqlUtil()
  • Method Details

    • geneInsertStatement

      public static String geneInsertStatement(String tableName, Map<String,Object> valueMap)
      生成 insert 语句
      Parameters:
      tableName -
      valueMap -
      Returns:
    • generateDeleteStatement

      public static String generateDeleteStatement(String tableName, String pk, Object pkValue)
      生成删除语句
      Parameters:
      tableName -
      Returns:
    • generateSelectStatement

      public static String generateSelectStatement(String tableName, List<String> fieldNameList, Map<String,Object> valueMap)
      生成查询语句
      Parameters:
      tableName -
      Returns: