|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.ddlgen.AbstractTypeMapper
public abstract class AbstractTypeMapper
AbstractTypeMapper is the base class for mapping JDBC supported type and RDBMS data type.
The initialize(Configuration) is used to defined the mapping table in which the configuration is handled parameters for TypeInfo. Please refer to org.castor.ddl.typeinfo for TypeInfo definitions
Constructor Summary | |
---|---|
protected |
AbstractTypeMapper(DDLGenConfiguration conf)
Construct an abstract TypeMapper using given configuration to get default parameters for parameterized types. |
Method Summary | |
---|---|
protected void |
add(TypeInfo type)
Add TypeInfo to map of known types. |
TypeInfo |
getType(java.lang.String jdcbType)
Get TypeInfo for given JDBC type. |
protected abstract void |
initialize(DDLGenConfiguration conf)
Initialize map of known types using given configuration to get default parameters for parameterized types. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractTypeMapper(DDLGenConfiguration conf)
conf
- The configuration to get default parameter values from.Method Detail |
---|
protected abstract void initialize(DDLGenConfiguration conf)
conf
- The configuration to get default parameter values from.protected final void add(TypeInfo type)
type
- The TypeInfo to add.public final TypeInfo getType(java.lang.String jdcbType)
getType
in interface TypeMapper
jdcbType
- JDBC type to get TypeInfo for.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |