// Step 3: write the generated script into rootpath public string writeStringToDisk(string rootPath, string objType, string scriptStr, string userID) { FileUtil fu = new FileUtil(); string fileName = userID.ToLower() + "-db-ddl-" + Constants.exeSeqDict[objType]; fu.setRootPath(rootPath); string outputFileName = fu.writeScript2CorrectFile(scriptStr, fileName); return outputFileName; }
/************************************* * write the script into disk *************************************/ private string writeStringToDisk(string rootPath, string tableName, string scriptStr) { FileUtil fu = new FileUtil(); string fileName = tableName + "_preload.sql"; fu.setRootPath(rootPath); string outputFileName = fu.writeScript2CorrectFile(scriptStr, fileName); return outputFileName; }