org.castor.ddlgen.typeinfo

Interface TypeInfo

Known Implementing Classes:
AbstractType, LobType, NoParamType, NotSupportedType, OptionalLengthType, OptionalPrecisionDecimalsType, OptionalPrecisionType, RequiredLengthType, RequiredPrecisionType

public interface TypeInfo

Interface associates JDBC to SQL type and its parameters.
Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Authors:
Le Duc Bao
Ralf Joachim
Since:
1.1

Method Summary

String
getJdbcType()
Get JDBC type.
String
getSqlType()
Get SQL type.
void
merge(TypeInfo type)
Merge 2 TypeInfo's.
String
toDDL(Field field)
Build DDL string with SQL type and parameters.

Method Details

getJdbcType

public String getJdbcType()
Get JDBC type.
Returns:
The JDBC type.

getSqlType

public String getSqlType()
Get SQL type.
Returns:
The SQL type.

merge

public void merge(TypeInfo type)
            throws GeneratorException
Merge 2 TypeInfo's.
Parameters:
type - type infor
Throws:
GeneratorException - exception

toDDL

public String toDDL(Field field)
            throws GeneratorException
Build DDL string with SQL type and parameters.
Parameters:
field - The field to get specific parameters from.
Returns:
Type string for DDL.
Throws:
GeneratorException - If required parameters is not defined.

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