org.castor.ddlgen.typeinfo
Class LobType

java.lang.Object
  extended by org.castor.ddlgen.typeinfo.AbstractType
      extended by org.castor.ddlgen.typeinfo.LobType
All Implemented Interfaces:
TypeInfo

public final class LobType
extends AbstractType

LobType is used for BLOB/CLOB type which require a sufix, for example BLOB(10M), CLOB(1K).

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
LobType(java.lang.String jdbcType, java.lang.String sqlType, 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 org.castor.ddlgen.typeinfo.AbstractType
getJdbcType, getSqlType, merge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LobType

public LobType(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.
Method Detail

toDDL

public java.lang.String toDDL(Field field)
                       throws GeneratorException
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.


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com