org.codehaus.modello.generator.database.type

Class 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.
Version:
1.1 2003/02/05 08:08:37
Author:
Tim Anderson

Field Summary

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

Constructor Summary

Mapping()
Construct a new Mapping
Mapping(String name, String sqlName, String format)

Method Summary

String
getFormat()
String
getName()
String
getSQLName()
String
getSQLType(Column column)
void
setFormat(String format)
void
setName(String name)
void
setSQLName(String name)
String
toString()

Field Details

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

Constructor Details

Mapping

public Mapping()
Construct a new Mapping

Mapping

public Mapping(String name,
               String sqlName,
               String format)

Method Details

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()