Package org.castor.ddlgen.typeinfo
Class OptionalPrecisionDecimalsType
java.lang.Object
org.castor.ddlgen.typeinfo.AbstractType
org.castor.ddlgen.typeinfo.OptionalPrecisionDecimalsType
- All Implemented Interfaces:
TypeInfo
Final TypeInfo for types having optional precision and decimals parameters. An
Exception will be throw if not both parameters are specified from the same source
(mapping or ddl.properties file).
- 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
Fields inherited from class org.castor.ddlgen.typeinfo.AbstractType
PARAM_POSTFIX_DECIMALS, PARAM_POSTFIX_LENGTH, PARAM_POSTFIX_PRECISION, PARAM_PREFIX
-
Constructor Summary
ConstructorsConstructorDescriptionOptionalPrecisionDecimalsType
(String jdbcType, String sqlType, DDLGenConfiguration conf) Construct a new TypeInfo instance with given JDBC type, SQL type and Configuration. -
Method Summary
Methods inherited from class org.castor.ddlgen.typeinfo.AbstractType
getJdbcType, getSqlType, merge
-
Constructor Details
-
OptionalPrecisionDecimalsType
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
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.
-