Package 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
Modifier and TypeMethodDescriptionGet JDBC type.Get SQL type.voidMerge 2 TypeInfo's.Build DDL string with SQL type and parameters.
-
Method Details
-
getJdbcType
String getJdbcType()Get JDBC type.- Returns:
- The JDBC type.
-
getSqlType
String getSqlType()Get SQL type.- Returns:
- The SQL type.
-
merge
Merge 2 TypeInfo's.- Parameters:
type- type infor- Throws:
GeneratorException- exception
-
toDDL
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.
-