org.codehaus.modello.generator.database.type
public class TypeMapping extends Object
Version: 1.1 2003/02/05 08:08:37
Constructor Summary | |
---|---|
TypeMapping()
Construct a new TypeMapping | |
TypeMapping(Type type, Mapping mapping)
Construct a new TypeMapping |
Method Summary | |
---|---|
String | getFormat()
Returns the format of the type |
Mapping | getMapping()
Returns the JDBC mapping of the type |
short | getMaximumScale()
Returns the maximum scale of the type |
short | getMinimumScale()
Returns the minimum scale of the type |
String | getName()
Returns the JBDC name of the type |
long | getSize()
Returns the maximum size (length or precision) of the type |
String | getSQLName()
Returns the SQL type name |
String | getSQLType(Column column)
Returns the SQL type for a column
|
Type | getType()
Returns the SQL type |
void | setMapping(Mapping mapping)
Sets the JDBC mapping of the type |
void | setType(Type type)
Sets the SQL type |
String | toString()
Helper to return a stringified version of the object, for debug purposes |
TypeMapping
TypeMapping
Parameters: column the column
Returns: the SQL type of column