org.castor.ddlgen

Class AbstractTypeMapper

Implemented Interfaces:
TypeMapper
Known Direct Subclasses:
Db2TypeMapper, DerbyTypeMapper, HsqlTypeMapper, MssqlTypeMapper, MysqlTypeMapper, OracleTypeMapper, PointBaseTypeMapper, PostgresqlTypeMapper, SapdbTypeMapper, SybaseTypeMapper

public abstract class AbstractTypeMapper
extends java.lang.Object
implements TypeMapper

AbstractTypeMapper is the base class for mapping JDBC supported type and RDBMS data type.

The initialize(Configuration) is used to defined the mapping table in which the configuration is handled parameters for TypeInfo. Please refer to org.castor.ddl.typeinfo for TypeInfo definitions

Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Authors:
Le Duc Bao
Ralf Joachim
Since:
1.1

Constructor Summary

AbstractTypeMapper(DDLGenConfiguration conf)
Construct an abstract TypeMapper using given configuration to get default parameters for parameterized types.

Method Summary

protected void
add(TypeInfo type)
Add TypeInfo to map of known types.
TypeInfo
getType(String jdcbType)
protected abstract void
initialize(DDLGenConfiguration conf)
Initialize map of known types using given configuration to get default parameters for parameterized types.

Constructor Details

AbstractTypeMapper

protected AbstractTypeMapper(DDLGenConfiguration conf)
Construct an abstract TypeMapper using given configuration to get default parameters for parameterized types.
Parameters:
conf - The configuration to get default parameter values from.

Method Details

add

protected final void add(TypeInfo type)
Add TypeInfo to map of known types.
Parameters:
type - The TypeInfo to add.

getType

public final TypeInfo getType(String jdcbType)
Specified by:
getType in interface TypeMapper

initialize

protected abstract void initialize(DDLGenConfiguration conf)
Initialize map of known types using given configuration to get default parameters for parameterized types.
Parameters:
conf - The configuration to get default parameter values from.

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com