Package org.mybatis.generator.api

Examples of org.mybatis.generator.api.GeneratedXmlFile


  {
    XmlElement parent = new XmlElement("struts"); //$NON-NLS-1$
    addPackageElement(parent, introspectedTable, parentModulName);
    Document document = new Document(STRUTS_PUBLIC_ID, STRUTS_SYSTEM_ID);
    document.setRootElement(parent);
    GeneratedXmlFile gxf = new GeneratedXmlFile(document, strutsXmlFileName
        + ".xml", strutsXmlFilePath, targetProject, isMergeable);
    List<GeneratedXmlFile> gxfs = new ArrayList<GeneratedXmlFile>();
    gxfs.add(gxf);
    return gxfs;
  }
View Full Code Here


      mapper = new XmlElement("mapper"); //$NON-NLS-1$
      mapper.addAttribute(new Attribute("resource", mapperFile)); //$NON-NLS-1$
      mappers.addElement(mapper);
    }

    GeneratedXmlFile gxf = new GeneratedXmlFile(document, properties.getProperty("fileName", "MapperConfig.xml"), //$NON-NLS-1$ //$NON-NLS-2$
        properties.getProperty("targetPackage"), //$NON-NLS-1$
        properties.getProperty("targetProject"), //$NON-NLS-1$
        false);

    List<GeneratedXmlFile> answer = new ArrayList<GeneratedXmlFile>(1);
View Full Code Here

      sqlMap = new XmlElement("sqlMap"); //$NON-NLS-1$
      sqlMap.addAttribute(new Attribute("resource", sqlMapFile)); //$NON-NLS-1$
      root.addElement(sqlMap);
    }

    GeneratedXmlFile gxf = new GeneratedXmlFile(document, properties.getProperty("fileName", "SqlMapConfig.xml"), //$NON-NLS-1$ //$NON-NLS-2$
        properties.getProperty("targetPackage"), //$NON-NLS-1$
        properties.getProperty("targetProject"), //$NON-NLS-1$
        false);

    List<GeneratedXmlFile> answer = new ArrayList<GeneratedXmlFile>(1);
View Full Code Here

  @Override
  public List<GeneratedXmlFile> getGeneratedXmlFiles() {
    List<GeneratedXmlFile> answer = new ArrayList<GeneratedXmlFile>();

    Document document = sqlMapGenerator.getDocument();
    GeneratedXmlFile gxf = new GeneratedXmlFile(document, getIbatis2SqlMapFileName(), getIbatis2SqlMapPackage(),
        context.getSqlMapGeneratorConfiguration().getTargetProject(), false);
    if (context.getPlugins().sqlMapGenerated(gxf, this)) {
      answer.add(gxf);
    }
View Full Code Here

  public List<GeneratedXmlFile> getGeneratedXmlFiles() {
    List<GeneratedXmlFile> answer = new ArrayList<GeneratedXmlFile>();

    if (xmlMapperGenerator != null) {
      Document document = xmlMapperGenerator.getDocument();
      GeneratedXmlFile gxf = new GeneratedXmlFile(document, getMyBatis3XmlMapperFileName(),
          getMyBatis3XmlMapperPackage(), context.getSqlMapGeneratorConfiguration().getTargetProject(), false);
      if (context.getPlugins().sqlMapGenerated(gxf, this)) {
        answer.add(gxf);
      }
    }
View Full Code Here

      answer.addElement(getOracleTail());
    } else if (databaseType.contains("mysql")) {
      answer.addElement(getMysqlLimit());
    }

    GeneratedXmlFile gxf = new GeneratedXmlFile(document, properties.getProperty("fileName", "common_SqlMap.xml"), //$NON-NLS-1$ //$NON-NLS-2$
        context.getSqlMapGeneratorConfiguration().getTargetPackage(), //$NON-NLS-1$
        context.getSqlMapGeneratorConfiguration().getTargetProject(), //$NON-NLS-1$
        false);

    List<GeneratedXmlFile> files = new ArrayList<GeneratedXmlFile>(1);
View Full Code Here

      answer.addElement(getOracleTail());
    } else if (databaseType.contains("mysql")) {
      answer.addElement(getMysqlLimit());
    }

    GeneratedXmlFile gxf = new GeneratedXmlFile(document, properties.getProperty("fileName", "common_SqlMap.xml"), //$NON-NLS-1$ //$NON-NLS-2$
        context.getSqlMapGeneratorConfiguration().getTargetPackage(), //$NON-NLS-1$
        context.getSqlMapGeneratorConfiguration().getTargetProject(), //$NON-NLS-1$
        false);

    List<GeneratedXmlFile> files = new ArrayList<GeneratedXmlFile>(1);
View Full Code Here

      answer.addElement(getOracleTail());
    } else if (databaseType.contains("mysql")) {
      answer.addElement(getMysqlLimit());
    }

    GeneratedXmlFile gxf = new GeneratedXmlFile(document, properties.getProperty("fileName", "common_SqlMap.xml"), //$NON-NLS-1$ //$NON-NLS-2$
        context.getSqlMapGeneratorConfiguration().getTargetPackage(), //$NON-NLS-1$
        context.getSqlMapGeneratorConfiguration().getTargetProject(), //$NON-NLS-1$
        false);

    List<GeneratedXmlFile> files = new ArrayList<GeneratedXmlFile>(1);
View Full Code Here

    @Override
    public List<GeneratedXmlFile> getGeneratedXmlFiles() {
        List<GeneratedXmlFile> answer = new ArrayList<GeneratedXmlFile>();

        Document document = sqlMapGenerator.getDocument();
        GeneratedXmlFile gxf = new GeneratedXmlFile(document,
                getIbatis2SqlMapFileName(), getIbatis2SqlMapPackage(), context
                        .getSqlMapGeneratorConfiguration().getTargetProject(),
                true, context.getXmlFormatter());
        if (context.getPlugins().sqlMapGenerated(gxf, this)) {
            answer.add(gxf);
View Full Code Here

    public List<GeneratedXmlFile> getGeneratedXmlFiles() {
        List<GeneratedXmlFile> answer = new ArrayList<GeneratedXmlFile>();

        if (xmlMapperGenerator != null) {
            Document document = xmlMapperGenerator.getDocument();
            GeneratedXmlFile gxf = new GeneratedXmlFile(document,
                getMyBatis3XmlMapperFileName(), getMyBatis3XmlMapperPackage(),
                context.getSqlMapGeneratorConfiguration().getTargetProject(),
                true, context.getXmlFormatter());
            if (context.getPlugins().sqlMapGenerated(gxf, this)) {
                answer.add(gxf);
View Full Code Here

TOP

Related Classes of org.mybatis.generator.api.GeneratedXmlFile

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.