Package org.apache.cayenne.configuration

Examples of org.apache.cayenne.configuration.ToolModule


    protected boolean createFK = true;

    @Override
    public void execute() {
       
        Injector injector = DIBootstrap.createInjector(new ToolModule());
        AdhocObjectFactory objectFactory = injector.getInstance(AdhocObjectFactory.class);

        // prepare defaults
        if (adapter == null) {
            adapter = objectFactory.newInstance(DbAdapter.class, JdbcAdapter.class.getName());
View Full Code Here


     *
     * @param adapter The db adapter to set.
     */
    public void setAdapter(String adapter) {
        if (adapter != null) {
            Injector injector = DIBootstrap.createInjector(new ToolModule());
            AdhocObjectFactory objectFactory = injector.getInstance(AdhocObjectFactory.class);
           
            this.adapter = objectFactory.newInstance(DbAdapter.class, adapter);
        }
    }
View Full Code Here

    private boolean createFK;


    public void execute() throws MojoExecutionException, MojoFailureException {
     
      Injector injector = DIBootstrap.createInjector(new ToolModule());
      AdhocObjectFactory objectFactory = injector.getInstance(AdhocObjectFactory.class);

    Log logger = new MavenLogger(this);

        logger.info(String.format("connection settings - [driver: %s, url: %s, username: %s]", driver, url, username));
View Full Code Here

   */
  private Log logger;

  public void execute() throws MojoExecutionException, MojoFailureException {

    Injector injector = DIBootstrap.createInjector(new ToolModule());
    AdhocObjectFactory objectFactory = injector
        .getInstance(AdhocObjectFactory.class);

    logger = new MavenLogger(this);

View Full Code Here

TOP

Related Classes of org.apache.cayenne.configuration.ToolModule

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.