コード例 #1
0
  @Override
  public boolean requiresXMLGenerator() {
    AbstractJavaClientGenerator javaClientGenerator = createJavaClientGenerator();

    if (javaClientGenerator == null) {
      return false;
    } else {
      return javaClientGenerator.requiresXMLGenerator();
    }
  }
コード例 #2
0
  protected void calculateXmlMapperGenerator(
      AbstractJavaClientGenerator javaClientGenerator,
      List<String> warnings,
      ProgressCallback progressCallback) {
    if (javaClientGenerator == null) {
      if (context.getSqlMapGeneratorConfiguration() != null) {
        xmlMapperGenerator = new XMLMapperGenerator();
      }
    } else {
      xmlMapperGenerator = javaClientGenerator.getMatchedXMLGenerator();
    }

    initializeAbstractGenerator(xmlMapperGenerator, warnings, progressCallback);
  }