Package org.apache.cayenne.gen

Examples of org.apache.cayenne.gen.ClassGenerationAction.execute()


            generatorAction.setTimestamp(map.lastModified());
            generatorAction.setDataMap(dataMap);
            generatorAction.addEntities(filterAction.getFilteredEntities(dataMap));
            generatorAction.addEmbeddables(filterAction.getFilteredEmbeddables(dataMap));
            generatorAction.addQueries(dataMap.getQueries());
            generatorAction.execute();
        }
        catch (Exception e) {
            throw new BuildException(e);
        }
    }
View Full Code Here


            generatorAction.setLogger(logger);
            generatorAction.setTimestamp(map.lastModified());
            generatorAction.setDataMap(dataMap);
            generatorAction.addEntities(filterAction.getFilteredEntities(dataMap));
            generatorAction.addEmbeddables(filterAction.getFilteredEmbeddables(dataMap));
            generatorAction.execute();
        }
        catch (Exception e) {
            throw new BuildException(e);
        }
    }
View Full Code Here

      //ksenia khailenko 15.10.2010
      //TODO add the "includeEmbeddables" and "excludeEmbeddables" attributes
      generator.addEmbeddables(dataMap.getEmbeddables());
      //TODO add the "includeQueries" and "excludeQueries" attributes
      generator.addQueries(dataMap.getQueries());
      generator.execute();
    } catch (Exception e) {
      throw new MojoExecutionException("Error generating classes: ", e);
    }
  }
View Full Code Here

      //ksenia khailenko 15.10.2010
      //TODO add the "includeEmbeddables" and "excludeEmbeddables" attributes
      generator.addEmbeddables(dataMap.getEmbeddables());
      //TODO add the "includeQueries" and "excludeQueries" attributes
      generator.addQueries(dataMap.getQueries());
      generator.execute();
    } catch (Exception e) {
      throw new MojoExecutionException("Error generating classes: ", e);
    }
  }
View Full Code Here

    public void generateAction() {
        ClassGenerationAction generator = generatorSelector.getGenerator();

        if (generator != null) {
            try {
                generator.execute();
                JOptionPane.showMessageDialog(
                        this.getView(),
                        "Class generation finished");
            }
            catch (Exception e) {
View Full Code Here

            generatorAction.setTimestamp(map.lastModified());
            generatorAction.setDataMap(dataMap);
            generatorAction.addEntities(filterAction.getFilteredEntities(dataMap));
            generatorAction.addEmbeddables(filterAction.getFilteredEmbeddables(dataMap));
            generatorAction.addQueries(dataMap.getQueries());
            generatorAction.execute();
        }
        catch (Exception e) {
            throw new BuildException(e);
        }
    }
View Full Code Here

      // TODO add the "includeEmbeddables" and "excludeEmbeddables"
      // attributes
      generator.addEmbeddables(dataMap.getEmbeddables());
      // TODO add the "includeQueries" and "excludeQueries" attributes
      generator.addQueries(dataMap.getQueries());
      generator.execute();
    } catch (Exception e) {
      throw new MojoExecutionException("Error generating classes: ", e);
    }
  }
View Full Code Here

      generator.setTimestamp(map.lastModified());
      generator.setDataMap(dataMap);
      generator.addEntities(filterAction.getFilteredEntities(dataMap));
      generator.addEmbeddables(filterAction
          .getFilteredEmbeddables(dataMap));
      generator.execute();
    } catch (Exception e) {
      throw new MojoExecutionException("Error generating classes: ", e);
    }
  }
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.