Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
d8c2571c
D
dbeaver
项目概览
suliangchun
/
dbeaver
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dbeaver
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d8c2571c
编写于
6月 06, 2018
作者:
L
liuyuanyuan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add cache,cycle and l10n for postgresql sequence。
Former-commit-id:
e3802ac3
上级
2a71dfff
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
20 addition
and
4 deletion
+20
-4
nls/bundles/org.jkiss.dbeaver.ext.postgresql.nls/OSGI-INF/l10n/bundle_zh.properties
...ver.ext.postgresql.nls/OSGI-INF/l10n/bundle_zh.properties
+8
-4
plugins/org.jkiss.dbeaver.ext.postgresql/OSGI-INF/l10n/bundle.properties
...ss.dbeaver.ext.postgresql/OSGI-INF/l10n/bundle.properties
+2
-0
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreSequence.java
...g/jkiss/dbeaver/ext/postgresql/model/PostgreSequence.java
+10
-0
未找到文件。
nls/bundles/org.jkiss.dbeaver.ext.postgresql.nls/OSGI-INF/l10n/bundle_zh.properties
浏览文件 @
d8c2571c
...
...
@@ -286,13 +286,17 @@ meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSchema.description.descriptio
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSchema.owner.name
=
\u6240\u6709\u8005
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSchema.owner.description=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.incrementBy.name
=
\u
6B65
\u
957F
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.incrementBy.description
=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.incrementBy.description
=
\u
8BE5
\u
5E8F
\u5217\u7684\u
6B65
\u
957F
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.lastValue.name
=
\u6700\u
540E
\u
503C
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.lastValue.description
=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.lastValue.description
=
\u
8BE5
\u
5E8F
\u5217\u7684\u6700\u
540E
\u
503C
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.maxValue.name
=
\u6700\u5927\u
503C
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.maxValue.description
=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.maxValue.description
=
\u
8BE5
\u
5E8F
\u5217\u7684\u6700\u5927\u
503C
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.minValue.name
=
\u6700\u
5C0F
\u
503C
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.minValue.description
=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.minValue.description
=
\u
8BE5
\u
5E8F
\u5217\u7684\u6700\u
5C0F
\u
503C
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.cacheValue.name
=
\u
7F13
\u
5B58
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.cacheValue.description
=
\u
8BE5
\u
5E8F
\u5217\u7684\u
7F13
\u
5B58
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.cycled.name
=
\u
5FAA
\u
73AF
\u7684
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.cycled.description=
\u
8BE5
\u
5E8F
\u5217\u
662F
\u5426\u
5FAA
\u
73AF
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTable.hasOids.name
=
\u6709
Oid
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTable.hasOids.description
=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTable.subTables.name=
\u
5B50
\u8868
...
...
plugins/org.jkiss.dbeaver.ext.postgresql/OSGI-INF/l10n/bundle.properties
浏览文件 @
d8c2571c
...
...
@@ -310,6 +310,8 @@ meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$AdditionalInfo.maxVa
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.maxValue.description
=
Maximum value of the sequence
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.minValue.name
=
Min Value
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.minValue.description
=
Minimum value of the sequence
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.cacheValue.name
=
Cache
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.cacheValue.description
=
Cache of the sequence
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.cycled.name
=
Cycled
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence$
AdditionalInfo.cycled.description
=
Whether the sequence cycles
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTable.hasOids.name
=
Has Oids
...
...
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreSequence.java
浏览文件 @
d8c2571c
...
...
@@ -58,6 +58,7 @@ public class PostgreSequence extends PostgreTableBase implements DBSSequence, DB
private
Number
minValue
;
private
Number
maxValue
;
private
Number
incrementBy
;
private
Number
cacheValue
;
private
boolean
isCycled
;
@Property
(
viewable
=
true
,
editable
=
true
,
updatable
=
false
,
order
=
10
)
...
...
@@ -77,6 +78,10 @@ public class PostgreSequence extends PostgreTableBase implements DBSSequence, DB
return
incrementBy
;
}
@Property
(
viewable
=
true
,
editable
=
true
,
updatable
=
false
,
order
=
14
)
public
Number
getCacheValue
()
{
return
cacheValue
;
}
@Property
(
viewable
=
true
,
editable
=
true
,
updatable
=
false
,
order
=
15
)
public
boolean
isCycled
()
{
return
isCycled
;
}
...
...
@@ -124,6 +129,7 @@ public class PostgreSequence extends PostgreTableBase implements DBSSequence, DB
additionalInfo
.
minValue
=
JDBCUtils
.
safeGetLong
(
seqResults
,
"min_value"
);
additionalInfo
.
maxValue
=
JDBCUtils
.
safeGetLong
(
seqResults
,
"max_value"
);
additionalInfo
.
incrementBy
=
JDBCUtils
.
safeGetLong
(
seqResults
,
"increment_by"
);
additionalInfo
.
cacheValue
=
JDBCUtils
.
safeGetLong
(
seqResults
,
"cache_size"
);
additionalInfo
.
isCycled
=
JDBCUtils
.
safeGetBoolean
(
seqResults
,
"cycle"
);
}
}
...
...
@@ -137,6 +143,7 @@ public class PostgreSequence extends PostgreTableBase implements DBSSequence, DB
additionalInfo
.
minValue
=
JDBCUtils
.
safeGetLong
(
seqResults
,
"min_value"
);
additionalInfo
.
maxValue
=
JDBCUtils
.
safeGetLong
(
seqResults
,
"max_value"
);
additionalInfo
.
incrementBy
=
JDBCUtils
.
safeGetLong
(
seqResults
,
"increment_by"
);
additionalInfo
.
cacheValue
=
JDBCUtils
.
safeGetLong
(
seqResults
,
"cache_size"
);
additionalInfo
.
isCycled
=
JDBCUtils
.
safeGetBoolean
(
seqResults
,
"is_cycled"
);
}
}
...
...
@@ -214,6 +221,9 @@ public class PostgreSequence extends PostgreTableBase implements DBSSequence, DB
if
(
info
.
getLastValue
()
!=
null
&&
info
.
getLastValue
().
longValue
()
>
0
)
{
sql
.
append
(
"\n\tSTART "
).
append
(
info
.
getLastValue
());
}
sql
.
append
(
"\n\tCACHE "
).
append
(
info
.
getCacheValue
())
.
append
(
"\n\t"
).
append
(
info
.
isCycled
?
""
:
"NO "
).
append
(
"CYCLE"
)
.
append
(
";"
);
if
(!
CommonUtils
.
isEmpty
(
getDescription
()))
{
sql
.
append
(
"\nCOMMENT ON SEQUENCE "
).
append
(
DBUtils
.
getQuotedIdentifier
(
this
)).
append
(
" IS "
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录