|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.ddlgen.typeinfo.AbstractType
org.castor.ddlgen.typeinfo.RequiredPrecisionType
public final class RequiredPrecisionType
Final TypeInfo for types having a required length parameter.
Field Summary |
---|
Fields inherited from class org.castor.ddlgen.typeinfo.AbstractType |
---|
PARAM_POSTFIX_DECIMALS, PARAM_POSTFIX_LENGTH, PARAM_POSTFIX_PRECISION, PARAM_PREFIX |
Constructor Summary | |
---|---|
RequiredPrecisionType(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 |
---|
public RequiredPrecisionType(java.lang.String jdbcType, java.lang.String sqlType, DDLGenConfiguration conf)
jdbcType
- The JDBC type.sqlType
- The SQL type.conf
- The configuration to get default parameter values from.Method Detail |
---|
public java.lang.String toDDL(Field field) throws GeneratorException
field
- The field to get specific parameters from.
GeneratorException
- If required parameters is not defined.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |