Class JavaDomUtils
java.lang.Object
org.mybatis.generator.api.dom.java.JavaDomUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
calculateTypeName
(CompilationUnit compilationUnit, FullyQualifiedJavaType fqjt) Calculates type names for writing into generated Java.
-
Method Details
-
calculateTypeName
public static String calculateTypeName(CompilationUnit compilationUnit, FullyQualifiedJavaType fqjt) Calculates type names for writing into generated Java. We try to use short names wherever possible. If the type requires an import, but has not been imported, then we need to use the fully qualified type name.- Parameters:
compilationUnit
- the compilation unit being writtenfqjt
- the type in question- Returns:
- the full type name
-