org.apache.ibatis.abator.api
Interface JavaTypeResolver

All Known Implementing Classes:
JavaTypeResolverDefaultImpl

public interface JavaTypeResolver

This interface describes methods that are required in any Java type resolver. A Java type resolver is used to make a default translation between a JDBC type as returned from the database introspection process, and a Java type.

Author:
Jeff Butler

Method Summary
 void initializeResolvedJavaType(ColumnDefinition cd)
          Initializes the ResolvedJavaType property of the ColumnDescription based on the jdbc type, length, and scale of the column.
 void setProperties(java.util.Map properties)
           
 void setWarnings(java.util.List warnings)
          Abator will supply a list to this method.
 

Method Detail

setProperties

public void setProperties(java.util.Map properties)

setWarnings

public void setWarnings(java.util.List warnings)
Abator will supply a list to this method. The implementation class may add strings to the list that will be treated as warning messages and displayed to the user. The concept of a warning is that code generation can continue, but that the results may not be what is expected.

Parameters:
warnings -

initializeResolvedJavaType

public void initializeResolvedJavaType(ColumnDefinition cd)
                                throws UnsupportedDataTypeException
Initializes the ResolvedJavaType property of the ColumnDescription based on the jdbc type, length, and scale of the column.

Parameters:
cd - the JDBC type will be used first to resolve the Java type. If the type cannot be resolved from this value, then we will try from the type name (which may be the qualified UDT from the database)
Throws:
UnsupportedDataTypeException