com.solarmetric.kodo.impl.jdbc.schema
Class MD5NameGenerator
java.lang.Object
|
+--com.solarmetric.kodo.impl.jdbc.schema.MD5NameGenerator
- All Implemented Interfaces:
- NameGenerator
- public class MD5NameGenerator
- extends Object
- implements NameGenerator
An implementation of NameGenerator that generates
names based on the MD5 sum of the specified target name. This is
useful for, for example, index names, which often run into
name truncation issues due to column/table name limitations of
the database.
- Since:
- 2.4
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MD5NameGenerator
public MD5NameGenerator()
getGeneratedName
public String getGeneratedName(String name)
- Obtain the generated name for the specified name.
- Specified by:
getGeneratedName in interface NameGenerator
- Parameters:
name - the name to translate- Returns:
- the generated name
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.