Package com.scooterframework.tools.common

Examples of com.scooterframework.tools.common.Generator.generate()


     
        String mgPath = templateRoot + File.separator +
                "model" + File.separator +
                "Model.tmpl";
      Generator mg = new ModelGenerator(mgPath, allProps, connName, model, table, enhance);
      mg.generate();
     
        String mtgPath = templateRoot + File.separator +
                "model" + File.separator +
                "ModelTest.tmpl";
      Generator mtg = new ModelTestGenerator(mtgPath, allProps, connName, model, table, enhance);
View Full Code Here


     
        String mtgPath = templateRoot + File.separator +
                "model" + File.separator +
                "ModelTest.tmpl";
      Generator mtg = new ModelTestGenerator(mtgPath, allProps, connName, model, table, enhance);
      mtg.generate();

      //generate views

        String vigPath = templateRoot + File.separator +
                "view" + File.separator +
View Full Code Here

        String vigPath = templateRoot + File.separator +
                "view" + File.separator +
                "scaffold" + File.separator +
                "index.tmpl";
      Generator vig = new ViewIndexGenerator(vigPath, allProps, connName, controller, model, table);
      vig.generate();

        String vsgPath = templateRoot + File.separator +
                "view" + File.separator +
                "scaffold" + File.separator +
                "show.tmpl";
View Full Code Here

        String vsgPath = templateRoot + File.separator +
                "view" + File.separator +
                "scaffold" + File.separator +
                "show.tmpl";
      Generator vsg = new ViewShowGenerator(vsgPath, allProps, connName, controller, model, table);
      vsg.generate();

        String vagPath = templateRoot + File.separator +
                "view" + File.separator +
                "scaffold" + File.separator +
                "add.tmpl";
View Full Code Here

        String vagPath = templateRoot + File.separator +
                "view" + File.separator +
                "scaffold" + File.separator +
                "add.tmpl";
      Generator vag = new ViewAddGenerator(vagPath, allProps, connName, controller, model, table);
      vag.generate();

        String vegPath = templateRoot + File.separator +
                "view" + File.separator +
                "scaffold" + File.separator +
                "edit.tmpl";
View Full Code Here

        String vegPath = templateRoot + File.separator +
                "view" + File.separator +
                "scaffold" + File.separator +
                "edit.tmpl";
      Generator veg = new ViewEditGenerator(vegPath, allProps, connName, controller, model, table);
      veg.generate();

        String vpgPath = templateRoot + File.separator +
                "view" + File.separator +
                "scaffold" + File.separator +
                "paged_list.tmpl";
View Full Code Here

        String vpgPath = templateRoot + File.separator +
                "view" + File.separator +
                "scaffold" + File.separator +
                "paged_list.tmpl";
      Generator vpg = new ViewPagedGenerator(vpgPath, allProps, connName, controller, model, table);
      vpg.generate();

      //update resources
      Generator rg = new ResourceGenerator(allProps, controller);
      rg.generate();
    } else if ("scaffold-ajax".equals(typeName)) {
View Full Code Here

      Generator vpg = new ViewPagedGenerator(vpgPath, allProps, connName, controller, model, table);
      vpg.generate();

      //update resources
      Generator rg = new ResourceGenerator(allProps, controller);
      rg.generate();
    } else if ("scaffold-ajax".equals(typeName)) {
      //generate application controller
        String cagPath = templateRoot + File.separator +
                "controller" + File.separator +
                "ApplicationController.tmpl";
View Full Code Here

      //generate application controller
        String cagPath = templateRoot + File.separator +
                "controller" + File.separator +
                "ApplicationController.tmpl";
      Generator cag = new ControllerApplicationGenerator(cagPath, allProps);
      cag.generate(false);

      //generate controller
        String csgPath = templateRoot + File.separator +
                "controller" + File.separator +
                "ControllerScaffoldAjax.tmpl";
View Full Code Here

      //generate controller
        String csgPath = templateRoot + File.separator +
                "controller" + File.separator +
                "ControllerScaffoldAjax.tmpl";
      Generator csg = new ControllerScaffoldGenerator(csgPath, allProps, connName, controller, model, table);
      csg.generate();
     
        String cstgPath = templateRoot + File.separator +
                "controller" + File.separator +
                "ControllerScaffoldTest.tmpl";
      Generator cstg = new ControllerScaffoldTestGenerator(cstgPath, allProps, connName, controller, model, table);
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.