Package org.mybatis.generator.codegen
Class AbstractJavaClientGenerator
java.lang.Object
org.mybatis.generator.codegen.AbstractGenerator
org.mybatis.generator.codegen.AbstractJavaGenerator
org.mybatis.generator.codegen.AbstractJavaClientGenerator
- Direct Known Subclasses:
DynamicSqlMapperGenerator
,JavaMapperGenerator
,SimpleJavaClientGenerator
This class exists to that Java client generators can specify whether
an XML generator is required to match the methods in the
Java client. For example, a Java client built entirely with
annotations does not need matching XML.
- Author:
- Jeff Butler
-
Field Summary
Fields inherited from class org.mybatis.generator.codegen.AbstractGenerator
context, introspectedTable, progressCallback, warnings
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractJavaClientGenerator
(String project, boolean requiresXMLGenerator) -
Method Summary
Modifier and TypeMethodDescriptionabstract AbstractXmlGenerator
Returns an instance of the XML generator associated with this client generator.boolean
Returns true is a matching XML generator is required.Methods inherited from class org.mybatis.generator.codegen.AbstractJavaGenerator
addDefaultConstructor, addDefaultConstructorWithGeneratedAnnotatoin, getCompilationUnits, getGetter, getProject, getRootClass
Methods inherited from class org.mybatis.generator.codegen.AbstractGenerator
setContext, setIntrospectedTable, setProgressCallback, setWarnings
-
Constructor Details
-
AbstractJavaClientGenerator
-
-
Method Details
-
requiresXMLGenerator
public boolean requiresXMLGenerator()Returns true is a matching XML generator is required.- Returns:
- true if matching XML is generator required
-
getMatchedXMLGenerator
Returns an instance of the XML generator associated with this client generator.- Returns:
- the matched XML generator. May return null if no XML is required by this generator
-