コード例 #1
0
 public void test() {
   EmployeeProject project = new EmployeeProject();
   ((DatasourceLogin) project.getDatasourceLogin())
       .usePlatform(OracleDBPlatformHelper.getInstance().getOracle9Platform());
   XMLProjectWriter.write("employee_project.xml", project);
   XMLProjectReader.read("employee_project.xml", getClass().getClassLoader());
 }
コード例 #2
0
  public void applyLogin() {
    DatabaseLogin login = new DatabaseLogin();
    login.usePlatform(OracleDBPlatformHelper.getInstance().getOracle9Platform());
    login.setDriverClassName("oracle.jdbc.OracleDriver");
    login.setConnectionString("jdbc:oracle:thin:@tlsvrdb5.ca.oracle.com:TOPLINK");
    login.setUserName("qa9");
    login.setEncryptedPassword("BB742416276274A46959A54867978929");

    // Configuration Properties.

    setDatasourceLogin(login);
  }