Package org.mybatis.generator.codegen.mybatis3.xmlmapper

Examples of org.mybatis.generator.codegen.mybatis3.xmlmapper.SimpleXMLMapperGenerator


    if ("XMLMAPPER".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new JavaMapperGenerator();
    } else if ("MIXEDMAPPER".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new MixedClientGenerator();
    } else if ("ANNOTATEDMAPPER".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new AnnotatedClientGenerator();
    } else if ("MAPPER".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new JavaMapperGenerator();
    } else {
      javaGenerator = (AbstractJavaClientGenerator) ObjectFactory.createInternalObject(type);
    }
View Full Code Here


    String type = context.getJavaClientGeneratorConfiguration().getConfigurationType();

    AbstractJavaClientGenerator javaGenerator;
    if ("XMLMAPPER".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new JavaMapperGenerator();
    } else if ("MIXEDMAPPER".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new MixedClientGenerator();
    } else if ("ANNOTATEDMAPPER".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new AnnotatedClientGenerator();
    } else if ("MAPPER".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new JavaMapperGenerator();
    } else {
      javaGenerator = (AbstractJavaClientGenerator) ObjectFactory.createInternalObject(type);
    }

    return javaGenerator;
View Full Code Here

    AbstractJavaClientGenerator javaGenerator;
    if ("XMLMAPPER".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new JavaMapperGenerator();
    } else if ("MIXEDMAPPER".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new MixedClientGenerator();
    } else if ("ANNOTATEDMAPPER".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new AnnotatedClientGenerator();
    } else if ("MAPPER".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new JavaMapperGenerator();
    } else {
View Full Code Here

    }
  }

  protected void addUpdateByPrimaryKeyWithoutBLOBsMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateUpdateByPrimaryKeyWithoutBLOBs()) {
      AbstractJavaMapperMethodGenerator methodGenerator = new UpdateByPrimaryKeyWithoutBLOBsMethodGenerator();
      initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
  }
View Full Code Here

  }

  @Override
  protected void addCountByExampleMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateCountByExample()) {
      AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedCountByExampleMethodGenerator();
      initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
  }
View Full Code Here

  }

  @Override
  protected void addDeleteByExampleMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateDeleteByExample()) {
      AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedDeleteByExampleMethodGenerator();
      initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
  }
View Full Code Here

  }

  @Override
  protected void addDeleteByPrimaryKeyMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateDeleteByPrimaryKey()) {
      AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedDeleteByPrimaryKeyMethodGenerator();
      initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
  }
View Full Code Here

  }

  @Override
  protected void addInsertMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateInsert()) {
      AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedInsertMethodGenerator();
      initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
  }
View Full Code Here

  }

  @Override
  protected void addInsertSelectiveMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateInsertSelective()) {
      AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedInsertSelectiveMethodGenerator();
      initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
  }
View Full Code Here

  }

  @Override
  protected void addSelectByExampleWithBLOBsMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateSelectByExampleWithBLOBs()) {
      AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedSelectByExampleWithBLOBsMethodGenerator();
      initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
  }
View Full Code Here

TOP

Related Classes of org.mybatis.generator.codegen.mybatis3.xmlmapper.SimpleXMLMapperGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.