test_class.declarator: dbManager
test_class.original_string: DBManager dbManager ;
test_class.type: DBManager
test_class.var_name: dbManager
test_class.declarator: filePath = "src/test/resources/temp"
test_class.original_string: String filePath = "src/test/resources/temp";
test_class.type: String
test_class.var_name: filePath
test_class.file: dddlib-db/src/test/java/org/dayatang/db/oracle/OracleDBManagerTest.java
test_class.identifier: OracleDBManagerTest
test_case.body: @Test
  	public void testExecuteSQL() {
  		String sqlFile = "src/test/resources/scripts/oracle.sql";
  		dbManager.executeSQL(sqlFile);
  	}
test_case.class_method_signature: OracleDBManagerTest.testExecuteSQL()
test_case.full_signature: @Test public void testExecuteSQL()
test_case.identifier: testExecuteSQL
test_case.invocations: executeSQL
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testExecuteSQL()
focal_class.declarator: logger = LogFactory.getLog(OracleDBManager.class)
focal_class.modifier: private
focal_class.original_string: private Log logger = LogFactory.getLog(OracleDBManager.class);
focal_class.type: Log
focal_class.var_name: logger
focal_class.declarator: jConn
focal_class.modifier: private
focal_class.original_string: private DBConnection jConn;
focal_class.type: DBConnection
focal_class.var_name: jConn
focal_class.file: dddlib-db/src/main/java/org/dayatang/db/oracle/OracleDBManager.java
focal_class.identifier: OracleDBManager
focal_class.class_method_signature: OracleDBManager.OracleDBManager()
focal_class.full_signature: public  OracleDBManager()
focal_class.identifier: OracleDBManager
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  OracleDBManager()
focal_class.class_method_signature: OracleDBManager.cleanDatabase()
focal_class.full_signature: @Override public void cleanDatabase()
focal_class.identifier: cleanDatabase
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void cleanDatabase()
focal_class.class_method_signature: OracleDBManager.dropConstraint()
focal_class.full_signature: private void dropConstraint()
focal_class.identifier: dropConstraint
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void dropConstraint()
focal_class.class_method_signature: OracleDBManager.executeSQL(String sqlFile)
focal_class.full_signature: @Override public void executeSQL(String sqlFile)
focal_class.identifier: executeSQL
focal_class.modifiers: @Override public
focal_class.parameters: (String sqlFile)
focal_class.return: void
focal_class.signature: void executeSQL(String sqlFile)
focal_class.class_method_signature: OracleDBManager.exportAll(String filePath)
focal_class.full_signature: @Override public void exportAll(String filePath)
focal_class.identifier: exportAll
focal_class.modifiers: @Override public
focal_class.parameters: (String filePath)
focal_class.return: void
focal_class.signature: void exportAll(String filePath)
focal_class.class_method_signature: OracleDBManager.exportExcludes(String filePath,
  			List<String> excludedTablePrefixs)
focal_class.full_signature: @Override public void exportExcludes(String filePath,
  			List<String> excludedTablePrefixs)
focal_class.identifier: exportExcludes
focal_class.modifiers: @Override public
focal_class.parameters: (String filePath,
  			List<String> excludedTablePrefixs)
focal_class.return: void
focal_class.signature: void exportExcludes(String filePath,
  			List<String> excludedTablePrefixs)
focal_class.class_method_signature: OracleDBManager.exportIncludes(String filePath,
  			List<String> includedTablePrefixs)
focal_class.full_signature: @Override public void exportIncludes(String filePath,
  			List<String> includedTablePrefixs)
focal_class.identifier: exportIncludes
focal_class.modifiers: @Override public
focal_class.parameters: (String filePath,
  			List<String> includedTablePrefixs)
focal_class.return: void
focal_class.signature: void exportIncludes(String filePath,
  			List<String> includedTablePrefixs)
focal_class.class_method_signature: OracleDBManager.exportFileName(String filePath)
focal_class.full_signature: private String exportFileName(String filePath)
focal_class.identifier: exportFileName
focal_class.modifiers: private
focal_class.parameters: (String filePath)
focal_class.return: String
focal_class.signature: String exportFileName(String filePath)
focal_class.class_method_signature: OracleDBManager.getBaseOracleExpSQL()
focal_class.full_signature: private StringBuffer getBaseOracleExpSQL()
focal_class.identifier: getBaseOracleExpSQL
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: StringBuffer
focal_class.signature: StringBuffer getBaseOracleExpSQL()
focal_class.superclass: extends AbstractDBManager
focal_method.body: @Override
  	public void executeSQL(String sqlFile) {
  
  		StringBuffer command = new StringBuffer();
  
  		command.append("cmd /c sqlplus ");
  		command.append(username + "/" + password);
  		command.append("@" + databaseName);
  
  		command.append(" @" + sqlFile);
  
  		try {
  			logger.info("执行SQL文件：" + sqlFile);
  			Process process = Runtime.getRuntime().exec(command.toString());
  			process.waitFor();
  
  		} catch (IOException e) {
  			logger.error("执行SQL文件出错：" + sqlFile, e);
  		} catch (InterruptedException e) {
  			logger.error("执行SQL文件出错：" + sqlFile, e);
  		}
  
  	}
focal_method.class_method_signature: OracleDBManager.executeSQL(String sqlFile)
focal_method.full_signature: @Override public void executeSQL(String sqlFile)
focal_method.identifier: executeSQL
focal_method.invocations: append append append append info exec getRuntime toString waitFor error error
focal_method.modifiers: @Override public
focal_method.parameters: (String sqlFile)
focal_method.return: void
focal_method.signature: void executeSQL(String sqlFile)