public static String bindNameValueToString(final Map<String, String> bindValueMap, int limit) {
        if (MapUtils.isEmpty(bindValueMap)) {
            return "";
        }
        final int maxParameterIndex = bindValueMap.size();
        if (maxParameterIndex <= 0) {
            return "";
        }
        int parameterIndex = 0;
        final String[] temp = new String[maxParameterIndex];
        for (Map.Entry<String, String> entry : bindValueMap.entrySet()) {
            final String value = entry.getKey() + "=" + entry.getValue();
            temp[parameterIndex++] = value;
        }
        return bindValueToString(temp, limit);
    }
duplicate : com.navercorp.pinpoint.profiler.modifier.db.interceptor.BindValueUtils

@author emeroad
agent-module/profiler/src/main/java/com/navercorp/pinpoint/profiler/jdbc/BindValueUtils.java