org.castor.ddlgen.typeinfo
Class NoParamType
java.lang.Object
org.castor.ddlgen.typeinfo.AbstractType
org.castor.ddlgen.typeinfo.NoParamType
- All Implemented Interfaces:
- TypeInfo
public final class NoParamType
- extends AbstractType
Final TypeInfo for types having no 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
|
Constructor Summary |
NoParamType(String jdbcType,
String sqlType)
Construct a new TypeInfo instance with given Configuration, JDBC type and SQL type. |
|
Method Summary |
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 |
NoParamType
public NoParamType(String jdbcType,
String sqlType)
- Construct a new TypeInfo instance with given Configuration, JDBC type and SQL type.
- Parameters:
jdbcType - The JDBC type.sqlType - The SQL type.
toDDL
public 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.