org.mybatis.generator.codegen.ibatis2.dao
Class DAOGenerator

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.ibatis2.dao.DAOGenerator

public class DAOGenerator
extends AbstractJavaClientGenerator

Author:
Jeff Butler

Field Summary
 
Fields inherited from class org.mybatis.generator.codegen.AbstractGenerator
context, introspectedTable, progressCallback, warnings
 
Constructor Summary
DAOGenerator(AbstractDAOTemplate daoTemplate, boolean generateForJava5)
           
 
Method Summary
protected  void addCountByExampleMethod(TopLevelClass topLevelClass, Interface interfaze)
           
protected  void addDeleteByExampleMethod(TopLevelClass topLevelClass, Interface interfaze)
           
protected  void addDeleteByPrimaryKeyMethod(TopLevelClass topLevelClass, Interface interfaze)
           
protected  void addInsertMethod(TopLevelClass topLevelClass, Interface interfaze)
           
protected  void addInsertSelectiveMethod(TopLevelClass topLevelClass, Interface interfaze)
           
protected  void addSelectByExampleWithBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze)
           
protected  void addSelectByExampleWithoutBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze)
           
protected  void addSelectByPrimaryKeyMethod(TopLevelClass topLevelClass, Interface interfaze)
           
protected  void addUpdateByExampleParmsInnerclass(TopLevelClass topLevelClass, Interface interfaze)
           
protected  void addUpdateByExampleSelectiveMethod(TopLevelClass topLevelClass, Interface interfaze)
           
protected  void addUpdateByExampleWithBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze)
           
protected  void addUpdateByExampleWithoutBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze)
           
protected  void addUpdateByPrimaryKeySelectiveMethod(TopLevelClass topLevelClass, Interface interfaze)
           
protected  void addUpdateByPrimaryKeyWithBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze)
           
protected  void addUpdateByPrimaryKeyWithoutBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze)
           
 List<CompilationUnit> getCompilationUnits()
           
protected  Interface getInterfaceShell()
           
 AbstractXmlGenerator getMatchedXMLGenerator()
          This method returns an instance of the XML generator associated with this client generator.
protected  TopLevelClass getTopLevelClassShell()
           
protected  void initializeAndExecuteGenerator(AbstractDAOElementGenerator methodGenerator, TopLevelClass topLevelClass, 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

DAOGenerator

public DAOGenerator(AbstractDAOTemplate daoTemplate,
                    boolean generateForJava5)
Method Detail

getCompilationUnits

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

getTopLevelClassShell

protected TopLevelClass getTopLevelClassShell()

getInterfaceShell

protected Interface getInterfaceShell()

addCountByExampleMethod

protected void addCountByExampleMethod(TopLevelClass topLevelClass,
                                       Interface interfaze)

addDeleteByExampleMethod

protected void addDeleteByExampleMethod(TopLevelClass topLevelClass,
                                        Interface interfaze)

addDeleteByPrimaryKeyMethod

protected void addDeleteByPrimaryKeyMethod(TopLevelClass topLevelClass,
                                           Interface interfaze)

addInsertMethod

protected void addInsertMethod(TopLevelClass topLevelClass,
                               Interface interfaze)

addInsertSelectiveMethod

protected void addInsertSelectiveMethod(TopLevelClass topLevelClass,
                                        Interface interfaze)

addSelectByExampleWithBLOBsMethod

protected void addSelectByExampleWithBLOBsMethod(TopLevelClass topLevelClass,
                                                 Interface interfaze)

addSelectByExampleWithoutBLOBsMethod

protected void addSelectByExampleWithoutBLOBsMethod(TopLevelClass topLevelClass,
                                                    Interface interfaze)

addSelectByPrimaryKeyMethod

protected void addSelectByPrimaryKeyMethod(TopLevelClass topLevelClass,
                                           Interface interfaze)

addUpdateByExampleParmsInnerclass

protected void addUpdateByExampleParmsInnerclass(TopLevelClass topLevelClass,
                                                 Interface interfaze)

addUpdateByExampleSelectiveMethod

protected void addUpdateByExampleSelectiveMethod(TopLevelClass topLevelClass,
                                                 Interface interfaze)

addUpdateByExampleWithBLOBsMethod

protected void addUpdateByExampleWithBLOBsMethod(TopLevelClass topLevelClass,
                                                 Interface interfaze)

addUpdateByExampleWithoutBLOBsMethod

protected void addUpdateByExampleWithoutBLOBsMethod(TopLevelClass topLevelClass,
                                                    Interface interfaze)

addUpdateByPrimaryKeySelectiveMethod

protected void addUpdateByPrimaryKeySelectiveMethod(TopLevelClass topLevelClass,
                                                    Interface interfaze)

addUpdateByPrimaryKeyWithBLOBsMethod

protected void addUpdateByPrimaryKeyWithBLOBsMethod(TopLevelClass topLevelClass,
                                                    Interface interfaze)

addUpdateByPrimaryKeyWithoutBLOBsMethod

protected void addUpdateByPrimaryKeyWithoutBLOBsMethod(TopLevelClass topLevelClass,
                                                       Interface interfaze)

initializeAndExecuteGenerator

protected void initializeAndExecuteGenerator(AbstractDAOElementGenerator methodGenerator,
                                             TopLevelClass topLevelClass,
                                             Interface interfaze)

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.