Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
c1439dd0
提交
c1439dd0
authored
12月 15, 2008
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
improved javadocs
上级
03d917b3
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
53 行增加
和
16 行删除
+53
-16
JdbcConnection.java
h2/src/main/org/h2/jdbc/JdbcConnection.java
+2
-2
JdbcDatabaseMetaData.java
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
+2
-1
JdbcResultSet.java
h2/src/main/org/h2/jdbc/JdbcResultSet.java
+2
-2
JdbcStatement.java
h2/src/main/org/h2/jdbc/JdbcStatement.java
+19
-3
JdbcXAConnection.java
h2/src/main/org/h2/jdbcx/JdbcXAConnection.java
+1
-0
Server.java
h2/src/main/org/h2/tools/Server.java
+4
-4
Doclet.java
h2/src/tools/org/h2/build/doclet/Doclet.java
+23
-4
没有找到文件。
h2/src/main/org/h2/jdbc/JdbcConnection.java
浏览文件 @
c1439dd0
...
...
@@ -520,8 +520,8 @@ public class JdbcConnection extends TraceObject implements Connection {
/**
* Gets the current catalog name.
*
* @
throws SQLException
*
if the connection is closed
* @
return the catalog name
*
@throws SQLException
if the connection is closed
*/
public
String
getCatalog
()
throws
SQLException
{
try
{
...
...
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
浏览文件 @
c1439dd0
...
...
@@ -509,7 +509,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
* (procedureNoResult or procedureReturnsResult) </li>
* </ul>
*
* @return the procedures
.
* @return the procedures
* @throws SQLException if the connection is closed
*/
public
ResultSet
getProcedures
(
String
catalog
,
String
schemaPattern
,
...
...
@@ -569,6 +569,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
* <li>15 POS (int) the parameter index </li>
* </ul>
*
* @return the procedure columns
* @throws SQLException if the connection is closed
*/
public
ResultSet
getProcedureColumns
(
String
catalog
,
String
schemaPattern
,
...
...
h2/src/main/org/h2/jdbc/JdbcResultSet.java
浏览文件 @
c1439dd0
...
...
@@ -695,7 +695,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
*
* @deprecated
*
* @param columnName
* @param columnName
the column name
* @return the value
* @throws SQLException if the column is not found or if the result set is
* closed
...
...
@@ -3358,7 +3358,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
/**
* Returns the value of the specified column as a String.
*
* @param columnName
* @param columnName
the column name
* @return the value
* @throws SQLException if the column is not found or if the result set is
* closed
...
...
h2/src/main/org/h2/jdbc/JdbcStatement.java
浏览文件 @
c1439dd0
...
...
@@ -659,12 +659,28 @@ public class JdbcStatement extends TraceObject implements Statement {
}
/**
* [Not supported]
* Move to the next result set.
* This method always returns false.
*
* @param current Statement.CLOSE_CURRENT_RESULT, Statement.KEEP_CURRENT_RESULT
* or Statement.CLOSE_ALL_RESULTS
* @return false
*/
public
boolean
getMoreResults
(
int
current
)
throws
SQLException
{
try
{
debugCodeCall
(
"getMoreResults"
);
throw
Message
.
getUnsupportedException
();
debugCodeCall
(
"getMoreResults"
,
current
);
switch
(
current
)
{
case
Statement
.
CLOSE_CURRENT_RESULT
:
case
Statement
.
CLOSE_ALL_RESULTS
:
resultSet
.
close
();
break
;
case
Statement
.
KEEP_CURRENT_RESULT
:
// nothing to do
break
;
default
:
throw
Message
.
getInvalidValueException
(
""
+
current
,
"current"
);
}
return
false
;
}
catch
(
Exception
e
)
{
throw
logAndConvert
(
e
);
}
...
...
h2/src/main/org/h2/jdbcx/JdbcXAConnection.java
浏览文件 @
c1439dd0
...
...
@@ -255,6 +255,7 @@ implements XAConnection, XAResource, JdbcConnectionListener
* Prepare a transaction.
*
* @param xid the transaction id
* @return XA_OK
* @throws XAException
*/
//## Java 1.4 begin ##
...
...
h2/src/main/org/h2/tools/Server.java
浏览文件 @
c1439dd0
...
...
@@ -374,7 +374,7 @@ public class Server implements Runnable, ShutdownHandler {
* new String[] { "-trace" }).start();
* </pre>
*
* @param args
* @param args
the argument list
* @return the server
*/
public
static
Server
createWebServer
(
String
[]
args
)
throws
SQLException
{
...
...
@@ -392,7 +392,7 @@ public class Server implements Runnable, ShutdownHandler {
* new String[] { "-trace" }).start();
* </pre>
*
* @param args
* @param args
the argument list
* @return the server
*/
public
static
Server
createFtpServer
(
String
[]
args
)
throws
SQLException
{
...
...
@@ -407,7 +407,7 @@ public class Server implements Runnable, ShutdownHandler {
* new String[] { "-tcpAllowOthers" }).start();
* </pre>
*
* @param args
* @param args
the argument list
* @return the server
*/
public
static
Server
createTcpServer
(
String
[]
args
)
throws
SQLException
{
...
...
@@ -423,7 +423,7 @@ public class Server implements Runnable, ShutdownHandler {
* "-pgAllowOthers"}).start();
* </pre>
*
* @param args
* @param args
the argument list
* @return the server
*/
public
static
Server
createPgServer
(
String
[]
args
)
throws
SQLException
{
...
...
h2/src/tools/org/h2/build/doclet/Doclet.java
浏览文件 @
c1439dd0
...
...
@@ -231,23 +231,42 @@ public class Doclet {
writer
.
println
(
"<br /><br />"
);
space
=
true
;
}
String
p
=
paramTags
[
j
].
parameterName
()
+
" - "
+
paramTags
[
j
].
parameterComment
();
String
paramName
=
paramTags
[
j
].
parameterName
();
String
comment
=
paramTags
[
j
].
parameterComment
();
if
(
comment
.
trim
().
length
()
==
0
)
{
addError
(
"Undocumented parameter ("
+
clazz
.
name
()
+
".java:"
+
method
.
position
().
line
()
+
") "
+
name
+
" "
+
paramName
);
}
String
p
=
paramName
+
" - "
+
comment
;
if
(
j
==
0
)
{
writer
.
println
(
"<div class=\"itemTitle\">Parameters:</div>"
);
}
writer
.
println
(
"<div class=\"item\">"
+
p
+
"</div>"
);
}
Tag
[]
returnTags
=
method
.
tags
(
"return"
);
ThrowsTag
[]
throwsTags
=
method
.
throwsTags
();
boolean
hasThrowsTag
=
throwsTags
!=
null
&&
throwsTags
.
length
>
0
;
if
(
returnTags
!=
null
&&
returnTags
.
length
>
0
)
{
if
(!
space
)
{
writer
.
println
(
"<br /><br />"
);
space
=
true
;
}
writer
.
println
(
"<div class=\"itemTitle\">Returns:</div>"
);
writer
.
println
(
"<div class=\"item\">"
+
returnTags
[
0
].
text
()
+
"</div>"
);
String
returnComment
=
returnTags
[
0
].
text
();
if
(
returnComment
.
trim
().
length
()
==
0
)
{
addError
(
"Undocumented return value ("
+
clazz
.
name
()
+
".java:"
+
method
.
position
().
line
()
+
") "
+
name
);
}
ThrowsTag
[]
throwsTags
=
method
.
throwsTags
();
if
(
throwsTags
!=
null
&&
throwsTags
.
length
>
0
)
{
writer
.
println
(
"<div class=\"item\">"
+
returnComment
+
"</div>"
);
}
else
if
(!
method
.
returnType
().
toString
().
equals
(
"void"
))
{
if
(!
method
.
commentText
().
startsWith
(
"["
)
&&
!
hasThrowsTag
)
{
// [Not supported] and such are not problematic
// also not problematic are methods that always throw an exception
addError
(
"Undocumented return value ("
+
clazz
.
name
()
+
".java:"
+
method
.
position
().
line
()
+
") "
+
name
+
" "
+
method
.
returnType
());
}
}
if
(
hasThrowsTag
)
{
if
(!
space
)
{
writer
.
println
(
"<br /><br />"
);
space
=
true
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论