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.
-
Field Summary
FieldsFields inherited from class org.mybatis.generator.codegen.AbstractGenerator
context, introspectedTable, progressCallback, warnings -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractJavaClientGenerator(String project, boolean requiresXMLGenerator) -
Method Summary
Modifier and TypeMethodDescriptionabstract AbstractXmlGeneratorReturns an instance of the XML generator associated with this client generator.booleanReturns true is a matching XML generator is required.Methods inherited from class org.mybatis.generator.codegen.AbstractJavaGenerator
addDefaultConstructor, addDefaultConstructorWithGeneratedAnnotatoin, getCompilationUnits, getGetter, getProject, getRootClassMethods inherited from class org.mybatis.generator.codegen.AbstractGenerator
setContext, setIntrospectedTable, setProgressCallback, setWarnings
-
Field Details
-
requiresXMLGenerator
private final boolean requiresXMLGenerator
-
-
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
-