org.castor.ddlgen.typeinfo
Interface TypeInfo

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

public interface TypeInfo

Interface associates JDBC to SQL type and its parameters.

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

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

Method Detail

getJdbcType

java.lang.String getJdbcType()
Get JDBC type.

Returns:
The JDBC type.

getSqlType

java.lang.String getSqlType()
Get SQL type.

Returns:
The SQL type.

merge

void merge(TypeInfo type)
           throws GeneratorException
Merge 2 TypeInfo's.

Parameters:
type - type infor
Throws:
GeneratorException - exception

toDDL

java.lang.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-2007. All rights reserved http://www.intalio.com