Package de.scoopgmbh.copper.persistent

Examples of de.scoopgmbh.copper.persistent.OracleDialect


  private DatabaseDialect createDialect(DataSource ds, WorkflowRepository wfRepository, EngineIdProvider engineIdProvider) throws SQLException {
    Connection c = ds.getConnection();
    try {
      String name = c.getMetaData().getDatabaseProductName();
      if ("oracle".equalsIgnoreCase(name)) {
        OracleDialect dialect = new OracleDialect();
        dialect.setWfRepository(wfRepository);
        dialect.setEngineIdProvider(engineIdProvider);
        dialect.setMultiEngineMode(false);
        return dialect;
      }
      if ("Apache Derby".equalsIgnoreCase(name)) {
        DerbyDbDialect dialect = new DerbyDbDialect();
        dialect.setDataSource(ds);
        dialect.setWfRepository(wfRepository);
        return dialect;
      }
      throw new Error("No dialect available for DBMS "+name);
    }
    finally {
View Full Code Here


      datasource_oracle.setIdleConnectionTestPeriod(15);
    } catch (PropertyVetoException e1) {
      throw new RuntimeException(e1);
    }

    final OracleDialect oracleDialect = new OracleDialect();
    oracleDialect.setWfRepository(workflowRepository);
    oracleDialect.setRuntimeStatisticsCollector(runtimeStatisticsCollector);
    oracleDialect.setDbBatchingLatencyMSec(0);
    oracleDialect.setEngineIdProvider(ENGINE_ID_PROVIDER);
    oracleDialect.startup();
    return new DatabaseData(oracleDialect, datasource_oracle);
  }
View Full Code Here

    }
    this.datasource=datasource_oracle;
   
    cleanDB(datasource);

    final OracleDialect oracleDialect = new OracleDialect();
//    oracleDialect.setWfRepository(workflowRepository);
    oracleDialect.setDbBatchingLatencyMSec(0);
    oracleDialect.setEngineIdProvider(new EngineIdProviderBean("a"));
    oracleDialect.startup();
    this.databaseDialect = oracleDialect;
   
   
    OracleMonitoringDbDialect derbyMonitoringDbDialect = new OracleMonitoringDbDialect(new StandardJavaSerializer(), new DummyPostProcessor(),new BatchingAuditTrail());
    this.monitoringDbDialect = derbyMonitoringDbDialect;
View Full Code Here

TOP

Related Classes of de.scoopgmbh.copper.persistent.OracleDialect

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.