public abstract class

AbstractJavaClientGenerator

extends AbstractJavaGenerator
java.lang.Object
   ↳ org.mybatis.generator.codegen.AbstractGenerator
     ↳ org.mybatis.generator.codegen.AbstractJavaGenerator
       ↳ org.mybatis.generator.codegen.AbstractJavaClientGenerator
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class org.mybatis.generator.codegen.AbstractGenerator
Public Constructors
AbstractJavaClientGenerator(boolean requiresXMLGenerator)
Public Methods
abstract AbstractXmlGenerator getMatchedXMLGenerator()
This method returns an instance of the XML generator associated with this client generator.
boolean requiresXMLGenerator()
[Expand]
Inherited Methods
From class org.mybatis.generator.codegen.AbstractJavaGenerator
From class org.mybatis.generator.codegen.AbstractGenerator
From class java.lang.Object

Public Constructors

public AbstractJavaClientGenerator (boolean requiresXMLGenerator)

Public Methods

public abstract AbstractXmlGenerator getMatchedXMLGenerator ()

This method 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

public boolean requiresXMLGenerator ()

Returns
  • true if matching XML is required