Package org.castor.ddlgen.typeinfo
Class AbstractType
- java.lang.Object
-
- org.castor.ddlgen.typeinfo.AbstractType
-
- All Implemented Interfaces:
TypeInfo
- Direct Known Subclasses:
LobType,NoParamType,NotSupportedType,OptionalLengthType,OptionalPrecisionDecimalsType,OptionalPrecisionType,RequiredLengthType,RequiredPrecisionType
public abstract class AbstractType extends java.lang.Object implements TypeInfo
Abstract TypeInfo with common properties of all implementations.- 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 Modifier and Type Field Description protected static java.lang.StringPARAM_POSTFIX_DECIMALSPostfix of decimals parameters for types in ddl.properties file.protected static java.lang.StringPARAM_POSTFIX_LENGTHPostfix of length parameters for types in ddl.properties file.protected static java.lang.StringPARAM_POSTFIX_PRECISIONPostfix of precision parameters for types in ddl.properties file.protected static java.lang.StringPARAM_PREFIXPrefix of all parameters for types in ddl.properties file.
-
Constructor Summary
Constructors Constructor Description AbstractType(java.lang.String jdbcType, java.lang.String sqlType)Construct a new TypeInfo instance with given Configuration, JDBC type and SQL type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetJdbcType()Get JDBC type.java.lang.StringgetSqlType()Get SQL type.voidmerge(TypeInfo type)Merge 2 TypeInfo's.
-
-
-
Field Detail
-
PARAM_PREFIX
protected static final java.lang.String PARAM_PREFIX
Prefix of all parameters for types in ddl.properties file.- See Also:
- Constant Field Values
-
PARAM_POSTFIX_LENGTH
protected static final java.lang.String PARAM_POSTFIX_LENGTH
Postfix of length parameters for types in ddl.properties file.- See Also:
- Constant Field Values
-
PARAM_POSTFIX_PRECISION
protected static final java.lang.String PARAM_POSTFIX_PRECISION
Postfix of precision parameters for types in ddl.properties file.- See Also:
- Constant Field Values
-
PARAM_POSTFIX_DECIMALS
protected static final java.lang.String PARAM_POSTFIX_DECIMALS
Postfix of decimals parameters for types in ddl.properties file.- See Also:
- Constant Field Values
-
-
Method Detail
-
getJdbcType
public final java.lang.String getJdbcType()
Get JDBC type.- Specified by:
getJdbcTypein interfaceTypeInfo- Returns:
- The JDBC type.
-
getSqlType
public final java.lang.String getSqlType()
Get SQL type.- Specified by:
getSqlTypein interfaceTypeInfo- Returns:
- The SQL type.
-
merge
public final void merge(TypeInfo type) throws GeneratorException
Merge 2 TypeInfo's.- Specified by:
mergein interfaceTypeInfo- Parameters:
type- type infor- Throws:
GeneratorException- exception
-
-