Esempio n. 1
0
  protected void testExport() {
    IDBSolution dbsolution = DBSolutionFactory.getDBSolution();

    String[] temp = tables.toArray(new String[] {});
    dbsolution.dbExport(temp, "D:\\dbsolution.xml");
  }
Esempio n. 2
0
 protected void testImport() {
   IDBSolution dbsolution = DBSolutionFactory.getDBSolution();
   dbsolution.setPrefix("es_");
   dbsolution.dbImport("file:com/enation/app/base/base.xml");
 }
Esempio n. 3
0
 /**
  * 使用新的数据库中间件来导入数据
  *
  * @param productId
  * @param fragment
  * @return
  */
 private void anyDBInstall(String dataSqlPath) throws Exception {
   IDBSolution dbsolution = DBSolutionFactory.getDBSolution();
   dbsolution.setPrefix("es_");
   dbsolution.dbImport(dataSqlPath);
 }