org.mybatis.generator.codegen.mybatis3.javamapper
Class SimpleJavaClientGenerator

java.lang.Object
  extended by org.mybatis.generator.codegen.AbstractGenerator
      extended by org.mybatis.generator.codegen.AbstractJavaGenerator
          extended by org.mybatis.generator.codegen.AbstractJavaClientGenerator
              extended by org.mybatis.generator.codegen.mybatis3.javamapper.SimpleJavaClientGenerator
Direct Known Subclasses:
SimpleAnnotatedClientGenerator

public class SimpleJavaClientGenerator
extends AbstractJavaClientGenerator

Author:
Jeff Butler

Field Summary
 
Fields inherited from class org.mybatis.generator.codegen.AbstractGenerator
context, introspectedTable, progressCallback, warnings
 
Constructor Summary
SimpleJavaClientGenerator()
           
SimpleJavaClientGenerator(boolean requiresMatchedXMLGenerator)
           
 
Method Summary
protected  void addDeleteByPrimaryKeyMethod(Interface interfaze)
           
protected  void addInsertMethod(Interface interfaze)
           
protected  void addSelectAllMethod(Interface interfaze)
           
protected  void addSelectByPrimaryKeyMethod(Interface interfaze)
           
protected  void addUpdateByPrimaryKeyMethod(Interface interfaze)
           
 List<CompilationUnit> getCompilationUnits()
           
 List<CompilationUnit> getExtraCompilationUnits()
           
 AbstractXmlGenerator getMatchedXMLGenerator()
          This method returns an instance of the XML generator associated with this client generator.
protected  void initializeAndExecuteGenerator(AbstractJavaMapperMethodGenerator methodGenerator, Interface interfaze)
           
 
Methods inherited from class org.mybatis.generator.codegen.AbstractJavaClientGenerator
requiresXMLGenerator
 
Methods inherited from class org.mybatis.generator.codegen.AbstractJavaGenerator
addDefaultConstructor, getGetter, getJavaBeansField, getJavaBeansGetter, getJavaBeansSetter, getRootClass, isTrimStringsEnabled
 
Methods inherited from class org.mybatis.generator.codegen.AbstractGenerator
getContext, getIntrospectedTable, getProgressCallback, getWarnings, setContext, setIntrospectedTable, setProgressCallback, setWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleJavaClientGenerator

public SimpleJavaClientGenerator()

SimpleJavaClientGenerator

public SimpleJavaClientGenerator(boolean requiresMatchedXMLGenerator)
Method Detail

getCompilationUnits

public List<CompilationUnit> getCompilationUnits()
Specified by:
getCompilationUnits in class AbstractJavaGenerator

addDeleteByPrimaryKeyMethod

protected void addDeleteByPrimaryKeyMethod(Interface interfaze)

addInsertMethod

protected void addInsertMethod(Interface interfaze)

addSelectByPrimaryKeyMethod

protected void addSelectByPrimaryKeyMethod(Interface interfaze)

addSelectAllMethod

protected void addSelectAllMethod(Interface interfaze)

addUpdateByPrimaryKeyMethod

protected void addUpdateByPrimaryKeyMethod(Interface interfaze)

initializeAndExecuteGenerator

protected void initializeAndExecuteGenerator(AbstractJavaMapperMethodGenerator methodGenerator,
                                             Interface interfaze)

getExtraCompilationUnits

public List<CompilationUnit> getExtraCompilationUnits()

getMatchedXMLGenerator

public AbstractXmlGenerator getMatchedXMLGenerator()
Description copied from class: AbstractJavaClientGenerator
This method returns an instance of the XML generator associated with this client generator.

Specified by:
getMatchedXMLGenerator in class AbstractJavaClientGenerator
Returns:
the matched XML generator. May return null if no XML is required by this generator


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.