Package org.uengine.util.dao

Examples of org.uengine.util.dao.JDBCConnectionFactory


  }
 
  public static void main(String args[]) throws Exception{
    DefinitionSynchronizer ds = new DefinitionSynchronizer();
   
    JDBCConnectionFactory srcConnFactory = new JDBCConnectionFactory();{
      srcConnFactory.setConnectionString    ("jdbc:oracle:thin:@10.10.8.6:1521:orcl");
      srcConnFactory.setDriverClass      ("oracle.jdbc.OracleDriver");
      srcConnFactory.setUserId        ("eagles_ep");
      srcConnFactory.setPassword        ("eagles_ep_dba");
    }
   
    JDBCConnectionFactory targetConnFactory = new JDBCConnectionFactory();{
      targetConnFactory.setConnectionString  ("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.9.219)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.9.220)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=epdb)))");
      targetConnFactory.setDriverClass    ("oracle.jdbc.OracleDriver");
      targetConnFactory.setUserId        ("eagles_ep");
      targetConnFactory.setPassword      ("eagles_ep_dba");
    }
   
    System.out.println("uEngine Process Definition Synchronizer\n");
    System.out.println(". SOURCE database server info: \n" + srcConnFactory);
    System.out.println(". TARGET database server info: \n" + targetConnFactory);
View Full Code Here


      InitialContext ctx = new InitialContext();
      ds = (javax.sql.DataSource) ctx.lookup(jndiName);
     
    } else if (this.getConnectionFactory().getClass() == JDBCConnectionFactory.class) {
     
      JDBCConnectionFactory cf = (JDBCConnectionFactory) this.getConnectionFactory();
      BasicDataSource bds = new BasicDataSource();
      bds.setDriverClassName(cf.getDriverClass());
      bds.setUrl(cf.getConnectionString());
      bds.setUsername(cf.getUserId());
      bds.setPassword(cf.getPassword());
      ds = bds;
     
    }
   
    String actualSqlStatement = evaluateContent(instance, this.getSqlStatement()).toString().trim();
View Full Code Here

TOP

Related Classes of org.uengine.util.dao.JDBCConnectionFactory

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.