org.castor.ddlgen.typeinfo
Class OptionalLengthType
java.lang.Object
org.castor.ddlgen.typeinfo.AbstractType
org.castor.ddlgen.typeinfo.OptionalLengthType
- All Implemented Interfaces:
- TypeInfo
public final class OptionalLengthType
- extends AbstractType
Final TypeInfo for types having one optional length parameter.
- Since:
- 1.1
- Version:
- $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Le Duc Bao, Ralf Joachim
Constructor Summary |
OptionalLengthType(java.lang.String jdbcType,
java.lang.String sqlType,
DDLGenConfiguration conf)
Construct a new TypeInfo instance with given JDBC type, SQL type and Configuration. |
OptionalLengthType(java.lang.String jdbcType,
java.lang.String sqlType,
java.lang.String postfix,
DDLGenConfiguration conf)
Construct a new TypeInfo instance with given JDBC type, SQL type and Configuration. |
Method Summary |
java.lang.String |
toDDL(Field field)
Build DDL string with SQL type and parameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionalLengthType
public OptionalLengthType(java.lang.String jdbcType,
java.lang.String sqlType,
DDLGenConfiguration conf)
- 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.
OptionalLengthType
public OptionalLengthType(java.lang.String jdbcType,
java.lang.String sqlType,
java.lang.String postfix,
DDLGenConfiguration conf)
- Construct a new TypeInfo instance with given JDBC type, SQL type and Configuration.
- Parameters:
jdbcType
- The JDBC type.sqlType
- The SQL type.postfix
- Post fix to be appended after type.conf
- The configuration to get default parameter values from.
toDDL
public java.lang.String toDDL(Field field)
- Build DDL string with SQL type and parameters.
- Parameters:
field
- The field to get specific parameters from.
- Returns:
- Type string for DDL.
Copyright © 2011. All Rights Reserved.