public class ConstraintNameGenerator extends java.lang.Object implements NameGenerator
NameGenerator implementation for table-specific
constraints. Conforms to the maximum column name length for the
type of database in use.CONV_METHOD_JAVAFIELDNAME, CONV_METHOD_JAVANAME, CONV_METHOD_NOCHANGE, CONV_METHOD_UNDERSCORE, CONV_METHOD_UNDERSCORE_OMIT_SCHEMA, SCHEMA_SEPARATOR_CHAR, STD_SEPARATOR_CHAR| 构造器和说明 |
|---|
ConstraintNameGenerator() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
generateName(java.util.List inputs)
First element of
inputs should be of type Database, second
should be a table name, third is the type identifier (spared if
trimming is necessary due to database type length constraints),
and the fourth is a Integer indicating the number
of this contraint. |
java.lang.String |
generateName(java.util.List inputs,
boolean IGNORE_FIRST_TOKEN)
Given a list of
String objects, implements an
algorithm which produces a name. |
public java.lang.String generateName(java.util.List inputs)
throws EngineException
inputs should be of type Database, second
should be a table name, third is the type identifier (spared if
trimming is necessary due to database type length constraints),
and the fourth is a Integer indicating the number
of this contraint.generateName 在接口中 NameGeneratorinputs - Inputs used to generate a name.EngineException - if the name could not be generatedNameGeneratorpublic java.lang.String generateName(java.util.List inputs,
boolean IGNORE_FIRST_TOKEN)
throws EngineException
NameGeneratorString objects, implements an
algorithm which produces a name.generateName 在接口中 NameGeneratorinputs - Inputs used to generate a name.IGNORE_FIRST_TOKEN - true ignore,false noEngineException - if the name could not be generated