org.codehaus.modello.generator.database.type
Class Mapping
java.lang.Object
org.codehaus.modello.generator.database.type.Mapping
public class Mapping
extends java.lang.Object
This class describes a mapping between a standard JDBC type and the
provider specific implementation of that type.
static String | SIZE_FORMAT - Format indicating to use the column type's size, if it is > 1
|
static String | SIZE_SCALE_FORMAT - Format indicating to use the column type's size and scale
if they are non-zero
|
Mapping() - Construct a new
Mapping
|
Mapping(String name, String sqlName, String format)
|
SIZE_FORMAT
public static final String SIZE_FORMAT
Format indicating to use the column type's size, if it is > 1
SIZE_SCALE_FORMAT
public static final String SIZE_SCALE_FORMAT
Format indicating to use the column type's size and scale
if they are non-zero
Mapping
public Mapping()
Construct a new Mapping
Mapping
public Mapping(String name,
String sqlName,
String format)
getFormat
public String getFormat()
getName
public String getName()
getSQLName
public String getSQLName()
getSQLType
public String getSQLType(Column column)
setFormat
public void setFormat(String format)
setName
public void setName(String name)
setSQLName
public void setSQLName(String name)
toString
public String toString()