Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
ef80ac48
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,发现更多精彩内容 >>
提交
ef80ac48
编写于
6月 22, 2015
作者:
T
titou10
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
DB2 : Cosmetics around schema with spaces
Former-commit-id:
cbedb098
上级
a4137933
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
20 addition
and
21 deletion
+20
-21
plugins/org.jkiss.dbeaver.db2/src/org/jkiss/dbeaver/ext/db2/model/DB2Routine.java
...r.db2/src/org/jkiss/dbeaver/ext/db2/model/DB2Routine.java
+6
-3
plugins/org.jkiss.dbeaver.db2/src/org/jkiss/dbeaver/ext/db2/model/DB2Schema.java
...er.db2/src/org/jkiss/dbeaver/ext/db2/model/DB2Schema.java
+8
-15
plugins/org.jkiss.dbeaver.db2/src/org/jkiss/dbeaver/ext/db2/model/DB2TableBase.java
...db2/src/org/jkiss/dbeaver/ext/db2/model/DB2TableBase.java
+6
-3
未找到文件。
plugins/org.jkiss.dbeaver.db2/src/org/jkiss/dbeaver/ext/db2/model/DB2Routine.java
浏览文件 @
ef80ac48
...
...
@@ -60,6 +60,8 @@ public class DB2Routine extends DB2Object<DBSObject> implements DBSProcedure, DB
private
final
DB2RoutineParmsCache
parmsCache
=
new
DB2RoutineParmsCache
();
private
String
fullyQualifiedName
;
private
DB2Schema
db2Schema
;
private
DB2RoutineType
type
;
...
...
@@ -139,6 +141,9 @@ public class DB2Routine extends DB2Object<DBSObject> implements DBSProcedure, DB
db2Schema
=
((
DB2Module
)
owner
).
getSchema
();
}
// Compute this once for all
fullyQualifiedName
=
DBUtils
.
getFullQualifiedName
(
db2DataSource
,
owner
,
this
);
}
public
DB2RoutineType
getType
()
...
...
@@ -176,9 +181,7 @@ public class DB2Routine extends DB2Object<DBSObject> implements DBSProcedure, DB
@Override
public
String
getFullQualifiedName
()
{
return
DBUtils
.
getFullQualifiedName
(
getDataSource
(),
parent
,
this
);
return
fullyQualifiedName
;
}
@Override
...
...
plugins/org.jkiss.dbeaver.db2/src/org/jkiss/dbeaver/ext/db2/model/DB2Schema.java
浏览文件 @
ef80ac48
...
...
@@ -18,9 +18,9 @@
*/
package
org.jkiss.dbeaver.ext.db2.model
;
import
org.jkiss.dbeaver.core.Log
;
import
org.jkiss.code.Nullable
;
import
org.jkiss.dbeaver.DBException
;
import
org.jkiss.dbeaver.core.Log
;
import
org.jkiss.dbeaver.ext.db2.DB2Constants
;
import
org.jkiss.dbeaver.ext.db2.model.cache.DB2AliasCache
;
import
org.jkiss.dbeaver.ext.db2.model.cache.DB2IndexCache
;
...
...
@@ -52,7 +52,10 @@ import org.jkiss.utils.CommonUtils;
import
java.sql.ResultSet
;
import
java.sql.Timestamp
;
import
java.util.*
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
java.util.List
;
/**
* DB2Schema
...
...
@@ -62,6 +65,8 @@ import java.util.*;
public
class
DB2Schema
extends
DB2GlobalObject
implements
DBSSchema
,
DBPRefreshableObject
,
DBPSystemObject
{
private
static
final
Log
LOG
=
Log
.
getLog
(
DB2Schema
.
class
);
private
static
final
List
<
String
>
SYSTEM_SCHEMA
=
Arrays
.
asList
(
"SYS"
,
"DB2QP"
,
"SQLJ"
,
"NULLID"
);
private
static
final
String
C_SEQ
=
"SELECT * FROM SYSCAT.SEQUENCES WHERE SEQSCHEMA = ? AND SEQTYPE <> 'A' ORDER BY SEQNAME WITH UR"
;
private
static
final
String
C_PKG
=
"SELECT * FROM SYSCAT.PACKAGES WHERE PKGSCHEMA = ? ORDER BY PKGNAME WITH UR"
;
private
static
final
String
C_XSR
=
"SELECT * FROM SYSCAT.XSROBJECTS WHERE OBJECTSCHEMA = ? ORDER BY OBJECTNAME WITH UR"
;
...
...
@@ -154,19 +159,7 @@ public class DB2Schema extends DB2GlobalObject implements DBSSchema, DBPRefresha
@Override
public
boolean
isSystem
()
{
if
(
getName
().
startsWith
(
"SYS"
))
{
return
true
;
}
if
(
getName
().
equals
(
"DB2QP"
))
{
return
true
;
}
if
(
getName
().
equals
(
"SQLJ"
))
{
return
true
;
}
if
(
getName
().
equals
(
"NULLID"
))
{
return
true
;
}
return
false
;
return
SYSTEM_SCHEMA
.
contains
(
name
);
}
@Override
...
...
plugins/org.jkiss.dbeaver.db2/src/org/jkiss/dbeaver/ext/db2/model/DB2TableBase.java
浏览文件 @
ef80ac48
...
...
@@ -59,6 +59,8 @@ public abstract class DB2TableBase extends JDBCTable<DB2DataSource, DB2Schema> i
private
String
remarks
;
private
String
fullyQualifiedName
;
// -----------------
// Constructors
// -----------------
...
...
@@ -82,6 +84,9 @@ public abstract class DB2TableBase extends JDBCTable<DB2DataSource, DB2Schema> i
this
.
alterTime
=
JDBCUtils
.
safeGetTimestamp
(
dbResult
,
"ALTER_TIME"
);
this
.
ownerType
=
CommonUtils
.
valueOf
(
DB2OwnerType
.
class
,
JDBCUtils
.
safeGetString
(
dbResult
,
"OWNERTYPE"
));
}
// Compute this once for all
fullyQualifiedName
=
DBUtils
.
getFullQualifiedName
(
db2DataSource
,
schema
,
this
);
}
public
DB2TableBase
(
DB2Schema
container
,
String
name
,
Boolean
persisted
)
...
...
@@ -101,9 +106,7 @@ public abstract class DB2TableBase extends JDBCTable<DB2DataSource, DB2Schema> i
@Override
public
String
getFullQualifiedName
()
{
return
DBUtils
.
getFullQualifiedName
(
getDataSource
(),
getContainer
(),
this
);
return
fullyQualifiedName
;
}
// -----------------
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录