Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
b07726b2
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,发现更多精彩内容 >>
提交
b07726b2
编写于
10月 05, 2016
作者:
S
Serge Rider
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Oracle: table refresh fix. MySQL & PG table refresh fixes (clear cache)
Former-commit-id:
6f19522b
上级
c518b335
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
13 addition
and
26 deletion
+13
-26
plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/model/MySQLTable.java
...sql/src/org/jkiss/dbeaver/ext/mysql/model/MySQLTable.java
+8
-4
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/model/OracleTable.java
...e/src/org/jkiss/dbeaver/ext/oracle/model/OracleTable.java
+1
-3
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/model/OracleTableBase.java
...c/org/jkiss/dbeaver/ext/oracle/model/OracleTableBase.java
+1
-2
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/model/OracleTablePhysical.java
...g/jkiss/dbeaver/ext/oracle/model/OracleTablePhysical.java
+1
-8
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/model/OracleView.java
...le/src/org/jkiss/dbeaver/ext/oracle/model/OracleView.java
+0
-9
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreTableBase.java
.../jkiss/dbeaver/ext/postgresql/model/PostgreTableBase.java
+2
-0
未找到文件。
plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/model/MySQLTable.java
浏览文件 @
b07726b2
...
...
@@ -33,10 +33,7 @@ import org.jkiss.dbeaver.model.impl.jdbc.JDBCUtils;
import
org.jkiss.dbeaver.model.impl.jdbc.cache.JDBCObjectCache
;
import
org.jkiss.dbeaver.model.meta.*
;
import
org.jkiss.dbeaver.model.runtime.DBRProgressMonitor
;
import
org.jkiss.dbeaver.model.struct.DBSEntity
;
import
org.jkiss.dbeaver.model.struct.DBSEntityAssociation
;
import
org.jkiss.dbeaver.model.struct.DBSEntityConstraint
;
import
org.jkiss.dbeaver.model.struct.DBSEntityConstraintType
;
import
org.jkiss.dbeaver.model.struct.*
;
import
org.jkiss.dbeaver.model.struct.rdb.DBSForeignKeyModifyRule
;
import
org.jkiss.dbeaver.model.struct.rdb.DBSTable
;
import
org.jkiss.dbeaver.model.struct.rdb.DBSTableIndex
;
...
...
@@ -488,6 +485,13 @@ public class MySQLTable extends MySQLTableBase
return
additionalInfo
.
description
;
}
@Override
public
DBSObject
refreshObject
(
@NotNull
DBRProgressMonitor
monitor
)
throws
DBException
{
getContainer
().
constraintCache
.
clearObjectCache
(
this
);
getContainer
().
indexCache
.
clearObjectCache
(
this
);
return
super
.
refreshObject
(
monitor
);
}
public
static
class
EngineListProvider
implements
IPropertyValueListProvider
<
MySQLTable
>
{
@Override
public
boolean
allowCustomValue
()
...
...
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/model/OracleTable.java
浏览文件 @
b07726b2
...
...
@@ -193,10 +193,8 @@ public class OracleTable extends OracleTablePhysical implements DBPScriptObject,
@Override
public
DBSObject
refreshObject
(
@NotNull
DBRProgressMonitor
monitor
)
throws
DBException
{
super
.
refreshObject
(
monitor
);
getContainer
().
foreignKeyCache
.
clearObjectCache
(
this
);
return
this
;
return
super
.
refreshObject
(
monitor
);
}
@Override
...
...
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/model/OracleTableBase.java
浏览文件 @
b07726b2
...
...
@@ -214,10 +214,9 @@ public abstract class OracleTableBase extends JDBCTable<OracleDataSource, Oracle
@Override
public
DBSObject
refreshObject
(
@NotNull
DBRProgressMonitor
monitor
)
throws
DBException
{
getContainer
().
tableCache
.
clearChildrenCache
(
this
);
getContainer
().
constraintCache
.
clearObjectCache
(
this
);
return
this
;
return
getContainer
().
tableCache
.
refreshObject
(
monitor
,
getContainer
(),
this
)
;
}
@Association
...
...
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/model/OracleTablePhysical.java
浏览文件 @
b07726b2
...
...
@@ -169,15 +169,8 @@ public abstract class OracleTablePhysical extends OracleTableBase implements DBS
@Override
public
DBSObject
refreshObject
(
@NotNull
DBRProgressMonitor
monitor
)
throws
DBException
{
super
.
refreshObject
(
monitor
);
this
.
getContainer
().
indexCache
.
clearObjectCache
(
this
);
partitionInfo
=
null
;
if
(
partitionCache
!=
null
)
{
partitionCache
.
clearCache
();
}
realRowCount
=
null
;
return
this
;
return
super
.
refreshObject
(
monitor
);
}
@Override
...
...
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/model/OracleView.java
浏览文件 @
b07726b2
...
...
@@ -33,8 +33,6 @@ import org.jkiss.dbeaver.model.meta.LazyProperty;
import
org.jkiss.dbeaver.model.meta.Property
;
import
org.jkiss.dbeaver.model.meta.PropertyGroup
;
import
org.jkiss.dbeaver.model.runtime.DBRProgressMonitor
;
import
org.jkiss.dbeaver.model.struct.DBSEntityConstraintType
;
import
org.jkiss.dbeaver.model.struct.DBSObject
;
import
org.jkiss.utils.CommonUtils
;
import
java.sql.ResultSet
;
...
...
@@ -158,13 +156,6 @@ public class OracleView extends OracleTableBase implements OracleSourceObject
}
}
@Override
public
DBSObject
refreshObject
(
@NotNull
DBRProgressMonitor
monitor
)
throws
DBException
{
additionalInfo
.
loaded
=
false
;
return
super
.
refreshObject
(
monitor
);
}
@Override
public
void
refreshObjectState
(
@NotNull
DBRProgressMonitor
monitor
)
throws
DBCException
{
...
...
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreTableBase.java
浏览文件 @
b07726b2
...
...
@@ -151,6 +151,8 @@ public abstract class PostgreTableBase extends JDBCTable<PostgreDataSource, Post
@Override
public
DBSObject
refreshObject
(
@NotNull
DBRProgressMonitor
monitor
)
throws
DBException
{
getContainer
().
constraintCache
.
clearObjectCache
(
this
);
getContainer
().
indexCache
.
clearObjectCache
(
this
);
return
getContainer
().
tableCache
.
refreshObject
(
monitor
,
getContainer
(),
this
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录