public static String createSignature(String methodName, Class<?>[] paramTypes) { StringBuilder buf = new StringBuilder(); buf.append(methodName); buf.append("("); for (Class<?> paramType : paramTypes) { if (paramType.isArray()) { buf.append(paramType.getComponentType().getName()); buf.append("[]"); } else { buf.append(paramType.getName()); } buf.append(", "); } if (buf.length() > 2) { buf.setLength(buf.length() - 2); } buf.append(")"); return buf.toString(); }
public void cutBackSql(int length) { rawSql.setLength(rawSql.length() - length); formattedSql.setLength(formattedSql.length() - length); }