org.castor.ddlgen.typeinfo

Class AbstractType

Implemented Interfaces:
TypeInfo
Known Direct Subclasses:
LobType, NoParamType, NotSupportedType, OptionalLengthType, OptionalPrecisionDecimalsType, OptionalPrecisionType, RequiredLengthType, RequiredPrecisionType

public abstract class AbstractType
extends java.lang.Object
implements TypeInfo

Abstract TypeInfo with common properties of all implementations.
Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Authors:
Le Duc Bao
Ralf Joachim
Since:
1.1

Field Summary

protected static String
PARAM_POSTFIX_DECIMALS
Postfix of decimals parameters for types in ddl.properties file.
protected static String
PARAM_POSTFIX_LENGTH
Postfix of length parameters for types in ddl.properties file.
protected static String
PARAM_POSTFIX_PRECISION
Postfix of precision parameters for types in ddl.properties file.
protected static String
PARAM_PREFIX
Prefix of all parameters for types in ddl.properties file.

Constructor Summary

AbstractType(String jdbcType, String sqlType)
Construct a new TypeInfo instance with given Configuration, JDBC type and SQL type.

Method Summary

String
getJdbcType()
String
getSqlType()
void
merge(TypeInfo type)

Field Details

PARAM_POSTFIX_DECIMALS

protected static final String PARAM_POSTFIX_DECIMALS
Postfix of decimals parameters for types in ddl.properties file.

PARAM_POSTFIX_LENGTH

protected static final String PARAM_POSTFIX_LENGTH
Postfix of length parameters for types in ddl.properties file.

PARAM_POSTFIX_PRECISION

protected static final String PARAM_POSTFIX_PRECISION
Postfix of precision parameters for types in ddl.properties file.

PARAM_PREFIX

protected static final String PARAM_PREFIX
Prefix of all parameters for types in ddl.properties file.

Constructor Details

AbstractType

public AbstractType(String jdbcType,
                    String sqlType)
Construct a new TypeInfo instance with given Configuration, JDBC type and SQL type.
Parameters:
jdbcType - The JDBC type.
sqlType - The SQL type.

Method Details

getJdbcType

public final String getJdbcType()
Specified by:
getJdbcType in interface TypeInfo

getSqlType

public final String getSqlType()
Specified by:
getSqlType in interface TypeInfo

merge

public final void merge(TypeInfo type)
            throws GeneratorException
Specified by:
merge in interface TypeInfo

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