示例#1
0
  protected void testExport() {
    IDBSolution dbsolution = DBSolutionFactory.getDBSolution();

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