org.codehaus.modello.generator.database.type

Class Mapping

public class Mapping extends 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 StringSIZE_FORMAT
Format indicating to use the column type's size, if it is > 1
static StringSIZE_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
StringgetFormat()
StringgetName()
StringgetSQLName()
StringgetSQLType(Column column)
voidsetFormat(String format)
voidsetName(String name)
voidsetSQLName(String name)
StringtoString()

Field Detail

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 Detail

Mapping

public Mapping()
Construct a new Mapping

Mapping

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

Method Detail

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()
Copyright © 2001-2008 Codehaus. All Rights Reserved.