congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DbGeneratorTask
Code IndexAdd Tabnine to your IDE (free)

How to use
DbGeneratorTask
in
org.apache.cayenne.tools

Best Java code snippets using org.apache.cayenne.tools.DbGeneratorTask (Showing top 2 results out of 315)

origin: org.apache.cayenne/cayenne-tools

log(String.format("connection settings - [driver: %s, url: %s, username: %s]", driver, url, userName), Project.MSG_VERBOSE);
log(String.format("generator options - [dropTables: %s, dropPK: %s, createTables: %s, createPK: %s, createFK: %s]",
    dropTables, dropPK, createTables, createPK, createFK), Project.MSG_VERBOSE);
validateAttributes();
  DataMap dataMap = loadDataMap();
  DbGenerator generator = new DbGenerator(adapter, dataMap);
  generator.setShouldCreateFKConstraints(createFK);
  log(message, Project.MSG_ERR);
  throw new BuildException(message, th);
origin: org.apache.cayenne/cayenne-nodeps

public void execute() {
  configureLogging();
  log("connection settings - [driver: "
      + driver
      + ", url: "
      + "]", Project.MSG_VERBOSE);
  log("generator options - [dropTables: "
      + dropTables
      + ", dropPK: "
      + "]", Project.MSG_VERBOSE);
  validateAttributes();
    DataMap dataMap = loadDataMap();
    DbGenerator generator = new DbGenerator(adapter, dataMap);
    generator.setShouldCreateFKConstraints(createFK);
org.apache.cayenne.toolsDbGeneratorTask

Javadoc

An Ant Task that is a frontend to Cayenne DbGenerator allowing schema generation from DataMap using Ant.

Most used methods

  • loadDataMap
    Loads and returns DataMap based on map attribute.
  • log
  • validateAttributes
    Validates atttributes that are not related to internal DefaultClassGenerator. Throws BuildException
  • configureLogging

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Join (org.hibernate.mapping)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now