Exemplo n.º 1
0
 protected void testImport() {
   IDBSolution dbsolution = DBSolutionFactory.getDBSolution();
   dbsolution.setPrefix("es_");
   dbsolution.dbImport("file:com/enation/app/base/base.xml");
 }
Exemplo n.º 2
0
 /**
  * 使用新的数据库中间件来导入数据
  *
  * @param productId
  * @param fragment
  * @return
  */
 private void anyDBInstall(String dataSqlPath) throws Exception {
   IDBSolution dbsolution = DBSolutionFactory.getDBSolution();
   dbsolution.setPrefix("es_");
   dbsolution.dbImport(dataSqlPath);
 }