Package org.castor.ddlgen.typeinfo
Class AbstractType
java.lang.Object
org.castor.ddlgen.typeinfo.AbstractType
- All Implemented Interfaces:
TypeInfo
- Direct Known Subclasses:
LobType
,NoParamType
,NotSupportedType
,OptionalLengthType
,OptionalPrecisionDecimalsType
,OptionalPrecisionType
,RequiredLengthType
,RequiredPrecisionType
Abstract TypeInfo with common properties of all implementations.
- Since:
- 1.1
- Version:
- $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Le Duc Bao, Ralf Joachim
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
Postfix of decimals parameters for types in ddl.properties file.protected static final String
Postfix of length parameters for types in ddl.properties file.protected static final String
Postfix of precision parameters for types in ddl.properties file.protected static final String
Prefix of all parameters for types in ddl.properties file. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractType
(String jdbcType, String sqlType) Construct a new TypeInfo instance with given Configuration, JDBC type and SQL type. -
Method Summary
-
Field Details
-
PARAM_PREFIX
Prefix of all parameters for types in ddl.properties file.- See Also:
-
PARAM_POSTFIX_LENGTH
Postfix of length parameters for types in ddl.properties file.- See Also:
-
PARAM_POSTFIX_PRECISION
Postfix of precision parameters for types in ddl.properties file.- See Also:
-
PARAM_POSTFIX_DECIMALS
Postfix of decimals parameters for types in ddl.properties file.- See Also:
-
-
Constructor Details
-
AbstractType
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
Get JDBC type.- Specified by:
getJdbcType
in interfaceTypeInfo
- Returns:
- The JDBC type.
-
getSqlType
Get SQL type.- Specified by:
getSqlType
in interfaceTypeInfo
- Returns:
- The SQL type.
-
merge
Merge 2 TypeInfo's.- Specified by:
merge
in interfaceTypeInfo
- Parameters:
type
- type infor- Throws:
GeneratorException
- exception
-