Package org.uengine.util.dao

Examples of org.uengine.util.dao.DataSourceConnectionFactory


  static public ArrayList getDatabaseDirectory(String dsn) throws Exception{
    if("".equals(dsn)||dsn==null){
      return getDatabaseDirectory((ConnectionFactory)null);
    }else{
      DataSourceConnectionFactory dsnCF = new DataSourceConnectionFactory();
      dsnCF.setDataSourceJndiName(dsn);
      return getDatabaseDirectory(dsnCF);
    }
  }
View Full Code Here


import org.uengine.util.dao.DataSourceConnectionFactory;

public class testClass {
  public static void main(String[] args) throws Exception {
    DataSourceConnectionFactory dsnCF = new DataSourceConnectionFactory();
    dsnCF.setDataSourceJndiName("java:/uEngineDS");
    List tableList = org.uengine.kernel.descriptor.DatabaseMappingActivityDescriptor.getTableNames(dsnCF);
    System.out.println("tableList.size():"+tableList.size());

 
  }
View Full Code Here

    return con;
  }

  public Connection createManagedExternalConnection(String dataSourceJndiName) throws Exception{
   
    DataSourceConnectionFactory connFactory = new DataSourceConnectionFactory();
    connFactory.setDataSourceJndiName(dataSourceJndiName);
    return createManagedExternalConnection(connFactory);

  }
View Full Code Here

TOP

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

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.