|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.engine.database.model.ConstraintNameGenerator
public class ConstraintNameGenerator
A NameGenerator
implementation for table-specific
constraints. Conforms to the maximum column name length for the
type of database in use.
Field Summary | |
---|---|
private static org.apache.commons.logging.Log |
log
Logging class from commons.logging |
Fields inherited from interface org.apache.torque.engine.database.model.NameGenerator |
---|
CONV_METHOD_JAVANAME, CONV_METHOD_NOCHANGE, CONV_METHOD_UNDERSCORE, CONV_METHOD_UNDERSCORE_OMIT_SCHEMA, SCHEMA_SEPARATOR_CHAR, STD_SEPARATOR_CHAR |
Constructor Summary | |
---|---|
ConstraintNameGenerator()
|
Method Summary | |
---|---|
String |
generateName(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.commons.logging.Log log
Constructor Detail |
---|
public ConstraintNameGenerator()
Method Detail |
---|
public String generateName(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
in interface NameGenerator
inputs
- Inputs used to generate a name.
EngineException
- if the name could not be generatedNameGenerator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |