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

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.JavaMapperGenerator
Direct Known Subclasses:
AnnotatedClientGenerator, MixedClientGenerator

public class JavaMapperGenerator
extends AbstractJavaClientGenerator

Author:
Jeff Butler

Field Summary
 
Fields inherited from class org.mybatis.generator.codegen.AbstractGenerator
context, introspectedTable, progressCallback, warnings
 
Constructor Summary
JavaMapperGenerator()
           
JavaMapperGenerator(boolean requiresMatchedXMLGenerator)
           
 
Method Summary
protected  void addCountByExampleMethod(Interface interfaze)
           
protected  void addDeleteByExampleMethod(Interface interfaze)
           
protected  void addDeleteByPrimaryKeyMethod(Interface interfaze)
           
protected  void addInsertMethod(Interface interfaze)
           
protected  void addInsertSelectiveMethod(Interface interfaze)
           
protected  void addSelectByExampleWithBLOBsMethod(Interface interfaze)
           
protected  void addSelectByExampleWithoutBLOBsMethod(Interface interfaze)
           
protected  void addSelectByPrimaryKeyMethod(Interface interfaze)
           
protected  void addUpdateByExampleSelectiveMethod(Interface interfaze)
           
protected  void addUpdateByExampleWithBLOBsMethod(Interface interfaze)
           
protected  void addUpdateByExampleWithoutBLOBsMethod(Interface interfaze)
           
protected  void addUpdateByPrimaryKeySelectiveMethod(Interface interfaze)
           
protected  void addUpdateByPrimaryKeyWithBLOBsMethod(Interface interfaze)
           
protected  void addUpdateByPrimaryKeyWithoutBLOBsMethod(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

JavaMapperGenerator

public JavaMapperGenerator()

JavaMapperGenerator

public JavaMapperGenerator(boolean requiresMatchedXMLGenerator)
Method Detail

getCompilationUnits

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

addCountByExampleMethod

protected void addCountByExampleMethod(Interface interfaze)

addDeleteByExampleMethod

protected void addDeleteByExampleMethod(Interface interfaze)

addDeleteByPrimaryKeyMethod

protected void addDeleteByPrimaryKeyMethod(Interface interfaze)

addInsertMethod

protected void addInsertMethod(Interface interfaze)

addInsertSelectiveMethod

protected void addInsertSelectiveMethod(Interface interfaze)

addSelectByExampleWithBLOBsMethod

protected void addSelectByExampleWithBLOBsMethod(Interface interfaze)

addSelectByExampleWithoutBLOBsMethod

protected void addSelectByExampleWithoutBLOBsMethod(Interface interfaze)

addSelectByPrimaryKeyMethod

protected void addSelectByPrimaryKeyMethod(Interface interfaze)

addUpdateByExampleSelectiveMethod

protected void addUpdateByExampleSelectiveMethod(Interface interfaze)

addUpdateByExampleWithBLOBsMethod

protected void addUpdateByExampleWithBLOBsMethod(Interface interfaze)

addUpdateByExampleWithoutBLOBsMethod

protected void addUpdateByExampleWithoutBLOBsMethod(Interface interfaze)

addUpdateByPrimaryKeySelectiveMethod

protected void addUpdateByPrimaryKeySelectiveMethod(Interface interfaze)

addUpdateByPrimaryKeyWithBLOBsMethod

protected void addUpdateByPrimaryKeyWithBLOBsMethod(Interface interfaze)

addUpdateByPrimaryKeyWithoutBLOBsMethod

protected void addUpdateByPrimaryKeyWithoutBLOBsMethod(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.