|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
---|---|
void |
addConfigurationProperties(Properties properties)
Adds properties for this instance from any properties configured in the JavaTypeResolverConfiguration. |
FullyQualifiedJavaType |
calculateJavaType(IntrospectedColumn introspectedColumn)
Calculates and returns the Java type that should be associated with this column based on the jdbc type, length, and scale of the column. |
String |
calculateJdbcTypeName(IntrospectedColumn introspectedColumn)
Calculates and returns the JDBC type name that should be associated with this column based on the jdbc type, length, and scale of the column. |
void |
setContext(Context context)
Sets the instance of the Context object associated with this instance. |
void |
setWarnings(List<String> warnings)
The generator will supply a list to this method. |
Method Detail |
---|
void addConfigurationProperties(Properties properties)
properties
- All properties from the configurationvoid setContext(Context context)
context
- The current Contextvoid setWarnings(List<String> warnings)
warnings
- FullyQualifiedJavaType calculateJavaType(IntrospectedColumn introspectedColumn)
introspectedColumn
- the column whose Java type needs to be calculated
String calculateJdbcTypeName(IntrospectedColumn introspectedColumn)
introspectedColumn
- the column whose Java type needs to be calculated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |