Examples of ImportBuilder


Examples of ch.inftec.ju.testing.db.DbDataUtil.ImportBuilder

          this.runLiquibaseChangeLog("ju-testing/data/default-changeLog-hibernateSequence.xml");
        }
      }
     
      DbDataUtil du = new DbDataUtil(emUtil);
      ImportBuilder fullData = du.buildImport().from("/ju-testing/data/default-fullData.xml");
      if (emptyTables) {
        fullData.executeDeleteAll();
      } else {
        fullData.executeCleanInsert();
      }
     
      // Load TIMEFIELD for non-oracle DBs
      if (this.emUtil.getDbType() != DbType.ORACLE && !emptyTables) {
        du.buildImport().from("/ju-testing/data/default-fullData-dataTypes.xml").executeUpdate();
View Full Code Here

Examples of ch.inftec.ju.testing.db.DbDataUtil.ImportBuilder

        this.runLiquibaseChangeLog("ju-testing/data/default-changeLog-mySqlEngine.xml");
      }
    }
   
    DbDataUtil du = new DbDataUtil(this.connUtil);
    ImportBuilder fullData = du.buildImport().from("/ju-testing/data/default-fullData.xml");
    if (emptyTables) {
      fullData.executeDeleteAll();
    } else {
      fullData.executeCleanInsert();
    }
   
    // Load TIMEFIELD for non-oracle DBs
    if (this.connUtil.getDbType() != DbType.ORACLE && !emptyTables) {
      du.buildImport().from("/ju-testing/data/default-fullData-dataTypes.xml").executeUpdate();
View Full Code Here

Examples of ch.inftec.ju.testing.db.DbDataUtil.ImportBuilder

        this.runLiquibaseChangeLog("ju-testing/data/default-changeLog-mySqlEngine.xml");
      }
    }
   
    DbDataUtil du = new DbDataUtil(this.connUtil);
    ImportBuilder fullData = du.buildImport().from("/ju-testing/data/default-fullData.xml");
    if (emptyTables) {
      fullData.executeDeleteAll();
    } else {
      fullData.executeCleanInsert();
    }
   
    // Load TIMEFIELD for non-oracle DBs
    if (this.connUtil.getDbType() != DbType.ORACLE && !emptyTables) {
      du.buildImport().from("/ju-testing/data/default-fullData-dataTypes.xml").executeUpdate();
View Full Code Here

Examples of com.asakusafw.utils.java.model.util.ImportBuilder

            this.moduleId = moduleId;
            this.slots = slots;
            this.outputDirectory = outputDirectory;
            this.factory = environment.getModelFactory();
            Name packageName = environment.getEpiloguePackageName(moduleId);
            this.importer = new ImportBuilder(
                    factory,
                    factory.newPackageDeclaration(packageName),
                    ImportBuilder.Strategy.TOP_LEVEL);
        }
View Full Code Here

Examples of com.asakusafw.utils.java.model.util.ImportBuilder

            this.reduceUnits = model.getReduceUnits();
            this.shuffle = model.getShuffleModel();
            this.factory = environment.getModelFactory();
            Name packageName = environment.getStagePackageName(
                    model.getStageBlock().getStageNumber());
            this.importer = new ImportBuilder(
                    factory,
                    factory.newPackageDeclaration(packageName),
                    ImportBuilder.Strategy.TOP_LEVEL);
            this.names = new NameGenerator(factory);
            this.context = names.create("context");
View Full Code Here

Examples of com.asakusafw.utils.java.model.util.ImportBuilder

                    factory,
                    prologue
                        ? envinronment.getProloguePackageName(moduleId)
                        : envinronment.getEpiloguePackageName(moduleId),
                    JavaName.of(slot.getName()).toMemberName());
            this.importer = new ImportBuilder(
                    factory,
                    factory.newPackageDeclaration(packageName),
                    Strategy.TOP_LEVEL);
        }
View Full Code Here

Examples of com.asakusafw.utils.java.model.util.ImportBuilder

            assert slots != null;
            this.slots = slots;
            this.environment = envinronment;
            this.moduleId = moduleId;
            this.factory = envinronment.getModelFactory();
            this.importer = new ImportBuilder(
                    factory,
                    factory.newPackageDeclaration(envinronment.getEpiloguePackageName(moduleId)),
                    Strategy.TOP_LEVEL);
        }
View Full Code Here

Examples of com.asakusafw.utils.java.model.util.ImportBuilder

            this.prologue = prologue;
            this.factory = environment.getModelFactory();
            Name packageName = prologue
                ? environment.getProloguePackageName(moduleId)
                : environment.getEpiloguePackageName(moduleId);
            this.importer = new ImportBuilder(
                    factory,
                    factory.newPackageDeclaration(packageName),
                    ImportBuilder.Strategy.TOP_LEVEL);
        }
View Full Code Here

Examples of com.asakusafw.utils.java.model.util.ImportBuilder

            this.stageBlock = stageBlock;
            this.fragment = fragment;
            this.shuffle = shuffle;
            this.factory = environment.getModelFactory();
            Name packageName = environment.getStagePackageName(stageBlock.getStageNumber());
            this.importer = new ImportBuilder(
                    factory,
                    factory.newPackageDeclaration(packageName),
                    ImportBuilder.Strategy.TOP_LEVEL);
            this.names = new NameGenerator(factory);
            this.valueType = importer.resolve(factory.newNamedType(
View Full Code Here

Examples of com.asakusafw.utils.java.model.util.ImportBuilder

            assert stage != null;
            this.environment = environment;
            this.stage = stage;
            this.factory = environment.getModelFactory();
            Name packageName = environment.getStagePackageName(stage.getNumber());
            this.importer = new ImportBuilder(
                    factory,
                    factory.newPackageDeclaration(packageName),
                    ImportBuilder.Strategy.TOP_LEVEL);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.