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); }