org.castor.ddlgen.typeinfo

Class RequiredLengthType

Implemented Interfaces:
TypeInfo

public final class RequiredLengthType
extends AbstractType

Final TypeInfo for types having a required length parameter.
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

Fields inherited from class org.castor.ddlgen.typeinfo.AbstractType

PARAM_POSTFIX_DECIMALS, PARAM_POSTFIX_LENGTH, PARAM_POSTFIX_PRECISION, PARAM_PREFIX

Constructor Summary

RequiredLengthType(String jdbcType, String sqlType, String postfix, DDLGenConfiguration conf)
Construct a new TypeInfo instance with given JDBC type, SQL type and Configuration.
RequiredLengthType(String jdbcType, String sqlType, DDLGenConfiguration conf)
Construct a new TypeInfo instance with given JDBC type, SQL type and Configuration.

Method Summary

String
toDDL(Field field)

Methods inherited from class org.castor.ddlgen.typeinfo.AbstractType

getJdbcType, getSqlType, merge

Constructor Details

RequiredLengthType

public RequiredLengthType(String jdbcType,
                          String sqlType,
                          String postfix,
                          DDLGenConfiguration conf)
Construct a new TypeInfo instance with given JDBC type, SQL type and Configuration.
Parameters:
jdbcType - The JDBC type.
sqlType - The SQL type.
postfix - Post fix to be appended after type.
conf - The configuration to get default parameter values from.

RequiredLengthType

public RequiredLengthType(String jdbcType,
                          String sqlType,
                          DDLGenConfiguration conf)
Construct a new TypeInfo instance with given JDBC type, SQL type and Configuration.
Parameters:
jdbcType - The JDBC type.
sqlType - The SQL type.
conf - The configuration to get default parameter values from.

Method Details

toDDL

public String toDDL(Field field)
            throws GeneratorException
Specified by:
toDDL in interface TypeInfo

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