static String generateName(Table table, List cols, String suffix) { StringBuffer buf = new StringBuffer();  buf.append(table.getName());  for (Iterator it = cols.iterator(); it.hasNext(); ) { Column col = (Column) it.next(); buf.append("_"); buf.append(col.getName()); }  String name = buf.toString(); buf = new StringBuffer(abbreviate(name, 22));  buf.append(suffix); try { MessageDigest digest = MessageDigest.getInstance("MD5"); byte[] bytes = digest.digest((name + suffix).getBytes()); char[] hash = new char[5]; for (int i = 0; i < 5; i++) { int intValue = (new Byte(bytes[i])).intValue(); if (intValue < 0) { intValue = intValue * (-1); } intValue = intValue % sourceBytes.length; hash[i] = sourceBytes[intValue]; } buf.append("_" + new String(hash)); } catch (GeneralSecurityException e) { throw new UncheckedWrapperException(e); } String result = buf.toString(); return result;
private String generateName() { return generateName(m_table, getSortedColumns(), getSuffix());
    static String generateName(Table table, List cols, String suffix) {        StringBuffer buf = new StringBuffer();        buf.append(table.getName());        for (Iterator it = cols.iterator(); it.hasNext(); ) {            Column col = (Column) it.next();            buf.append("_");            buf.append(col.getName());        }        String name = buf.toString();        buf = new StringBuffer(abbreviate(name, 22));        buf.append(suffix);        try {            MessageDigest digest = MessageDigest.getInstance("MD5");            byte[] bytes = digest.digest((name + suffix).getBytes());            char[] hash = new char[5];            for (int i = 0; i < 5; i++) {                int intValue = (new Byte(bytes[i])).intValue();                if (intValue < 0) {                    intValue = intValue * (-1);                }                intValue = intValue % sourceBytes.length;                hash[i] = sourceBytes[intValue];            }            buf.append("_" + new String(hash));        } catch (GeneralSecurityException e) {            throw new UncheckedWrapperException(e);        }        String result = buf.toString();        return result;    }