Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
23ca27d9
D
dbeaver
项目概览
suliangchun
/
dbeaver
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
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,发现更多精彩内容 >>
提交
23ca27d9
编写于
1月 21, 2015
作者:
J
jurgen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
H2 driver update
Attached jobs model
上级
921c71b3
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
41 addition
and
11 deletion
+41
-11
contrib/drivers/plugins/org.jkiss.dbeaver.resources.h2/META-INF/MANIFEST.MF
...ugins/org.jkiss.dbeaver.resources.h2/META-INF/MANIFEST.MF
+1
-1
contrib/drivers/plugins/org.jkiss.dbeaver.resources.h2/build.properties
...s/plugins/org.jkiss.dbeaver.resources.h2/build.properties
+1
-1
contrib/drivers/plugins/org.jkiss.dbeaver.resources.h2/drivers/h2/h2-1.2.147.jar
.../org.jkiss.dbeaver.resources.h2/drivers/h2/h2-1.2.147.jar
+0
-0
contrib/drivers/plugins/org.jkiss.dbeaver.resources.h2/drivers/h2/h2-1.3.173.jar
.../org.jkiss.dbeaver.resources.h2/drivers/h2/h2-1.3.173.jar
+0
-0
contrib/drivers/plugins/org.jkiss.dbeaver.resources.h2/drivers/h2/h2-1.4.185.jar
.../org.jkiss.dbeaver.resources.h2/drivers/h2/h2-1.4.185.jar
+0
-0
contrib/drivers/plugins/org.jkiss.dbeaver.resources.h2/plugin.xml
...drivers/plugins/org.jkiss.dbeaver.resources.h2/plugin.xml
+1
-1
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/model/impl/jdbc/JDBCDataSource.java
...src/org/jkiss/dbeaver/model/impl/jdbc/JDBCDataSource.java
+5
-3
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/runtime/AbstractJob.java
...eaver.core/src/org/jkiss/dbeaver/runtime/AbstractJob.java
+15
-0
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/runtime/jobs/ConnectJob.java
...r.core/src/org/jkiss/dbeaver/runtime/jobs/ConnectJob.java
+16
-3
plugins/org.jkiss.dbeaver.generic/plugin.xml
plugins/org.jkiss.dbeaver.generic/plugin.xml
+2
-2
未找到文件。
contrib/drivers/plugins/org.jkiss.dbeaver.resources.h2/META-INF/MANIFEST.MF
浏览文件 @
23ca27d9
...
...
@@ -2,6 +2,6 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: H2 driver
Bundle-SymbolicName: org.jkiss.dbeaver.resources.h2;singleton:=true
Bundle-Version: 1.
3.173
Bundle-Version: 1.
4.185
Bundle-Vendor: H2
Bundle-ActivationPolicy: lazy
contrib/drivers/plugins/org.jkiss.dbeaver.resources.h2/build.properties
浏览文件 @
23ca27d9
source..
=
bin.includes = .,plugin.xml,META-INF/,drivers/h2/LICENSE.txt,drivers/h2/h2-1.
3.173
.jar
bin.includes = .,plugin.xml,META-INF/,drivers/h2/LICENSE.txt,drivers/h2/h2-1.
4.185
.jar
src.includes
=
contrib/drivers/plugins/org.jkiss.dbeaver.resources.h2/drivers/h2/h2-1.2.147.jar
已删除
100644 → 0
浏览文件 @
921c71b3
文件已删除
contrib/drivers/plugins/org.jkiss.dbeaver.resources.h2/drivers/h2/h2-1.3.173.jar
已删除
100644 → 0
浏览文件 @
921c71b3
文件已删除
contrib/drivers/plugins/org.jkiss.dbeaver.resources.h2/drivers/h2/h2-1.4.185.jar
0 → 100644
浏览文件 @
23ca27d9
文件已添加
contrib/drivers/plugins/org.jkiss.dbeaver.resources.h2/plugin.xml
浏览文件 @
23ca27d9
...
...
@@ -2,6 +2,6 @@
<plugin>
<extension
point=
"org.jkiss.dbeaver.resources"
>
<resource
name=
"drivers/h2/LICENSE.txt"
/>
<resource
name=
"drivers/h2/h2-1.
3.173
.jar"
/>
<resource
name=
"drivers/h2/h2-1.
4.185
.jar"
/>
</extension>
</plugin>
\ No newline at end of file
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/model/impl/jdbc/JDBCDataSource.java
浏览文件 @
23ca27d9
...
...
@@ -256,12 +256,14 @@ public abstract class JDBCDataSource
}
@Override
public
synchronized
void
initialize
(
DBRProgressMonitor
monitor
)
public
void
initialize
(
DBRProgressMonitor
monitor
)
throws
DBException
{
if
(!
isEmbeddedDataSource
()
&&
container
.
getPreferenceStore
().
getBoolean
(
DBeaverPreferences
.
META_SEPARATE_CONNECTION
))
{
this
.
metaContext
=
new
JDBCExecutionContext
(
this
,
"Metadata reader"
,
false
);
this
.
metaContext
.
connect
(
monitor
,
true
,
null
);
synchronized
(
this
)
{
this
.
metaContext
=
new
JDBCExecutionContext
(
this
,
"Metadata reader"
,
false
);
this
.
metaContext
.
connect
(
monitor
,
true
,
null
);
}
}
JDBCSession
session
=
openSession
(
monitor
,
DBCExecutionPurpose
.
META
,
CoreMessages
.
model_html_read_database_meta_data
);
try
{
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/runtime/AbstractJob.java
浏览文件 @
23ca27d9
...
...
@@ -41,6 +41,11 @@ public abstract class AbstractJob extends Job
private
volatile
boolean
finished
=
false
;
private
volatile
boolean
blockCanceled
=
false
;
private
int
cancelTimeout
=
TIMEOUT_BEFORE_BLOCK_CANCEL
;
private
AbstractJob
attachedJob
=
null
;
// Attached job may be used to "overwrite" current job.
// It happens if some other AbstractJob runs in sync mode
protected
final
static
ThreadLocal
<
AbstractJob
>
CURRENT_JOB
=
new
ThreadLocal
<
AbstractJob
>();
protected
AbstractJob
(
String
name
)
{
...
...
@@ -63,6 +68,10 @@ public abstract class AbstractJob extends Job
return
thread
==
null
?
Thread
.
currentThread
()
:
thread
;
}
public
void
setAttachedJob
(
AbstractJob
attachedJob
)
{
this
.
attachedJob
=
attachedJob
;
}
public
final
IStatus
runDirectly
(
DBRProgressMonitor
monitor
)
{
progressMonitor
=
monitor
;
...
...
@@ -86,10 +95,12 @@ public abstract class AbstractJob extends Job
{
progressMonitor
=
RuntimeUtils
.
makeMonitor
(
monitor
);
blockCanceled
=
false
;
CURRENT_JOB
.
set
(
this
);
try
{
finished
=
false
;
return
this
.
run
(
progressMonitor
);
}
finally
{
CURRENT_JOB
.
remove
();
finished
=
true
;
}
}
...
...
@@ -100,6 +111,10 @@ public abstract class AbstractJob extends Job
@Override
protected
void
canceling
()
{
if
(
attachedJob
!=
null
)
{
attachedJob
.
canceling
();
return
;
}
// Run canceling job
if
(!
blockCanceled
)
{
Job
cancelJob
=
new
Job
(
"Cancel block"
)
{
//$NON-N LS-1$
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/runtime/jobs/ConnectJob.java
浏览文件 @
23ca27d9
...
...
@@ -25,12 +25,15 @@ import org.eclipse.core.runtime.Status;
import
org.eclipse.jface.resource.ImageDescriptor
;
import
org.eclipse.osgi.util.NLS
;
import
org.eclipse.ui.progress.IProgressConstants
;
import
org.jkiss.dbeaver.DBException
;
import
org.jkiss.dbeaver.core.CoreMessages
;
import
org.jkiss.dbeaver.core.DBeaverCore
;
import
org.jkiss.dbeaver.model.DBPConnectionEventType
;
import
org.jkiss.dbeaver.model.runtime.DBRProgressMonitor
;
import
org.jkiss.dbeaver.registry.DataSourceDescriptor
;
import
org.jkiss.dbeaver.runtime.AbstractJob
;
import
org.jkiss.dbeaver.runtime.RuntimeUtils
;
import
org.jkiss.dbeaver.runtime.VoidProgressMonitor
;
/**
* ConnectJob
...
...
@@ -88,9 +91,19 @@ public class ConnectJob extends EventProcessorJob
public
IStatus
runSync
(
DBRProgressMonitor
monitor
)
{
setThread
(
Thread
.
currentThread
());
reflect
=
false
;
return
run
(
monitor
);
AbstractJob
curJob
=
CURRENT_JOB
.
get
();
if
(
curJob
!=
null
)
{
curJob
.
setAttachedJob
(
this
);
}
try
{
setThread
(
Thread
.
currentThread
());
reflect
=
false
;
return
run
(
monitor
);
}
finally
{
if
(
curJob
!=
null
)
{
curJob
.
setAttachedJob
(
null
);
}
}
}
@Override
...
...
plugins/org.jkiss.dbeaver.generic/plugin.xml
浏览文件 @
23ca27d9
...
...
@@ -320,7 +320,7 @@
defaultPort=
"9092"
webURL=
"http://www.h2database.com/"
description=
"H2 Server"
>
<file
type=
"jar"
path=
"drivers/h2/h2-1.
3.173
.jar"
url=
"*"
/>
<file
type=
"jar"
path=
"drivers/h2/h2-1.
4.185
.jar"
url=
"*"
/>
<file
type=
"license"
path=
"drivers/h2/LICENSE.txt"
url=
"*"
/>
</driver>
<driver
...
...
@@ -332,7 +332,7 @@
webURL=
"http://www.h2database.com/"
description=
"H2 Embedded"
>
<parameter
name=
"embedded"
value=
"true"
/>
<file
type=
"jar"
path=
"drivers/h2/h2-1.
3.173
.jar"
url=
"*"
/>
<file
type=
"jar"
path=
"drivers/h2/h2-1.
4.185
.jar"
url=
"*"
/>
<file
type=
"license"
path=
"drivers/h2/LICENSE.txt"
url=
"*"
/>
</driver>
<driver
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录