Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
08a00d6b
提交
08a00d6b
authored
6月 20, 2008
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
the ChangePassword tool is now called ChangeFileEncryption
上级
0c1a0c12
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
30 个修改的文件
包含
1071 行增加
和
1035 行删除
+1071
-1035
changelog.html
h2/src/docsrc/html/changelog.html
+7
-1
tutorial.html
h2/src/docsrc/html/tutorial.html
+1
-1
classes.html
h2/src/docsrc/javadoc/classes.html
+1
-1
_docs_en.utf8.txt
h2/src/docsrc/text/_docs_en.utf8.txt
+335
-323
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+335
-323
_docs_en.properties
h2/src/docsrc/textbase/_docs_en.properties
+328
-324
_messages_en.properties
h2/src/docsrc/textbase/_messages_en.properties
+1
-0
_text_en.properties
h2/src/docsrc/textbase/_text_en.properties
+2
-2
_text_de.properties
h2/src/main/org/h2/server/web/res/_text_de.properties
+2
-2
_text_en.properties
h2/src/main/org/h2/server/web/res/_text_en.properties
+2
-2
_text_es.properties
h2/src/main/org/h2/server/web/res/_text_es.properties
+2
-2
_text_fr.properties
h2/src/main/org/h2/server/web/res/_text_fr.properties
+2
-2
_text_hu.properties
h2/src/main/org/h2/server/web/res/_text_hu.properties
+2
-2
_text_in.properties
h2/src/main/org/h2/server/web/res/_text_in.properties
+2
-2
_text_it.properties
h2/src/main/org/h2/server/web/res/_text_it.properties
+2
-2
_text_ja.properties
h2/src/main/org/h2/server/web/res/_text_ja.properties
+2
-2
_text_nl.properties
h2/src/main/org/h2/server/web/res/_text_nl.properties
+2
-2
_text_pl.properties
h2/src/main/org/h2/server/web/res/_text_pl.properties
+2
-2
_text_pt_br.properties
h2/src/main/org/h2/server/web/res/_text_pt_br.properties
+2
-2
_text_pt_pt.properties
h2/src/main/org/h2/server/web/res/_text_pt_pt.properties
+2
-2
_text_ru.properties
h2/src/main/org/h2/server/web/res/_text_ru.properties
+2
-2
_text_tr.properties
h2/src/main/org/h2/server/web/res/_text_tr.properties
+2
-2
_text_uk.properties
h2/src/main/org/h2/server/web/res/_text_uk.properties
+2
-2
_text_zh_cn.properties
h2/src/main/org/h2/server/web/res/_text_zh_cn.properties
+2
-2
_text_zh_tw.properties
h2/src/main/org/h2/server/web/res/_text_zh_tw.properties
+2
-2
tools.jsp
h2/src/main/org/h2/server/web/res/tools.jsp
+9
-9
ChangeFileEncryption.java
h2/src/main/org/h2/tools/ChangeFileEncryption.java
+8
-7
TestSampleApps.java
h2/src/test/org/h2/test/unit/TestSampleApps.java
+4
-4
TestTools.java
h2/src/test/org/h2/test/unit/TestTools.java
+5
-5
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+1
-1
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
08a00d6b
...
...
@@ -17,7 +17,13 @@ Change Log
<h2>
Next Version (unreleased)
</h2>
<ul>
<li>
Databases larger than 1 GB was sometimes very slow if a lot of data was deleted previously. Fixed.
<li>
The ChangePassword tool is now called ChangeFileEncryption.
</li><li>
It is no longer allowed to create columns with the data type NULL.
Also, it is no longer allowed to convert a column to the data type NULL.
This was possible before but caused data loss.
</li><li>
When using computed columns or default values with a different data type than the column data type,
a class cast exception could occur. Fixed.
</li><li>
Databases larger than 1 GB was sometimes very slow if a lot of data was deleted previously. Fixed.
</li><li>
RUNSCRIPT could throw a NullPointerException if the script name was an expression.
</li><li>
Improved compatibility. New compatibility modes for Oracle and Derby.
New compatibility flag uniqueIndexNullDistinct to only allow one row with 'NULL' in a unique
...
...
h2/src/docsrc/html/tutorial.html
浏览文件 @
08a00d6b
...
...
@@ -526,7 +526,7 @@ java -cp h2.jar org.h2.tools.Backup -?
The command line tools are:
</p>
<ul><li><b>
Backup
</b>
creates a backup of a database.
</li><li><b>
Change
Password
</b>
allows changing the file password
of a database.
</li><li><b>
Change
FileEncryption
</b>
allows changing the file encryption password or algorithm
of a database.
</li><li><b>
Console
</b>
starts the browser based H2 Console.
</li><li><b>
ConvertTraceFile
</b>
converts a .trace.db file to a Java application and SQL script.
</li><li><b>
CreateCluster
</b>
creates a cluster from a standalone database.
...
...
h2/src/docsrc/javadoc/classes.html
浏览文件 @
08a00d6b
...
...
@@ -49,7 +49,7 @@ org.h2.jdbcx<br />
<b>
Tools
</b><br
/>
org.h2.tools
<br
/>
<a
href=
"org/h2/tools/Backup.html"
target=
"javadoc"
>
Backup
</a><br
/>
<a
href=
"org/h2/tools/Change
Password.html"
target=
"javadoc"
>
ChangePassword
</a><br
/>
<a
href=
"org/h2/tools/Change
FileEncryption.html"
target=
"javadoc"
>
ChangeFileEncryption
</a><br
/>
<a
href=
"org/h2/tools/CompressTool.html"
target=
"javadoc"
>
CompressTool
</a><br
/>
<a
href=
"org/h2/tools/Console.html"
target=
"javadoc"
>
Console
</a><br
/>
<a
href=
"org/h2/tools/ConvertTraceFile.html"
target=
"javadoc"
>
ConvertTraceFile
</a><br
/>
...
...
h2/src/docsrc/text/_docs_en.utf8.txt
浏览文件 @
08a00d6b
差异被折叠。
点击展开。
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
08a00d6b
差异被折叠。
点击展开。
h2/src/docsrc/textbase/_docs_en.properties
浏览文件 @
08a00d6b
差异被折叠。
点击展开。
h2/src/docsrc/textbase/_messages_en.properties
浏览文件 @
08a00d6b
...
...
@@ -129,6 +129,7 @@
90105
=
Exception calling user-defined function
90106
=
Cannot truncate {0}
90107
=
Cannot drop {0} because {1} depends on it
90108
=
Out of memory. Size
\:
{0}
90109
=
View {0} is invalid
\:
{1}
90110
=
{0} out of range
90111
=
Error accessing linked table with SQL statement {0}, cause
\:
{1}
...
...
h2/src/docsrc/textbase/_text_en.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=Run (Ctrl+Enter)
toolbar.sqlStatement
=
SQL statement
tools.backup
=
Backup
tools.backup.help
=
Creates a backup of a database.
tools.change
Password
=
ChangePassword
tools.change
Password.help
=
Allows changing the database file password
.
tools.change
FileEncryption
=
\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#
Allows changing the database file encryption password and algorithm
.
tools.cipher
=
Cipher (AES or XTEA)
tools.commandLine
=
Command line
tools.convertTraceFile
=
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_de.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=Ausführen (Strg+Enter)
toolbar.sqlStatement
=
SQL Befehl
tools.backup
=
Backup
tools.backup.help
=
Erzeugt eine Sichheitskopie eine Datenbank.
tools.change
Password
=
ChangePassword
tools.change
Password.help
=
Erlaubt das Passwort
einer Datenbank zu ändern.
tools.change
FileEncryption
=
\#\#
ChangeFileEncryption
\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm.
\#
Erlaubt, Datei Verschlüsselungs-Passwort und -Algorithmus
einer Datenbank zu ändern.
tools.cipher
=
Verschlüsselung (AES oder XTEA)
tools.commandLine
=
Kommandozeile
tools.convertTraceFile
=
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_en.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=Run (Ctrl+Enter)
toolbar.sqlStatement
=
SQL statement
tools.backup
=
Backup
tools.backup.help
=
Creates a backup of a database.
tools.change
Password
=
ChangePassword
tools.change
Password.help
=
Allows changing the database file password
.
tools.change
FileEncryption
=
\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#
Allows changing the database file encryption password and algorithm
.
tools.cipher
=
Cipher (AES or XTEA)
tools.commandLine
=
Command line
tools.convertTraceFile
=
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_es.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=Ejecutar (Ctrl+Enter)
toolbar.sqlStatement
=
Instrucción SQL
tools.backup
=
\#
Backup
tools.backup.help
=
\#
Creates a backup of a database.
tools.change
Password
=
\#
ChangePassword
tools.change
Password.help
=
\#
Allows changing the database file password
.
tools.change
FileEncryption
=
\#\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm
.
tools.cipher
=
\#
Cipher (AES or XTEA)
tools.commandLine
=
\#
Command line
tools.convertTraceFile
=
\#
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_fr.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=Exécuter (Ctrl+Enter)
toolbar.sqlStatement
=
Instruction SQL
tools.backup
=
\#
Backup
tools.backup.help
=
\#
Creates a backup of a database.
tools.change
Password
=
\#
ChangePassword
tools.change
Password.help
=
\#
Allows changing the database file password
.
tools.change
FileEncryption
=
\#\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm
.
tools.cipher
=
\#
Cipher (AES or XTEA)
tools.commandLine
=
\#
Command line
tools.convertTraceFile
=
\#
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_hu.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=Végrehajtás (Ctrl+Enter)
toolbar.sqlStatement
=
SQL utasítás
tools.backup
=
\#
Backup
tools.backup.help
=
\#
Creates a backup of a database.
tools.change
Password
=
\#
ChangePassword
tools.change
Password.help
=
\#
Allows changing the database file password
.
tools.change
FileEncryption
=
\#\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm
.
tools.cipher
=
\#
Cipher (AES or XTEA)
tools.commandLine
=
\#
Command line
tools.convertTraceFile
=
\#
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_in.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=Jalankan (Ctrl+Enter)
toolbar.sqlStatement
=
Pernyataan SQL
tools.backup
=
\#
Backup
tools.backup.help
=
\#
Creates a backup of a database.
tools.change
Password
=
\#
ChangePassword
tools.change
Password.help
=
\#
Allows changing the database file password
.
tools.change
FileEncryption
=
\#\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm
.
tools.cipher
=
\#
Cipher (AES or XTEA)
tools.commandLine
=
\#
Command line
tools.convertTraceFile
=
\#
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_it.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=Esegui (Ctrl+Invio)
toolbar.sqlStatement
=
Comando SQL
tools.backup
=
\#
Backup
tools.backup.help
=
\#
Creates a backup of a database.
tools.change
Password
=
\#
ChangePassword
tools.change
Password.help
=
\#
Allows changing the database file password
.
tools.change
FileEncryption
=
\#\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm
.
tools.cipher
=
\#
Cipher (AES or XTEA)
tools.commandLine
=
\#
Command line
tools.convertTraceFile
=
\#
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_ja.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=\u5B9F\u884C (Ctrl+Enter)
toolbar.sqlStatement
=
SQL
\u
30B9
\u
30C6
\u
30FC
\u
30C8
\u
30E1
\u
30F3
\u
30C8
tools.backup
=
\u
30D0
\u
30C3
\u
30AF
\u
30A2
\u
30C3
\u
30D7
tools.backup.help
=
\u
30C7
\u
30FC
\u
30BF
\u
30D9
\u
30FC
\u
30B9
\u
306E
\u
30D0
\u
30C3
\u
30AF
\u
30A2
\u
30C3
\u
30D7
\u3092\u
4F5C
\u6210\u3057\u
307E
\u3059\u3002
tools.change
Password=
\u
30D1
\u
30B9
\u
30EF
\u
30FC
\u
30C9
\u
306E
\u5909\u
66F4
tools.change
Password.help
=
\u
30C7
\u
30FC
\u
30BF
\u
30D9
\u
30FC
\u
30B9
\u
306E
\u
30D1
\u
30B9
\u
30EF
\u
30FC
\u
30C9
\u3092\u5909\u
66F4
\u3057\u
307E
\u3059\u3002
tools.change
FileEncryption=
\#\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm.
tools.cipher
=
\u6697\u
53F7
\u5316\u
65B9
\u
5F0F (AES or XTEA)
tools.commandLine
=
\u
30B3
\u
30DE
\u
30F3
\u
30C9
\u
30E9
\u
30A4
\u
30F3
tools.convertTraceFile
=
\u
30C8
\u
30EC
\u
30FC
\u
30B9
\u
30D5
\u
30A1
\u
30A4
\u
30EB
\u
306E
\u5909\u
63DB
...
...
h2/src/main/org/h2/server/web/res/_text_nl.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=Uitvoeren (Ctrl+Enter)
toolbar.sqlStatement
=
SQL statement
tools.backup
=
\#
Backup
tools.backup.help
=
\#
Creates a backup of a database.
tools.change
Password
=
\#
ChangePassword
tools.change
Password.help
=
\#
Allows changing the database file password
.
tools.change
FileEncryption
=
\#\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm
.
tools.cipher
=
\#
Cipher (AES or XTEA)
tools.commandLine
=
\#
Command line
tools.convertTraceFile
=
\#
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_pl.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=Wykonaj (Ctrl+Enter)
toolbar.sqlStatement
=
Zapytanie SQL
tools.backup
=
\#
Backup
tools.backup.help
=
\#
Creates a backup of a database.
tools.change
Password
=
\#
ChangePassword
tools.change
Password.help
=
\#
Allows changing the database file password
.
tools.change
FileEncryption
=
\#\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm
.
tools.cipher
=
\#
Cipher (AES or XTEA)
tools.commandLine
=
\#
Command line
tools.convertTraceFile
=
\#
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_pt_br.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=Executar comando (Ctrl+Enter)
toolbar.sqlStatement
=
Comando SQL
tools.backup
=
\#
Backup
tools.backup.help
=
\#
Creates a backup of a database.
tools.change
Password
=
\#
ChangePassword
tools.change
Password.help
=
\#
Allows changing the database file password
.
tools.change
FileEncryption
=
\#\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm
.
tools.cipher
=
\#
Cipher (AES or XTEA)
tools.commandLine
=
\#
Command line
tools.convertTraceFile
=
\#
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_pt_pt.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=Executar comando (Ctrl+Enter)
toolbar.sqlStatement
=
Comando SQL
tools.backup
=
\#
Backup
tools.backup.help
=
\#
Creates a backup of a database.
tools.change
Password
=
\#
ChangePassword
tools.change
Password.help
=
\#
Allows changing the database file password
.
tools.change
FileEncryption
=
\#\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm
.
tools.cipher
=
\#
Cipher (AES or XTEA)
tools.commandLine
=
\#
Command line
tools.convertTraceFile
=
\#
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_ru.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=&\#1042;&\#1099;&\#1087;&\#1086;&\#1083;&\#1085;&\#1080;&\#1090;&\#1
toolbar.sqlStatement
=
SQL-&
\#
1079;&
\#
1072;&
\#
1087;&
\#
1088;&
\#
1086;&
\#
1089;
tools.backup
=
\#
Backup
tools.backup.help
=
\#
Creates a backup of a database.
tools.change
Password
=
\#
ChangePassword
tools.change
Password.help
=
\#
Allows changing the database file password
.
tools.change
FileEncryption
=
\#\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm
.
tools.cipher
=
\#
Cipher (AES or XTEA)
tools.commandLine
=
\#
Command line
tools.convertTraceFile
=
\#
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_tr.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=&\#304;&\#351;lemi y&\#252;r&\#252;t
toolbar.sqlStatement
=
SQL komutu
tools.backup
=
\#
Backup
tools.backup.help
=
\#
Creates a backup of a database.
tools.change
Password
=
\#
ChangePassword
tools.change
Password.help
=
\#
Allows changing the database file password
.
tools.change
FileEncryption
=
\#\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm
.
tools.cipher
=
\#
Cipher (AES or XTEA)
tools.commandLine
=
\#
Command line
tools.convertTraceFile
=
\#
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_uk.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=&\#x0412;&\#x0438;&\#x043A;&\#x043E;&\#x043D;&\#x0430;&\#x0442;&\#x0
toolbar.sqlStatement
=
SQL &
\#
x0437;&
\#
x0430;&
\#
x043F;&
\#
x0438;&
\#
x0442;
tools.backup
=
\#
Backup
tools.backup.help
=
\#
Creates a backup of a database.
tools.change
Password
=
\#
ChangePassword
tools.change
Password.help
=
\#
Allows changing the database file password
.
tools.change
FileEncryption
=
\#\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm
.
tools.cipher
=
\#
Cipher (AES or XTEA)
tools.commandLine
=
\#
Command line
tools.convertTraceFile
=
\#
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_zh_cn.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=\u6267\u884C (Ctrl+Enter)
toolbar.sqlStatement
=
SQL
\u
8BED
\u
53E5
tools.backup
=
\#
Backup
tools.backup.help
=
\#
Creates a backup of a database.
tools.change
Password
=
\#
ChangePassword
tools.change
Password.help
=
\#
Allows changing the database file password
.
tools.change
FileEncryption
=
\#\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm
.
tools.cipher
=
\#
Cipher (AES or XTEA)
tools.commandLine
=
\#
Command line
tools.convertTraceFile
=
\#
ConvertTraceFile
...
...
h2/src/main/org/h2/server/web/res/_text_zh_tw.properties
浏览文件 @
08a00d6b
...
...
@@ -96,8 +96,8 @@ toolbar.run=\u57F7\u884C (Ctrl+Enter)
toolbar.sqlStatement
=
SQL
\u
8FF0
\u
53E5
tools.backup
=
\u5099\u
4EFD
tools.backup.help
=
\u
5EFA
\u
7ACB
\u
8CC7
\u6599\u
5EAB
\u7684\u5099\u
4EFD
tools.change
Password
=
\u
8B8A
\u
66F4
\u
5BC6
\u
78BC
tools.change
Password.help
=
\u5141\u
8A31
\u
8B8A
\u
66F4
\u
8CC7
\u6599\u
5EAB
\u
6A94
\u6848\u7684\u
5BC6
\u
78BC
tools.change
FileEncryption
=
\#\#
ChangeFileEncryption
tools.change
FileEncryption.help
=
\#\#
Allows changing the database file encryption password and algorithm.
tools.cipher
=
\u
52A0
\u
5BC6 (AES
\u6216
XTEA)
tools.commandLine
=
\u
547D
\u
4EE4
\u5217
tools.convertTraceFile
=
\u
8F49
\u
63DBTrace
\u
6A94
\u6848
...
...
h2/src/main/org/h2/server/web/res/tools.jsp
浏览文件 @
08a00d6b
...
...
@@ -80,7 +80,7 @@ function update() {
<a
href=
"javascript:go('Restore')"
>
${text.tools.restore}
</a>
<a
href=
"javascript:go('Recover')"
>
${text.tools.recover}
</a>
<a
href=
"javascript:go('DeleteDbFiles')"
>
${text.tools.deleteDbFiles}
</a>
<a
href=
"javascript:go('Change
Password')"
>
${text.tools.changePassword
}
</a>
<a
href=
"javascript:go('Change
FileEncryption')"
>
${text.tools.changeFileEncryption
}
</a>
</p><p>
<a
href=
"javascript:go('Script')"
>
${text.tools.script}
</a>
<a
href=
"javascript:go('RunScript')"
>
${text.tools.runScript}
</a>
...
...
@@ -136,20 +136,20 @@ function update() {
</td></tr>
</table>
</div>
<div
id=
"toolChange
Password
"
style=
"display: none"
>
<h2>
${text.tools.change
Password
}
</h2>
<p>
${text.tools.change
Password
.help}
</p>
<div
id=
"toolChange
FileEncryption
"
style=
"display: none"
>
<h2>
${text.tools.change
FileEncryption
}
</h2>
<p>
${text.tools.change
FileEncryption
.help}
</p>
<table
class=
"tool"
>
<tr><td>
${text.tools.cipher}:
</td><td><input
id=
"optionChange
Password
.0"
name=
"cipher"
onkeyup=
"update()"
onchange=
"update()"
value=
"XTEA"
/>
${text.tools.cipher}:
</td><td><input
id=
"optionChange
FileEncryption
.0"
name=
"cipher"
onkeyup=
"update()"
onchange=
"update()"
value=
"XTEA"
/>
</td></tr><tr><td>
${text.tools.directory}:
</td><td><input
id=
"optionChange
Password
.1"
name=
"dir"
onkeyup=
"update()"
onchange=
"update()"
value=
"~"
size=
"50"
/>
${text.tools.directory}:
</td><td><input
id=
"optionChange
FileEncryption
.1"
name=
"dir"
onkeyup=
"update()"
onchange=
"update()"
value=
"~"
size=
"50"
/>
</td></tr><tr><td>
${text.tools.databaseName}:
</td><td><input
id=
"optionChange
Password
.2"
name=
"db"
onkeyup=
"update()"
onchange=
"update()"
value=
"test"
size=
"50"
/>
${text.tools.databaseName}:
</td><td><input
id=
"optionChange
FileEncryption
.2"
name=
"db"
onkeyup=
"update()"
onchange=
"update()"
value=
"test"
size=
"50"
/>
</td></tr><tr><td>
${text.tools.decryptionPassword}:
</td><td><input
type=
"password"
id=
"optionChange
Password
.3"
name=
"decrypt"
onkeyup=
"update()"
onchange=
"update()"
value=
""
/>
${text.tools.decryptionPassword}:
</td><td><input
type=
"password"
id=
"optionChange
FileEncryption
.3"
name=
"decrypt"
onkeyup=
"update()"
onchange=
"update()"
value=
""
/>
</td></tr><tr><td>
${text.tools.encryptionPassword}:
</td><td><input
type=
"password"
id=
"optionChange
Password
.4"
name=
"encrypt"
onkeyup=
"update()"
onchange=
"update()"
value=
""
/>
${text.tools.encryptionPassword}:
</td><td><input
type=
"password"
id=
"optionChange
FileEncryption
.4"
name=
"encrypt"
onkeyup=
"update()"
onchange=
"update()"
value=
""
/>
</td></tr>
</table>
</div>
...
...
h2/src/main/org/h2/tools/Change
Password
.java
→
h2/src/main/org/h2/tools/Change
FileEncryption
.java
浏览文件 @
08a00d6b
...
...
@@ -20,9 +20,10 @@ import org.h2.util.Tool;
/**
* A tools to change, remove or set a file password of a database without
* opening it. It can not be used to change a password of a user.
* opening it. The encryption algorithm can be changed as well. It can not be
* used to change a password of a user.
*/
public
class
Change
Password
extends
Tool
{
public
class
Change
FileEncryption
extends
Tool
{
private
String
dir
;
private
String
cipher
;
...
...
@@ -30,7 +31,7 @@ public class ChangePassword extends Tool {
private
byte
[]
encrypt
;
private
void
showUsage
()
{
out
.
println
(
"Allows changing the database file
password
."
);
out
.
println
(
"Allows changing the database file
encryption password or algorithm
."
);
out
.
println
(
"java "
+
getClass
().
getName
()
+
"\n"
+
" -cipher <type> AES or XTEA\n"
+
" [-dir <dir>] The database directory (default: .)\n"
+
...
...
@@ -59,7 +60,7 @@ public class ChangePassword extends Tool {
* @throws SQLException
*/
public
static
void
main
(
String
[]
args
)
throws
SQLException
{
new
Change
Password
().
run
(
args
);
new
Change
FileEncryption
().
run
(
args
);
}
public
void
run
(
String
[]
args
)
throws
SQLException
{
...
...
@@ -127,11 +128,11 @@ public class ChangePassword extends Tool {
* @throws SQLException
*/
public
static
void
execute
(
String
dir
,
String
db
,
String
cipher
,
char
[]
decryptPassword
,
char
[]
encryptPassword
,
boolean
quiet
)
throws
SQLException
{
new
Change
Password
().
process
(
dir
,
db
,
cipher
,
decryptPassword
,
encryptPassword
,
quiet
);
new
Change
FileEncryption
().
process
(
dir
,
db
,
cipher
,
decryptPassword
,
encryptPassword
,
quiet
);
}
private
void
process
(
String
dir
,
String
db
,
String
cipher
,
char
[]
decryptPassword
,
char
[]
encryptPassword
,
boolean
quiet
)
throws
SQLException
{
Change
Password
change
=
new
ChangePassword
();
Change
FileEncryption
change
=
new
ChangeFileEncryption
();
if
(
encryptPassword
!=
null
)
{
for
(
int
i
=
0
;
i
<
encryptPassword
.
length
;
i
++)
{
if
(
encryptPassword
[
i
]
==
' '
)
{
...
...
@@ -159,7 +160,7 @@ public class ChangePassword extends Tool {
FileUtils
.
rename
(
temp
,
fileName
);
}
// if this worked, the operation will (hopefully) be successful
// TODO change
Password
: this is a workaround!
// TODO change
FileEncryption
: this is a workaround!
// make the operation atomic (all files or none)
for
(
int
i
=
0
;
i
<
files
.
size
();
i
++)
{
String
fileName
=
(
String
)
files
.
get
(
i
);
...
...
h2/src/test/org/h2/test/unit/TestSampleApps.java
浏览文件 @
08a00d6b
...
...
@@ -39,10 +39,10 @@ public class TestSampleApps extends TestBase {
testApp
(
org
.
h2
.
samples
.
TriggerSample
.
class
,
null
,
"The sum is 20.00"
);
// tools
testApp
(
org
.
h2
.
tools
.
Change
Password
.
class
,
new
String
[]
{
"-help"
},
"Allows changing the database file
password
*"
);
testApp
(
org
.
h2
.
tools
.
Change
Password
.
class
,
null
,
"Allows changing the database file
password
*"
);
testApp
(
org
.
h2
.
tools
.
Change
FileEncryption
.
class
,
new
String
[]
{
"-help"
},
"Allows changing the database file
encryption password or algorithm
*"
);
testApp
(
org
.
h2
.
tools
.
Change
FileEncryption
.
class
,
null
,
"Allows changing the database file
encryption password or algorithm
*"
);
testApp
(
org
.
h2
.
tools
.
DeleteDbFiles
.
class
,
new
String
[]
{
"-help"
},
"Deletes all files belonging to a database.*"
);
}
...
...
h2/src/test/org/h2/test/unit/TestTools.java
浏览文件 @
08a00d6b
...
...
@@ -25,7 +25,7 @@ import org.h2.store.FileLister;
import
org.h2.test.TestBase
;
import
org.h2.test.trace.Player
;
import
org.h2.tools.Backup
;
import
org.h2.tools.Change
Password
;
import
org.h2.tools.Change
FileEncryption
;
import
org.h2.tools.ConvertTraceFile
;
import
org.h2.tools.DeleteDbFiles
;
import
org.h2.tools.Recover
;
...
...
@@ -53,7 +53,7 @@ public class TestTools extends TestBase {
testRemove
();
testConvertTraceFile
();
testManagementDb
();
testChange
Password
();
testChange
FileEncryption
();
testServer
();
testScriptRunscript
();
testBackupRestore
();
...
...
@@ -382,7 +382,7 @@ public class TestTools extends TestBase {
DeleteDbFiles
.
main
(
new
String
[]
{
"-dir"
,
baseDir
,
"-db"
,
"utils"
,
"-quiet"
});
}
private
void
testChange
Password
()
throws
Exception
{
private
void
testChange
FileEncryption
()
throws
Exception
{
Class
.
forName
(
"org.h2.Driver"
);
Connection
conn
=
DriverManager
.
getConnection
(
"jdbc:h2:"
+
baseDir
+
"/utils;CIPHER=XTEA;STORAGE=TEXT"
,
"sa"
,
"abc 123"
);
...
...
@@ -390,9 +390,9 @@ public class TestTools extends TestBase {
stat
.
execute
(
"CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR(255))"
);
conn
.
close
();
String
[]
args
=
new
String
[]
{
"-dir"
,
baseDir
,
"-db"
,
"utils"
,
"-cipher"
,
"XTEA"
,
"-decrypt"
,
"abc"
,
"-quiet"
};
Change
Password
.
main
(
args
);
Change
FileEncryption
.
main
(
args
);
args
=
new
String
[]
{
"-dir"
,
baseDir
,
"-db"
,
"utils"
,
"-cipher"
,
"AES"
,
"-encrypt"
,
"def"
,
"-quiet"
};
Change
Password
.
main
(
args
);
Change
FileEncryption
.
main
(
args
);
conn
=
DriverManager
.
getConnection
(
"jdbc:h2:"
+
baseDir
+
"/utils;CIPHER=AES"
,
"sa"
,
"def 123"
);
stat
=
conn
.
createStatement
();
stat
.
execute
(
"SELECT * FROM TEST"
);
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
08a00d6b
...
...
@@ -523,4 +523,4 @@ monitor benefit performing conditional significant arithmetic instrumented
doclets extremes instructions printable skips sava sources cms bytecode cfml
cold compiles markup spellchecker interleaved poormans programmed swt railo
clobs resizes precisions scales stopwatch shortly puts captured decremented
him uninterpreted entering composed patched
\ No newline at end of file
him uninterpreted entering composed patched rowlock
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论