Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
61b0a0ac
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,发现更多精彩内容 >>
提交
61b0a0ac
编写于
10月 23, 2020
作者:
N
Nikita Akilov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
#9485 codestyle fixes
上级
1c4bef5f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
18 addition
and
15 deletion
+18
-15
plugins/org.jkiss.dbeaver.ext.mssql/src/org/jkiss/dbeaver/ext/mssql/model/generic/SQLServerGenericTable.java
...beaver/ext/mssql/model/generic/SQLServerGenericTable.java
+1
-0
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/model/OracleTableBase.java
...c/org/jkiss/dbeaver/ext/oracle/model/OracleTableBase.java
+6
-6
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/model/OracleTableColumn.java
...org/jkiss/dbeaver/ext/oracle/model/OracleTableColumn.java
+6
-6
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreAggregate.java
.../jkiss/dbeaver/ext/postgresql/model/PostgreAggregate.java
+3
-1
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreDatabase.java
...g/jkiss/dbeaver/ext/postgresql/model/PostgreDatabase.java
+1
-0
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/DBPObjectWithLazyDescription.java
...org/jkiss/dbeaver/model/DBPObjectWithLazyDescription.java
+1
-2
未找到文件。
plugins/org.jkiss.dbeaver.ext.mssql/src/org/jkiss/dbeaver/ext/mssql/model/generic/SQLServerGenericTable.java
浏览文件 @
61b0a0ac
...
...
@@ -65,6 +65,7 @@ public class SQLServerGenericTable extends GenericTable implements DBPOverloaded
return
super
.
getDescription
();
}
@Override
@Property
(
viewable
=
true
,
multiline
=
true
,
order
=
100
)
public
String
getDescription
(
DBRProgressMonitor
monitor
)
throws
DBException
{
String
description
=
getDescription
();
...
...
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/model/OracleTableBase.java
浏览文件 @
61b0a0ac
...
...
@@ -142,12 +142,6 @@ public abstract class OracleTableBase extends JDBCTable<OracleDataSource, Oracle
@Property
(
viewable
=
true
,
editable
=
true
,
updatable
=
true
,
multiline
=
true
,
order
=
100
)
@LazyProperty
(
cacheValidator
=
CommentsValidator
.
class
)
public
String
getComment
(
DBRProgressMonitor
monitor
)
{
return
getDescription
();
}
@Nullable
@Override
public
String
getDescription
(
DBRProgressMonitor
monitor
)
{
if
(
comment
==
null
)
{
try
(
JDBCSession
session
=
DBUtils
.
openMetaSession
(
monitor
,
this
,
"Load table comments"
))
{
comment
=
queryTableComment
(
session
);
...
...
@@ -161,6 +155,12 @@ public abstract class OracleTableBase extends JDBCTable<OracleDataSource, Oracle
return
comment
;
}
@Nullable
@Override
public
String
getDescription
(
DBRProgressMonitor
monitor
)
{
return
getComment
(
monitor
);
}
protected
String
queryTableComment
(
JDBCSession
session
)
throws
SQLException
{
return
JDBCUtils
.
queryString
(
session
,
...
...
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/model/OracleTableColumn.java
浏览文件 @
61b0a0ac
...
...
@@ -197,17 +197,17 @@ public class OracleTableColumn extends JDBCTableColumn<OracleTableBase> implemen
@Nullable
@Override
public
String
getDescription
(
DBRProgressMonitor
monitor
)
{
if
(
comment
==
null
)
{
// Load comments for all table columns
getTable
().
loadColumnComments
(
monitor
);
}
return
comment
;
return
getComment
(
monitor
);
}
@Property
(
viewable
=
true
,
editable
=
true
,
updatable
=
true
,
multiline
=
true
,
order
=
100
)
@LazyProperty
(
cacheValidator
=
CommentLoadValidator
.
class
)
public
String
getComment
(
DBRProgressMonitor
monitor
)
{
return
getDescription
(
monitor
);
if
(
comment
==
null
)
{
// Load comments for all table columns
getTable
().
loadColumnComments
(
monitor
);
}
return
comment
;
}
public
void
setComment
(
String
comment
)
...
...
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreAggregate.java
浏览文件 @
61b0a0ac
...
...
@@ -18,6 +18,7 @@ package org.jkiss.dbeaver.ext.postgresql.model;
import
org.jkiss.code.NotNull
;
import
org.jkiss.dbeaver.DBException
;
import
org.jkiss.dbeaver.model.DBPObjectWithLazyDescription
;
import
org.jkiss.dbeaver.model.impl.jdbc.JDBCUtils
;
import
org.jkiss.dbeaver.model.meta.Property
;
import
org.jkiss.dbeaver.model.runtime.DBRProgressMonitor
;
...
...
@@ -31,7 +32,7 @@ import java.util.List;
/**
* PostgreAggregate
*/
public
class
PostgreAggregate
implements
PostgreObject
{
public
class
PostgreAggregate
implements
PostgreObject
,
DBPObjectWithLazyDescription
{
private
long
oid
;
private
PostgreSchema
schema
;
...
...
@@ -114,6 +115,7 @@ public class PostgreAggregate implements PostgreObject {
return
null
;
}
@Override
@Property
(
viewable
=
true
,
multiline
=
true
,
order
=
100
)
public
String
getDescription
(
DBRProgressMonitor
monitor
)
throws
DBException
{
PostgreProcedure
function
=
getFunction
(
monitor
);
...
...
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreDatabase.java
浏览文件 @
61b0a0ac
...
...
@@ -270,6 +270,7 @@ public class PostgreDatabase extends JDBCRemoteInstance
return
JDBCExecutionContext
.
TYPE_METADATA
+
" <"
+
getName
()
+
">"
;
}
@Override
@Property
(
viewable
=
true
,
editable
=
true
,
updatable
=
true
,
multiline
=
true
,
order
=
100
)
public
String
getDescription
(
DBRProgressMonitor
monitor
)
{
if
(!
getDataSource
().
getServerType
().
supportsDatabaseDescription
())
{
...
...
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/DBPObjectWithLazyDescription.java
浏览文件 @
61b0a0ac
...
...
@@ -22,8 +22,7 @@ import org.jkiss.dbeaver.model.runtime.DBRProgressMonitor;
public
interface
DBPObjectWithLazyDescription
extends
DBPObjectWithDescription
{
/**
* Loads description and returns it. Consequent calls of getDescription()
* will return loaded description.
* Loads description and returns it.
*
* @return object description or null
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录