Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
a6636824
提交
a6636824
authored
14 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Cleanup:
- Javadocs
上级
695d73be
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
12 行增加
和
13 行删除
+12
-13
SupportedTypes.java
h2/src/test/org/h2/test/jaqu/SupportedTypes.java
+1
-2
DbInspector.java
h2/src/tools/org/h2/jaqu/DbInspector.java
+1
-1
Declaration.java
h2/src/tools/org/h2/jaqu/Declaration.java
+1
-1
ModelUtils.java
h2/src/tools/org/h2/jaqu/ModelUtils.java
+3
-3
TableDefinition.java
h2/src/tools/org/h2/jaqu/TableDefinition.java
+5
-5
TableInspector.java
h2/src/tools/org/h2/jaqu/TableInspector.java
+1
-1
没有找到文件。
h2/src/test/org/h2/test/jaqu/SupportedTypes.java
浏览文件 @
a6636824
...
...
@@ -109,8 +109,7 @@ public class SupportedTypes {
}
/**
* Class to demonstrate TableUpdater
*
* This class demonstrates the table upgrade.
*/
@JQTable
(
name
=
"SupportedTypes"
,
version
=
2
,
inheritColumns
=
true
,
strictTypeMapping
=
true
)
public
static
class
SupportedTypes2
extends
SupportedTypes
{
...
...
This diff is collapsed.
Click to expand it.
h2/src/tools/org/h2/jaqu/DbInspector.java
浏览文件 @
a6636824
...
...
@@ -48,7 +48,7 @@ public class DbInspector {
* Generates models class skeletons for schemas and tables. If the table
* name is undefined, models will be generated for every table within the
* specified schema. Additionally, if no schema is defined, models will be
* generated for all schemas and all tables.
* generated for all schemas and all tables.
*
* @param schema the schema name (optional)
* @param table the table name (optional)
...
...
This diff is collapsed.
Click to expand it.
h2/src/tools/org/h2/jaqu/Declaration.java
浏览文件 @
a6636824
...
...
@@ -7,7 +7,7 @@
package
org
.
h2
.
jaqu
;
/**
* Classes implementing this interface can be used as a declaration in an
* Classes implementing this interface can be used as a declaration in an
* update statement.
*/
public
interface
Declaration
{
...
...
This diff is collapsed.
Click to expand it.
h2/src/tools/org/h2/jaqu/ModelUtils.java
浏览文件 @
a6636824
...
...
@@ -47,8 +47,8 @@ public class ModelUtils {
}
/**
*
Marshall
SQL type aliases to the list of supported types.
* This map is used by
Generation and V
alidation.
*
Convert
SQL type aliases to the list of supported types.
* This map is used by
generation and v
alidation.
*/
private
static
final
Map
<
String
,
String
>
SQL_TYPES
=
new
HashMap
<
String
,
String
>();
...
...
@@ -146,7 +146,7 @@ public class ModelUtils {
sqlType
=
sqlType
.
split
(
" "
)[
0
].
trim
();
if
(
SQL_TYPES
.
containsKey
(
sqlType
))
{
//
marshall
sqlType to a standard type
//
convert the
sqlType to a standard type
sqlType
=
SQL_TYPES
.
get
(
sqlType
);
}
Class
<?>
mappedClazz
=
null
;
...
...
This diff is collapsed.
Click to expand it.
h2/src/tools/org/h2/jaqu/TableDefinition.java
浏览文件 @
a6636824
...
...
@@ -137,7 +137,7 @@ class TableDefinition<T> {
/**
* Define a primary key by the specified model fields.
*
*
* @param modelFields the ordered list of model fields
*/
void
setPrimaryKey
(
Object
[]
modelFields
)
{
...
...
@@ -147,7 +147,7 @@ class TableDefinition<T> {
/**
* Define a primary key by the specified column names.
*
*
* @param columnNames the ordered list of column names
*/
void
setPrimaryKey
(
List
<
String
>
columnNames
)
{
...
...
@@ -174,7 +174,7 @@ class TableDefinition<T> {
/**
* Defines an index with the specified model fields.
*
*
* @param type the index type (STANDARD, HASH, UNIQUE, UNIQUE_HASH)
* @param modelFields the ordered list of model fields
*/
...
...
@@ -185,8 +185,8 @@ class TableDefinition<T> {
/**
* Defines an index with the specified column names.
*
* @param type the index type (STANDARD, HASH, UNIQUE, UNIQUE_HASH)
*
* @param type the index type (STANDARD, HASH, UNIQUE, UNIQUE_HASH)
* @param columnNames the ordered list of column names
*/
void
addIndex
(
IndexType
type
,
List
<
String
>
columnNames
)
{
...
...
This diff is collapsed.
Click to expand it.
h2/src/tools/org/h2/jaqu/TableInspector.java
浏览文件 @
a6636824
...
...
@@ -364,7 +364,7 @@ public class TableInspector {
sb
.
append
(
eol
);
// variable declaration
sb
.
append
(
"\tpublic "
);
sb
.
append
(
"\t
"
+
"
public "
);
sb
.
append
(
clazz
.
getSimpleName
());
sb
.
append
(
' '
);
sb
.
append
(
column
);
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论