提交 f8c302f4 authored 作者: Thomas Mueller's avatar Thomas Mueller

Rename method.

上级 b4aa3f5a
...@@ -25,7 +25,7 @@ import org.h2.util.Utils; ...@@ -25,7 +25,7 @@ import org.h2.util.Utils;
*/ */
public class DbUpgradeFromVersion1 { public class DbUpgradeFromVersion1 {
private static boolean scriptInTmpDir; private static boolean scriptInTempDir;
private static boolean deleteOldDb; private static boolean deleteOldDb;
private String url; private String url;
...@@ -138,7 +138,7 @@ public class DbUpgradeFromVersion1 { ...@@ -138,7 +138,7 @@ public class DbUpgradeFromVersion1 {
} }
File scriptFile = null; File scriptFile = null;
try { try {
if (scriptInTmpDir) { if (scriptInTempDir) {
scriptFile = File.createTempFile("h2dbmigration", "backup.sql"); scriptFile = File.createTempFile("h2dbmigration", "backup.sql");
} else { } else {
scriptFile = new File(oldDataFile.getAbsolutePath() + "_script.sql"); scriptFile = new File(oldDataFile.getAbsolutePath() + "_script.sql");
...@@ -212,11 +212,11 @@ public class DbUpgradeFromVersion1 { ...@@ -212,11 +212,11 @@ public class DbUpgradeFromVersion1 {
* directory. Use this method to change the directory to the temp * directory. Use this method to change the directory to the temp
* directory. * directory.
* *
* @param scriptInTmpDir true if the conversion script should be * @param scriptInTempDir true if the conversion script should be
* located in the temp directory. * located in the temp directory.
*/ */
public static void setScriptInTmpDir(boolean scriptInTmpDir) { public static void setScriptInTempDir(boolean scriptInTempDir) {
DbUpgradeFromVersion1.scriptInTmpDir = scriptInTmpDir; DbUpgradeFromVersion1.scriptInTempDir = scriptInTempDir;
} }
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论