|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.ddlgen.typeinfo.AbstractType
public abstract class AbstractType
Abstract TypeInfo with common properties of all implementations.
| Field Summary | |
|---|---|
protected static String |
PARAM_POSTFIX_DECIMALS
Postfix of decimals parameters for types in ddl.properties file. |
protected static String |
PARAM_POSTFIX_LENGTH
Postfix of length parameters for types in ddl.properties file. |
protected static String |
PARAM_POSTFIX_PRECISION
Postfix of precision parameters for types in ddl.properties file. |
protected static String |
PARAM_PREFIX
Prefix of all parameters for types in ddl.properties file. |
| Constructor Summary | |
|---|---|
AbstractType(String jdbcType,
String sqlType)
Construct a new TypeInfo instance with given Configuration, JDBC type and SQL type. |
|
| Method Summary | |
|---|---|
String |
getJdbcType()
Get JDBC type. |
String |
getSqlType()
Get SQL type. |
void |
merge(TypeInfo type)
Merge 2 TypeInfo's. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.castor.ddlgen.typeinfo.TypeInfo |
|---|
toDDL |
| Field Detail |
|---|
protected static final String PARAM_PREFIX
protected static final String PARAM_POSTFIX_LENGTH
protected static final String PARAM_POSTFIX_PRECISION
protected static final String PARAM_POSTFIX_DECIMALS
| Constructor Detail |
|---|
public AbstractType(String jdbcType,
String sqlType)
jdbcType - The JDBC type.sqlType - The SQL type.| Method Detail |
|---|
public final String getJdbcType()
getJdbcType in interface TypeInfopublic final String getSqlType()
getSqlType in interface TypeInfo
public final void merge(TypeInfo type)
throws GeneratorException
merge in interface TypeInfotype - type infor
GeneratorException - exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||