org.mybatis.generator.api.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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds properties for this instance from any properties configured in the
JavaTypeResolverConfiguration.
| |||||||||||
Calculates and returns the Java type that should be associated with this
column based on the jdbc type, length, and scale of the column.
| |||||||||||
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.
| |||||||||||
Sets the instance of the Context object associated with this instance.
| |||||||||||
The generator will supply a list to this method.
|
Adds properties for this instance from any properties configured in the JavaTypeResolverConfiguration. This method will be called before any of the get methods.
properties | All properties from the configuration |
---|
Calculates and returns the Java type that should be associated with this column based on the jdbc type, length, and scale of the column.
introspectedColumn | the column whose Java type needs to be calculated |
---|
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.
introspectedColumn | the column whose Java type needs to be calculated |
---|
Sets the instance of the Context object associated with this instance. This method will be called before any of the get methods.
context | The current Context |
---|
The generator 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.