Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
85bdf82a
提交
85bdf82a
authored
11月 24, 2007
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
b94a2268
全部展开
显示空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
43 行增加
和
6915 行删除
+43
-6915
ant-build.properties
h2/ant-build.properties
+2
-2
build.html
h2/src/docsrc/html/build.html
+1
-1
download.html
h2/src/docsrc/html/download.html
+3
-3
mainWeb.html
h2/src/docsrc/html/mainWeb.html
+5
-5
_docs_de.utf8.txt
h2/src/docsrc/text/_docs_de.utf8.txt
+0
-5976
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+1
-901
Constants.java
h2/src/main/org/h2/engine/Constants.java
+2
-2
JdbcConnection.java
h2/src/main/org/h2/jdbc/JdbcConnection.java
+3
-4
JdbcDatabaseMetaData.java
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
+1
-1
JdbcParameterMetaData.java
h2/src/main/org/h2/jdbc/JdbcParameterMetaData.java
+1
-1
JdbcResultSet.java
h2/src/main/org/h2/jdbc/JdbcResultSet.java
+3
-5
JdbcResultSetMetaData.java
h2/src/main/org/h2/jdbc/JdbcResultSetMetaData.java
+1
-1
JdbcStatement.java
h2/src/main/org/h2/jdbc/JdbcStatement.java
+1
-1
JdbcDataSource.java
h2/src/main/org/h2/jdbcx/JdbcDataSource.java
+1
-1
PrepareTranslation.java
h2/src/tools/org/h2/tools/i18n/PrepareTranslation.java
+18
-11
没有找到文件。
h2/ant-build.properties
浏览文件 @
85bdf82a
#
Mon Nov 19 20:09:20
CET 2007
#
Sat Nov 24 19:01:03
CET 2007
javac
=
javac
javac
=
javac
benchmark.drivers.dir
=
C
\:
/data/java
benchmark.drivers.dir
=
C
\:
/data/java
path.servlet.jar
=
C
\:
/data/classpath/servlet-api.jar
path.servlet.jar
=
C
\:
/data/classpath/servlet-api.jar
version.name.maven
=
1.0.6
1
version.name.maven
=
1.0.6
2
path.lucene.jar
=
C
\:
/data/classpath/lucene-core-2.2.0.jar
path.lucene.jar
=
C
\:
/data/classpath/lucene-core-2.2.0.jar
jdk
=
1.4
jdk
=
1.4
h2/src/docsrc/html/build.html
浏览文件 @
85bdf82a
...
@@ -78,7 +78,7 @@ Example:
...
@@ -78,7 +78,7 @@ Example:
<
dependency
>
<
dependency
>
<
groupId
>
com.h2database
<
/groupId
>
<
groupId
>
com.h2database
<
/groupId
>
<
artifactId
>
h2
<
/artifactId
>
<
artifactId
>
h2
<
/artifactId
>
<
version
>
1.0.6
1
<
/version
>
<
version
>
1.0.6
2
<
/version
>
<
/dependency
>
<
/dependency
>
</pre>
</pre>
<p>
<p>
...
...
h2/src/docsrc/html/download.html
浏览文件 @
85bdf82a
...
@@ -15,10 +15,10 @@ H2 Database Engine
...
@@ -15,10 +15,10 @@ H2 Database Engine
<h1>
Downloads
</h1>
<h1>
Downloads
</h1>
<h3>
Version 1.0.6
1 (2007-11-10
, Current)
</h3>
<h3>
Version 1.0.6
2 (2007-11-25
, Current)
</h3>
<p>
<p>
<a
href=
"http://www.h2database.com/h2-setup-2007-11-
10
.exe"
>
Windows Installer
</a><br
/>
<a
href=
"http://www.h2database.com/h2-setup-2007-11-
25
.exe"
>
Windows Installer
</a><br
/>
<a
href=
"http://www.h2database.com/h2-2007-11-
10
.zip"
>
Platform-Independent Zip
</a><br
/>
<a
href=
"http://www.h2database.com/h2-2007-11-
25
.zip"
>
Platform-Independent Zip
</a><br
/>
</p>
</p>
<h3>
Download Mirror
</h3>
<h3>
Download Mirror
</h3>
...
...
h2/src/docsrc/html/mainWeb.html
浏览文件 @
85bdf82a
...
@@ -31,17 +31,17 @@ Welcome to H2, the free SQL database. The main feature of H2 are:
...
@@ -31,17 +31,17 @@ Welcome to H2, the free SQL database. The main feature of H2 are:
<table
style=
"border: 0px; margin: 5px; background-color: #eee;"
>
<table
style=
"border: 0px; margin: 5px; background-color: #eee;"
>
<tr><td
style=
"border: 0px; background-color: #eee;"
colspan=
"2"
>
<tr><td
style=
"border: 0px; background-color: #eee;"
colspan=
"2"
>
<h3>
Download
</h3>
<h3>
Download
</h3>
Version 1.0.6
1 (2007-11-10
):
Version 1.0.6
2 (2007-11-25
):
</td></tr>
</td></tr>
<tr><td
style=
"border: 0px; background-color: #eee;"
>
<tr><td
style=
"border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-setup-2007-11-
10
.exe"
><img
border=
"1"
src=
"images/download.png"
alt=
"download"
/></a>
<a
href=
"http://www.h2database.com/h2-setup-2007-11-
25
.exe"
><img
border=
"1"
src=
"images/download.png"
alt=
"download"
/></a>
</td><td
style=
"vertical-align: middle; border: 0px; background-color: #eee;"
>
</td><td
style=
"vertical-align: middle; border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-setup-2007-11-
10
.exe"
>
Windows Installer (2.8 MB)
</a>
<a
href=
"http://www.h2database.com/h2-setup-2007-11-
25
.exe"
>
Windows Installer (2.8 MB)
</a>
</td></tr>
</td></tr>
<tr><td
style=
"border: 0px; background-color: #eee;"
>
<tr><td
style=
"border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-2007-11-
10
.zip"
><img
border=
"1"
src=
"images/download.png"
alt=
"download"
/></a>
<a
href=
"http://www.h2database.com/h2-2007-11-
25
.zip"
><img
border=
"1"
src=
"images/download.png"
alt=
"download"
/></a>
</td><td
style=
"vertical-align: middle; border: 0px; background-color: #eee;"
>
</td><td
style=
"vertical-align: middle; border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-2007-11-
10
.zip"
>
All platforms (zip, 3.9 MB)
</a>
<a
href=
"http://www.h2database.com/h2-2007-11-
25
.zip"
>
All platforms (zip, 3.9 MB)
</a>
</td></tr>
</td></tr>
<tr><td
style=
"border: 0px; background-color: #eee;"
colspan=
"2"
>
<tr><td
style=
"border: 0px; background-color: #eee;"
colspan=
"2"
>
<a
href=
"download.html"
>
All Downloads
</a>
<a
href=
"download.html"
>
All Downloads
</a>
...
...
h2/src/docsrc/text/_docs_de.utf8.txt
deleted
100644 → 0
浏览文件 @
b94a2268
差异被折叠。
点击展开。
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
85bdf82a
差异被折叠。
点击展开。
h2/src/main/org/h2/engine/Constants.java
浏览文件 @
85bdf82a
...
@@ -71,8 +71,8 @@ import org.h2.constant.SysProperties;
...
@@ -71,8 +71,8 @@ import org.h2.constant.SysProperties;
*/
*/
public
class
Constants
{
public
class
Constants
{
public
static
final
int
BUILD_ID
=
6
1
;
public
static
final
int
BUILD_ID
=
6
2
;
private
static
final
String
BUILD
=
"2007-11-
10
"
;
private
static
final
String
BUILD
=
"2007-11-
25
"
;
public
static
final
int
VERSION_MAJOR
=
1
;
public
static
final
int
VERSION_MAJOR
=
1
;
public
static
final
int
VERSION_MINOR
=
0
;
public
static
final
int
VERSION_MINOR
=
0
;
...
...
h2/src/main/org/h2/jdbc/JdbcConnection.java
浏览文件 @
85bdf82a
...
@@ -1269,12 +1269,11 @@ public class JdbcConnection extends TraceObject implements Connection {
...
@@ -1269,12 +1269,11 @@ public class JdbcConnection extends TraceObject implements Connection {
public NClob createNClob() throws SQLException {
public NClob createNClob() throws SQLException {
try {
try {
int id = getNextId(TraceObject.CLOB);
int id = getNextId(TraceObject.CLOB);
debugCodeAssign("NClob", TraceObject.CLOB, id);
debugCodeAssign("NClob", TraceObject.CLOB, id, "createNClob()");
debugCodeCall("createNClob");
checkClosed();
checkClosed();
ValueLob v = ValueLob.createSmallLob(Value.CLOB, new byte[0]);
ValueLob v = ValueLob.createSmallLob(Value.CLOB, new byte[0]);
return new JdbcClob(session, this, v, id);
return new JdbcClob(session, this, v, id);
} catch(Throwable e) {
} catch
(Throwable e) {
throw logAndConvert(e);
throw logAndConvert(e);
}
}
}
}
...
@@ -1388,7 +1387,7 @@ public class JdbcConnection extends TraceObject implements Connection {
...
@@ -1388,7 +1387,7 @@ public class JdbcConnection extends TraceObject implements Connection {
*/
*/
//#ifdef JDK16
//#ifdef JDK16
/*
/*
public boolean isWrapperFor(Class<
?
> iface) throws SQLException {
public boolean isWrapperFor(Class<
?
> iface) throws SQLException {
throw Message.getUnsupportedException();
throw Message.getUnsupportedException();
}
}
*/
*/
...
...
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
浏览文件 @
85bdf82a
...
@@ -2655,7 +2655,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
...
@@ -2655,7 +2655,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
*/
*/
//#ifdef JDK16
//#ifdef JDK16
/*
/*
public boolean isWrapperFor(Class<
?
> iface) throws SQLException {
public boolean isWrapperFor(Class<
?
> iface) throws SQLException {
debugCodeCall("isWrapperFor");
debugCodeCall("isWrapperFor");
throw Message.getUnsupportedException();
throw Message.getUnsupportedException();
}
}
...
...
h2/src/main/org/h2/jdbc/JdbcParameterMetaData.java
浏览文件 @
85bdf82a
...
@@ -205,7 +205,7 @@ implements ParameterMetaData
...
@@ -205,7 +205,7 @@ implements ParameterMetaData
*/
*/
//#ifdef JDK16
//#ifdef JDK16
/*
/*
public boolean isWrapperFor(Class<
?
> iface) throws SQLException {
public boolean isWrapperFor(Class<
?
> iface) throws SQLException {
debugCodeCall("isWrapperFor");
debugCodeCall("isWrapperFor");
throw Message.getUnsupportedException();
throw Message.getUnsupportedException();
}
}
...
...
h2/src/main/org/h2/jdbc/JdbcResultSet.java
浏览文件 @
85bdf82a
...
@@ -3156,8 +3156,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3156,8 +3156,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
public NClob getNClob(int columnIndex) throws SQLException {
public NClob getNClob(int columnIndex) throws SQLException {
try {
try {
int id = getNextId(TraceObject.CLOB);
int id = getNextId(TraceObject.CLOB);
debugCodeAssign("NClob", TraceObject.CLOB, id);
debugCodeAssign("NClob", TraceObject.CLOB, id, "getNClob(" + columnIndex + ")");
debugCodeCall("getNClob", columnIndex);
Value v = get(columnIndex);
Value v = get(columnIndex);
return v == ValueNull.INSTANCE ? null : new JdbcClob(session, conn, v, id);
return v == ValueNull.INSTANCE ? null : new JdbcClob(session, conn, v, id);
} catch (Throwable e) {
} catch (Throwable e) {
...
@@ -3179,8 +3178,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3179,8 +3178,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
public NClob getNClob(String columnName) throws SQLException {
public NClob getNClob(String columnName) throws SQLException {
try {
try {
int id = getNextId(TraceObject.CLOB);
int id = getNextId(TraceObject.CLOB);
debugCodeAssign("NClob", TraceObject.CLOB, id);
debugCodeAssign("NClob", TraceObject.CLOB, id, "getNClob(" + columnName + ")");
debugCodeCall("getNClob", columnName);
Value v = get(columnName);
Value v = get(columnName);
return v == ValueNull.INSTANCE ? null : new JdbcClob(session, conn, v, id);
return v == ValueNull.INSTANCE ? null : new JdbcClob(session, conn, v, id);
} catch (Throwable e) {
} catch (Throwable e) {
...
@@ -3401,7 +3399,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
...
@@ -3401,7 +3399,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
*/
*/
//#ifdef JDK16
//#ifdef JDK16
/*
/*
public boolean isWrapperFor(Class<
?
> iface) throws SQLException {
public boolean isWrapperFor(Class<
?
> iface) throws SQLException {
debugCode("isWrapperFor");
debugCode("isWrapperFor");
throw Message.getUnsupportedException();
throw Message.getUnsupportedException();
}
}
...
...
h2/src/main/org/h2/jdbc/JdbcResultSetMetaData.java
浏览文件 @
85bdf82a
...
@@ -441,7 +441,7 @@ public class JdbcResultSetMetaData extends TraceObject implements ResultSetMetaD
...
@@ -441,7 +441,7 @@ public class JdbcResultSetMetaData extends TraceObject implements ResultSetMetaD
*/
*/
//#ifdef JDK16
//#ifdef JDK16
/*
/*
public boolean isWrapperFor(Class<
?
> iface) throws SQLException {
public boolean isWrapperFor(Class<
?
> iface) throws SQLException {
debugCodeCall("isWrapperFor");
debugCodeCall("isWrapperFor");
throw Message.getUnsupportedException();
throw Message.getUnsupportedException();
}
}
...
...
h2/src/main/org/h2/jdbc/JdbcStatement.java
浏览文件 @
85bdf82a
...
@@ -867,7 +867,7 @@ public class JdbcStatement extends TraceObject implements Statement {
...
@@ -867,7 +867,7 @@ public class JdbcStatement extends TraceObject implements Statement {
*/
*/
//#ifdef JDK16
//#ifdef JDK16
/*
/*
public boolean isWrapperFor(Class<
?
> iface) throws SQLException {
public boolean isWrapperFor(Class<
?
> iface) throws SQLException {
throw Message.getUnsupportedException();
throw Message.getUnsupportedException();
}
}
*/
*/
...
...
h2/src/main/org/h2/jdbcx/JdbcDataSource.java
浏览文件 @
85bdf82a
...
@@ -288,7 +288,7 @@ implements XADataSource, DataSource, ConnectionPoolDataSource, Serializable, Ref
...
@@ -288,7 +288,7 @@ implements XADataSource, DataSource, ConnectionPoolDataSource, Serializable, Ref
//#ifdef JDK16
//#ifdef JDK16
/*
/*
public boolean isWrapperFor(Class<
?
> iface) throws SQLException {
public boolean isWrapperFor(Class<
?
> iface) throws SQLException {
throw Message.getUnsupportedException();
throw Message.getUnsupportedException();
}
}
*/
*/
...
...
h2/src/tools/org/h2/tools/i18n/PrepareTranslation.java
浏览文件 @
85bdf82a
...
@@ -24,8 +24,8 @@ import org.h2.util.IOUtils;
...
@@ -24,8 +24,8 @@ import org.h2.util.IOUtils;
import
org.h2.util.SortedProperties
;
import
org.h2.util.SortedProperties
;
import
org.h2.util.StringUtils
;
import
org.h2.util.StringUtils
;
import
com.google.api.translate.Language
;
//
import com.google.api.translate.Language;
import
com.google.api.translate.Translate
;
//
import com.google.api.translate.Translate;
public
class
PrepareTranslation
{
public
class
PrepareTranslation
{
private
static
final
String
MAIN_LANGUAGE
=
"en"
;
private
static
final
String
MAIN_LANGUAGE
=
"en"
;
...
@@ -55,7 +55,7 @@ public class PrepareTranslation {
...
@@ -55,7 +55,7 @@ public class PrepareTranslation {
// create the translated documentation
// create the translated documentation
buildHtml
(
"src/docsrc/text"
,
"docs/html"
,
"en"
);
buildHtml
(
"src/docsrc/text"
,
"docs/html"
,
"en"
);
buildHtml
(
"src/docsrc/text"
,
"docs/html"
,
"de"
);
//
buildHtml("src/docsrc/text", "docs/html", "de");
buildHtml
(
"src/docsrc/text"
,
"docs/html"
,
"ja"
);
buildHtml
(
"src/docsrc/text"
,
"docs/html"
,
"ja"
);
// convert the properties files back to utf8 text files, including the
// convert the properties files back to utf8 text files, including the
...
@@ -424,7 +424,7 @@ public class PrepareTranslation {
...
@@ -424,7 +424,7 @@ public class PrepareTranslation {
if
(
t
==
null
)
{
if
(
t
==
null
)
{
System
.
out
.
println
(
trans
.
getName
()
+
": key "
+
key
System
.
out
.
println
(
trans
.
getName
()
+
": key "
+
key
+
" not found in translation file; added dummy # 'translation'"
);
+
" not found in translation file; added dummy # 'translation'"
);
t
=
"#"
+
now
;
t
=
"#"
+
autoTranslate
(
now
,
language
)
;
}
}
p
.
put
(
key
,
t
);
p
.
put
(
key
,
t
);
}
else
{
}
else
{
...
@@ -473,17 +473,24 @@ public class PrepareTranslation {
...
@@ -473,17 +473,24 @@ public class PrepareTranslation {
}
}
private
String
autoTranslate
(
String
original
,
String
language
)
{
private
String
autoTranslate
(
String
original
,
String
language
)
{
if
(
original
==
null
||
original
.
trim
().
length
()
==
0
)
{
return
original
;
}
String
translation
=
original
;
String
translation
=
original
;
if
(!
AUTO_TRANSLATE
)
{
if
(!
AUTO_TRANSLATE
)
{
return
"#"
+
translation
;
return
"#"
+
translation
;
}
}
if
(
"de"
.
equals
(
language
))
{
// if ("de".equals(language)) {
try
{
// try {
return
"#"
+
Translate
.
translate
(
original
,
Language
.
ENGLISH
,
Language
.
GERMAN
);
// Thread.sleep(5000);
}
catch
(
IOException
e
)
{
// translation = Translate.translate(original, Language.ENGLISH, Language.GERMAN);
e
.
printStackTrace
();
// System.out.println("original: " + original);
}
// System.out.println("translation: " + translation);
}
// } catch (Throwable e) {
// System.out.println("Exception translating [" + original + "]: " + e);
// // e.printStackTrace();
// }
// }
return
"#"
+
translation
;
return
"#"
+
translation
;
}
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论