Compare commits

..

1949 Commits

Author SHA1 Message Date
Sébastien Gandon
72194ae752 Merge release/5.2.1/tis_shared and release/5.2.1/tos for release/5.2.1. 2014-06-22 14:16:22 +02:00
sizhaoliu
b4bae1d6fe merge r95024 from trunk to branch 5.2
TDQ-6569 set Empty String if the tag of "DB ProductName" or "DB ProductVersion" is null.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95049 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-10 10:59:26 +00:00
xqliu
cdb1987563 TDQ-5750 revert the commit 94963
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@94973 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-07 08:46:32 +00:00
xqliu
0cfb90e704 merge r94962 from branch 5.1 to branch 5.2
TDQ-5750 TDQ-6565 save the reference resources and refresh the analysis editor after rename a FileConnection


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@94963 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-07 07:44:23 +00:00
nrousseau
3a89a8f70c merge r94921 from trunk to branch 5.2
For bug TDI-24027


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@94926 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-06 11:52:16 +00:00
wchen
14d1cf918c merge r94905 from trunk to branch 5.2
bug TDI-24074 fixed: Manual create a xml file will cause a NPE error 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@94911 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-06 09:20:32 +00:00
nrousseau
5dbbf4355c merge r94877 from trunk to branch 5.2
TDI-24055 : fix problem of item loading during the logon of the studio (emf don't use yet the platform URI, but file URI)


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@94878 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-06 04:25:57 +00:00
msjian
dfdda1fa78 merge r94778 from trunk to branch 5.2
TDQ-6534:fix this issue by filterd out the "embeded" in list "hive mode" completely


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@94801 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-04 11:11:21 +00:00
nrousseau
2068b4c92b merge r94799 from trunk to branch 5.2
For bug TDI-23399


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@94800 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-04 11:07:53 +00:00
nrousseau
a0f11f6306 merge r94720 from trunk to branch 5.2
TDI-23995 : fix problem of export when a screenshot is missing and allow to edit anything even if the screenshot is missing


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@94741 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-03 09:44:00 +00:00
mwang
9408850da9 For bug TDI-23719
git-svn-id: http://talendforge.org/svn/tos/trunk@94696 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-30 12:30:24 +00:00
mwang
12ab02c77c For bug TDI-23719
git-svn-id: http://talendforge.org/svn/tos/trunk@94693 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-30 12:08:33 +00:00
ilazebny
1290bba2bc Update version to 5.2.1 in poms
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@94678 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-30 09:07:35 +00:00
ilazebny
b771d41167 Update version to 5.2.1 in poms
git-svn-id: http://talendforge.org/svn/tos/trunk@94677 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-30 09:07:23 +00:00
yyin
073a1b6d6e TDQ-6485 fixed: when click "check" on database wizard and then finish should not popup reload dialog.
git-svn-id: http://talendforge.org/svn/tos/trunk@94665 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-30 07:40:48 +00:00
mzhao
de6e63ed40 TDQ-6160 connecting to metastore with JDBC method, the thrift parameters are not needed.
git-svn-id: http://talendforge.org/svn/tos/trunk@94640 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 14:21:33 +00:00
plv
cc9959aedf bug TDI-23507:revert
git-svn-id: http://talendforge.org/svn/tos/trunk@94625 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 10:59:26 +00:00
wchen
fc2837bb1c bug TDI-23745 fixed: select context group list box only appear once when checking connection
git-svn-id: http://talendforge.org/svn/tos/trunk@94623 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 10:42:20 +00:00
nrousseau
1e68b00375 TDI-23971 : fix exceptions found from logs, just needs to have another temporary list when check from repository
git-svn-id: http://talendforge.org/svn/tos/trunk@94605 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 08:47:06 +00:00
hwang
e6f123e400 TDI-22839:Other joblets used in job locked when joblet saved
git-svn-id: http://talendforge.org/svn/tos/trunk@94602 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 08:32:47 +00:00
zshen
50ba17ea27 TDQ-6518 MDMWizard don't care about label and name property of connection when change name
git-svn-id: http://talendforge.org/svn/tos/trunk@94597 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 08:16:43 +00:00
fwang
3d0883d83d bug TDI-23890 fixed:Schemas and XML Export/Import feature
git-svn-id: http://talendforge.org/svn/tos/trunk@94595 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 08:02:16 +00:00
plv
a4604938ac bug TDI-23507:SQLserver JDBC: the sql of Guess Schema is wrong
git-svn-id: http://talendforge.org/svn/tos/trunk@94594 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 07:51:04 +00:00
nrousseau
322edb9e8b TDI-23966 : fixed, this will improve the speed of logon project, maybe not only for reference project, but also for single project on svn.
git-svn-id: http://talendforge.org/svn/tos/trunk@94577 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-29 06:11:00 +00:00
scorreia
898eac2281 i18n: synchronize Babili strings exported on 2012-11-28-18-05-51
git-svn-id: http://talendforge.org/svn/tos/trunk@94565 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-28 17:15:14 +00:00
mzhao
a93bc9b88c TDQ-6160 Profiling hive feature in embedded mode.
git-svn-id: http://talendforge.org/svn/tos/trunk@94555 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-28 14:35:16 +00:00
fwang
31c92aa35f bug TDI-23257 fixed:When drag&drop more a context or a metadata with a context linked, it should ask to copy all context group.
git-svn-id: http://talendforge.org/svn/tos/trunk@94534 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-28 10:23:49 +00:00
wchen
5f711bb746 bug TDI-23942 :DB connection :Export context:add another new group value for it : retreive schema, only one database can be detect
git-svn-id: http://talendforge.org/svn/tos/trunk@94510 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-28 07:19:22 +00:00
wchen
e38bc0f06b bug TDI-23745 fixed: select context group list box only appear once when checking connection
git-svn-id: http://talendforge.org/svn/tos/trunk@94507 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-28 07:13:23 +00:00
gliu
32f7bf8187 [TESB-7615] fixed:
Wrong Code Completion in JavaDSLProcessor

git-svn-id: http://talendforge.org/svn/tos/trunk@94498 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-28 06:17:08 +00:00
xqliu
f13fd458aa TDQ-6291 TDQ-6363 fix the problem: after reload a sybase, there will show schemas under connection
git-svn-id: http://talendforge.org/svn/tos/trunk@94489 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-28 03:54:18 +00:00
sizhaoliu
1ff4b3f557 TDQ-6481 TDQ-6501 add missing commit
git-svn-id: http://talendforge.org/svn/tos/trunk@94479 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-27 18:01:52 +00:00
ycbai
f29c206e7e bug TDI-23693 fixed : Exporting a Job as an Autonomous Job results in 1KB JAR files which fail to include the Job Classes
git-svn-id: http://talendforge.org/svn/tos/trunk@94461 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-27 11:04:18 +00:00
nrousseau
b516efe1ed TDI-23927 fixed: modify from enumeration directly
git-svn-id: http://talendforge.org/svn/tos/trunk@94458 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-27 10:48:17 +00:00
fwang
6b9c7c35a4 bug TDI-23943 fixed:If delete the column name in schema dialog of tRowGenerator, the Studio is blocked. Must kill the studio.
git-svn-id: http://talendforge.org/svn/tos/trunk@94455 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-27 10:18:41 +00:00
zshen
fd7be330b9 TDQ-6356 syn cache on the connectionUtils to fixed analysis execute fail
git-svn-id: http://talendforge.org/svn/tos/trunk@94449 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-27 09:12:43 +00:00
qiongli
c770c57486 TDQ-6437 TUP-273 Optimize code(extract out function 'openDependcesDialog').
git-svn-id: http://talendforge.org/svn/tos/trunk@94433 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-27 07:46:02 +00:00
hcyi
a9830686e0 bug TDI-22861 fixed : Can't start the studio if the AMC database is big .
git-svn-id: http://talendforge.org/svn/tos/trunk@94409 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-27 05:50:42 +00:00
plv
3e66a19b49 bug TDI-22005:No longer possible to read or conduct impact analysis on deleted items
git-svn-id: http://talendforge.org/svn/tos/trunk@94374 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 10:19:48 +00:00
wchen
68247df2ab bug TDI-23745 fixed: select context group list box only appear once when checking connection
git-svn-id: http://talendforge.org/svn/tos/trunk@94372 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 10:08:30 +00:00
nrousseau
8cffb66f47 TDI-23913 : fixed problem when try to refresh some items not existing anymore or items who can't display anymore.
git-svn-id: http://talendforge.org/svn/tos/trunk@94358 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 08:37:49 +00:00
mwang
16cea2beb3 For bug TDI-23399
git-svn-id: http://talendforge.org/svn/tos/trunk@94350 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 07:59:21 +00:00
mwang
61e303d05c For bug TDI-23719 and TDI-23399
git-svn-id: http://talendforge.org/svn/tos/trunk@94347 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 07:32:01 +00:00
jjzhou
3a9023bf9f Fix Bug TDI-23184 : trunjob: BufferOutput + tAggregateRow with List returns wrong List parent job
https://jira.talendforge.org/browse/TDI-23184

git-svn-id: http://talendforge.org/svn/tos/trunk@94339 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 06:53:57 +00:00
plv
8506faa505 bug TDI-20748:pop "Choose Context" dialog twice when edit schema with context model
git-svn-id: http://talendforge.org/svn/tos/trunk@94328 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 05:32:19 +00:00
xqliu
b702c56e55 TDQ-6185 TDQ-6419 don't use IWorkspaceRunnable in method LocalRepositoryFactory.moveFolder() because this method will be called recursive
git-svn-id: http://talendforge.org/svn/tos/trunk@94322 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 03:26:16 +00:00
msjian
4b39009d67 TDQ-6407: for top, not support hive embeded mode, so hide some menus
git-svn-id: http://talendforge.org/svn/tos/trunk@94316 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 03:09:02 +00:00
plv
9318abc4e9 bug TDI-22005:No longer possible to read or conduct impact analysis on deleted items
git-svn-id: http://talendforge.org/svn/tos/trunk@94315 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 03:07:26 +00:00
ycbai
02e77af11b bug TDI-23861 fixed : Loading JDBC connection from metadata repository add additional colon
git-svn-id: http://talendforge.org/svn/tos/trunk@94313 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-26 03:02:45 +00:00
qiongli
de398b1bcc TDQ-6437 TUP-273 (1)Give a warning when physical delete (or empty recycle bin )a folder in DI and contain connection depended by others.
(2)replace 'handleResourceChange' with 'hasDependcesInDQ'.add 'canEmptyRecycleBin' in TDQResourceChangedHandler.

git-svn-id: http://talendforge.org/svn/tos/trunk@94296 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 12:03:58 +00:00
qiongli
3086d14035 TDQ-6489 Optimize code of TDQ-6287.
git-svn-id: http://talendforge.org/svn/tos/trunk@94280 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 09:49:41 +00:00
qiongli
dd64c4c38c TDQ-6489 Optimize code of TDQ-6287.
git-svn-id: http://talendforge.org/svn/tos/trunk@94279 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 09:48:59 +00:00
plv
eec07d2941 bug TDI-22005:No longer possible to read or conduct impact analysis on deleted items
git-svn-id: http://talendforge.org/svn/tos/trunk@94278 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 09:43:40 +00:00
cli
9e6f270797 TUP-264: check the cache for lib and components
git-svn-id: http://talendforge.org/svn/tos/trunk@94269 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 07:58:52 +00:00
xqliu
996b2bbaae TDQ-6185 TDQ-6419 fix the problems when do the following operations in remote project mode: 1) rename a report; 2) drag&drop a report; 3) rename a report folder; 4) drag&drop a report folder; 5) delete report; 6) delete generated doc of report
git-svn-id: http://talendforge.org/svn/tos/trunk@94259 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 07:24:14 +00:00
cli
f95e644a5e TUP-264: check the cache for lib and components
git-svn-id: http://talendforge.org/svn/tos/trunk@94255 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 06:28:33 +00:00
zwzhao
ca86b3d911 bug TDI-23846 fixed : In SVN project, if a job is locked by userA, its jobscript can be edit by userB
git-svn-id: http://talendforge.org/svn/tos/trunk@94253 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 06:25:36 +00:00
wchen
7e3a95cacc bug TDI-23840 fixed: Get error when create connection
git-svn-id: http://talendforge.org/svn/tos/trunk@94233 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-23 02:32:36 +00:00
sgandon
f604d95fa1 Fix junit ant script to launch the test with a Studio.
update the script to use the properties prefix and suffix in the bundle selection

git-svn-id: http://talendforge.org/svn/tos/trunk@94222 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-22 14:46:47 +00:00
mwang
70a4cfd375 For bug TDQ-6462, just forgot to clear the configurations.
git-svn-id: http://talendforge.org/svn/tos/trunk@94206 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-22 08:51:24 +00:00
mwang
cbcbafa52f For bug TDQ-6462
git-svn-id: http://talendforge.org/svn/tos/trunk@94205 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-22 08:40:06 +00:00
hcyi
af55c03442 bug TUP-250 fixed : use jtds connect sqlserver database twice check failed(SSO) .
git-svn-id: http://talendforge.org/svn/tos/trunk@94197 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-22 07:59:26 +00:00
ycbai
5972f0cec4 bug TDI-22580 fixed : Hbase connection wizard: No db type and version option
git-svn-id: http://talendforge.org/svn/tos/trunk@94194 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-22 07:50:27 +00:00
fwang
ae97890240 bug TDI-23357 fixed:.dll can't be installed from modules view.
git-svn-id: http://talendforge.org/svn/tos/trunk@94191 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-22 07:30:55 +00:00
sgandon
5901144528 Fix junit ant script to launch the test with a Studio like the real product (using org.talend.configurator).
It creates a extrabundles.info by looking at all plugin starting with org.talend and ending with test.

git-svn-id: http://talendforge.org/svn/tos/trunk@94138 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-21 13:04:16 +00:00
cli
1ee049ed17 TUP-292: add two parameters to support logon remote project, when bootstrap
git-svn-id: http://talendforge.org/svn/tos/trunk@94088 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-21 06:20:31 +00:00
wchen
4649721f96 bug TDI-23840 fixed: Get error when create connection
git-svn-id: http://talendforge.org/svn/tos/trunk@94062 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-21 03:57:15 +00:00
plv
951b035c16 bug TDI-23794:drag&drop problem on oracle component,Db version is missing.
git-svn-id: http://talendforge.org/svn/tos/trunk@94041 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-21 03:09:52 +00:00
mwang
c330f6a1cc For bug TDI-23719, just add two parameters for getting data from HDFS
git-svn-id: http://talendforge.org/svn/tos/trunk@94036 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-21 02:10:40 +00:00
cli
0b1a118327 TDI-23641: enable to add/remove the classpath.jar when export job.
git-svn-id: http://talendforge.org/svn/tos/trunk@94013 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-20 09:55:32 +00:00
plv
c4c328deaf bug TDI-20748:pop "Choose Context" dialog twice when edit schema with context model
git-svn-id: http://talendforge.org/svn/tos/trunk@93999 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-20 07:09:01 +00:00
hcyi
43c35c79ec bug TUP-250 fixed : use jtds connect sqlserver database twice check failed(SSO) .
git-svn-id: http://talendforge.org/svn/tos/trunk@93978 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-20 02:35:39 +00:00
zwzhao
dd6f028573 bug TDI-23645 fixed : Web service of reference project can be edit in main project
git-svn-id: http://talendforge.org/svn/tos/trunk@93950 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-19 09:09:58 +00:00
wchen
e30f028102 bug TDI-23526 fixed :Can not use context for the MappingFile in the JDBC metadata
git-svn-id: http://talendforge.org/svn/tos/trunk@93946 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-19 08:33:23 +00:00
bchen
8c930e257c Fix Bug TDI-22821 : Flow time statistics after iterate cumulative
https://jira.talendforge.org/browse/TDI-22821

git-svn-id: http://talendforge.org/svn/tos/trunk@93942 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-19 07:34:54 +00:00
plv
c22ccb9d9e bug TDI-20748:revert code
git-svn-id: http://talendforge.org/svn/tos/trunk@93937 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-19 06:53:43 +00:00
hwang
125f8ce5a5 TDI-21955:Closed jobs updated when joblet changed
git-svn-id: http://talendforge.org/svn/tos/trunk@93930 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-19 06:24:56 +00:00
qiongli
835168e3d1 TDQ-6287 refresh the node parent when rename a connection in wizard.
git-svn-id: http://talendforge.org/svn/tos/trunk@93908 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-19 02:55:28 +00:00
wwang
71a4b4026c Fix Bug TDI-23699 : Check Ignore data out of range on tMSSqlOutput component throw error when input data type is DateTimeOffSet
https://jira.talendforge.org/browse/TDI-23699

git-svn-id: http://talendforge.org/svn/tos/trunk@93862 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-16 06:05:44 +00:00
fwang
822fc56947 bug TDI-23716 fixed:Create items in Metadata,when type a name there is no check
git-svn-id: http://talendforge.org/svn/tos/trunk@93861 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-16 05:52:51 +00:00
gliu
0d7d2a6134 [TESB-7603] fixed:
Re-order the ROUTE and ROUTE_WHEN

git-svn-id: http://talendforge.org/svn/tos/trunk@93860 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-16 04:15:10 +00:00
yyin
6a57518144 TDQ-6395 save the dependency of the connection when the name is changed
git-svn-id: http://talendforge.org/svn/tos/trunk@93857 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-16 03:59:50 +00:00
yyin
ec200a7ce7 TDQ-6395 save the dependency of the connection when name is changed
git-svn-id: http://talendforge.org/svn/tos/trunk@93856 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-16 03:58:14 +00:00
hcyi
acd8ce8499 bug TDI-23477 fixed : Set the dependency of the wizards dynamic for the module view .
git-svn-id: http://talendforge.org/svn/tos/trunk@93825 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-15 09:07:02 +00:00
ycbai
b8fdde0195 fix compile error.
git-svn-id: http://talendforge.org/svn/tos/trunk@93795 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-15 02:00:42 +00:00
fwang
1510486bd3 bug TDI-23345 fixed:DataOperation.FIX(value) Expression's Help explanation is incorrect
git-svn-id: http://talendforge.org/svn/tos/trunk@93794 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-15 01:52:39 +00:00
scorreia
c521f72efa some code cleansing
git-svn-id: http://talendforge.org/svn/tos/trunk@93787 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-14 15:25:48 +00:00
hcyi
60deb083fa bug TDI-23477 fixed : Set the dependency of the wizards dynamic for the module view .
git-svn-id: http://talendforge.org/svn/tos/trunk@93775 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-14 10:05:03 +00:00
wliu
f1f16757bb Fix Bug TDI-22891: revert the commit to the previous r89138
https://jira.talendforge.org/browse/TDI-22891

git-svn-id: http://talendforge.org/svn/tos/trunk@93765 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-14 08:15:50 +00:00
wliu
d42e5f2b49 Fix Bug TDI-22891: optimize the code to reduce memory
https://jira.talendforge.org/browse/TDI-22891

git-svn-id: http://talendforge.org/svn/tos/trunk@93762 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-14 07:24:52 +00:00
ycbai
170dd05b71 bug TDI-23508 fixed : can't export job with "OSGI Bundle For Esb" type and maven script in commandline
git-svn-id: http://talendforge.org/svn/tos/trunk@93750 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-14 05:43:16 +00:00
msjian
7fd3444033 TDQ-6302: revert the last commit
git-svn-id: http://talendforge.org/svn/tos/trunk@93736 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-14 03:00:06 +00:00
msjian
758aa56866 TDQ-6302: delete the useless code
git-svn-id: http://talendforge.org/svn/tos/trunk@93705 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-13 10:24:59 +00:00
plv
a567b60ed1 bug TDI-23424:Need to review the display of the db wizard
git-svn-id: http://talendforge.org/svn/tos/trunk@93678 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-13 08:47:02 +00:00
zwzhao
165d3b1776 bug TDI-23419 fixed : Update the links to the Documentation Guides on the Welcome page
git-svn-id: http://talendforge.org/svn/tos/trunk@93674 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-13 08:00:26 +00:00
zshen
778d569ed9 TDQ-6394 fixed a bug when judge whether sid or uischema is null.
fixed another bug when in context mode too many times added for filterList.

git-svn-id: http://talendforge.org/svn/tos/trunk@93669 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-13 06:43:15 +00:00
plv
b19c5364df bug TDI-23507:SQLserver JDBC: the sql of Guess Schema is wrong
git-svn-id: http://talendforge.org/svn/tos/trunk@93638 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-13 02:16:53 +00:00
sgandon
f869c17101 fix demo of repo view because of Interface change.
git-svn-id: http://talendforge.org/svn/tos/trunk@93622 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-12 12:49:30 +00:00
mzhao
1b2960f889 TDQ-6417 the returned password must not a null value. make it to "" if null.
git-svn-id: http://talendforge.org/svn/tos/trunk@93619 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-12 10:49:42 +00:00
zshen
c540d26be4 TDQ-5645 some lost code.
git-svn-id: http://talendforge.org/svn/tos/trunk@93614 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-12 10:26:36 +00:00
zshen
e3e5267080 TDQ-5645 some lost code.
git-svn-id: http://talendforge.org/svn/tos/trunk@93613 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-12 10:26:24 +00:00
ycbai
1c7fd683c7 bug TDI-23453 fixed : Need to add a way to set bundleId for system routines defined by extension point
git-svn-id: http://talendforge.org/svn/tos/trunk@93599 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-12 09:48:17 +00:00
qiongli
3cbfbaec44 TDQ-6166 add a function 'initAllConnectionsToSQLExplorer' to init connections for DataExploer perspective.
git-svn-id: http://talendforge.org/svn/tos/trunk@93595 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-12 09:29:54 +00:00
zwzhao
d1fdb65322 bug TDI-23419 fixed : Update the links to the Documentation Guides on the Welcome page
git-svn-id: http://talendforge.org/svn/tos/trunk@93579 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-12 06:25:58 +00:00
nrousseau
bf56b190cf TDI-23674 fixed: fix problem of latest version.
git-svn-id: http://talendforge.org/svn/tos/trunk@93572 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-12 03:56:31 +00:00
sizhaoliu
a548a15faa TDQ-5280 TDQ-6414 drag and drop a BRMS connection to job. the TAC_WEBAPP field is still empty.
git-svn-id: http://talendforge.org/svn/tos/trunk@93554 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-09 15:38:39 +00:00
sizhaoliu
c5d25f3c7d TDQ-5280 TDQ-6414 propagated TAC_WEBAPP from component to wizard
git-svn-id: http://talendforge.org/svn/tos/trunk@93552 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-09 14:14:26 +00:00
xqliu
d4842a6d35 TDQ-6291 TDQ-6363 fix the problem when the login don't have the permission to the catalog which user input in the database wizard page for Sybase database
git-svn-id: http://talendforge.org/svn/tos/trunk@93551 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-09 11:12:35 +00:00
wchen
63ae424e6c bug TUP-268 fixed: Merge project:if have a new route under "Meditation" perspective, and under main project "Integration" perspective, try to merge the project, get error
git-svn-id: http://talendforge.org/svn/tos/trunk@93547 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-09 10:31:13 +00:00
ldong
83597d7b51 bug TDI-23371 fixed:<Tag Management>:do Revert action, get warning.
git-svn-id: http://talendforge.org/svn/tos/trunk@93509 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-09 05:57:00 +00:00
fwang
4b53282447 bug TDI-23454 fixed: shortcut key ( ctrl+c or ctrl+drag on job ) to copy job didn't work
git-svn-id: http://talendforge.org/svn/tos/trunk@93495 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-09 03:39:40 +00:00
fwang
25ed3b60a3 bug TDI-23345 fixed:DataOperation.FIX(value) Expression's Help explanation is incorrect
git-svn-id: http://talendforge.org/svn/tos/trunk@93484 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-09 02:11:48 +00:00
xqliu
9378db4d61 TDQ-6291 TDQ-6363 1) fix the problem of reload sybase connection; 2) on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@93460 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-08 11:07:39 +00:00
sgandon
31a951bce1 Fix task : Make SwtBot Test work with multiple Licence
remove the .JetEmmiters folder before every launch to avoid an issue (TDI-23640)

git-svn-id: http://talendforge.org/svn/tos/trunk@93459 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-08 10:58:11 +00:00
fwang
5815fedfb3 bug TDI-23257 fixed:When drag&drop more a context or a metadata with a context linked, it should ask to copy all context group.
git-svn-id: http://talendforge.org/svn/tos/trunk@93447 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-08 10:03:36 +00:00
hwang
671d85f6b9 TDI-22770:Joblet changes that do not affect input/output should not trigger job update detection
git-svn-id: http://talendforge.org/svn/tos/trunk@93436 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-08 08:53:30 +00:00
ycbai
5d11b7628b bug TDI-23588 fixed : If the namenode URL is incorrect in a component, file browser timeout is too long and none error is raised
git-svn-id: http://talendforge.org/svn/tos/trunk@93431 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-08 08:08:48 +00:00
mwang
6da79b1749 For bug TDI-23415, we assumed that all jars from user's choose are in our libs manager.
git-svn-id: http://talendforge.org/svn/tos/trunk@93425 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-08 07:46:06 +00:00
xqliu
949c5ccd48 TDQ-6389 TDQ-6393 1) remove the useless judgement codes; 2) on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@93424 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-08 07:41:50 +00:00
cli
c882cf1b7e TDI-23377: enable to export the route with cTalendJob nodes and Maven option.
git-svn-id: http://talendforge.org/svn/tos/trunk@93419 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-08 07:25:46 +00:00
xqliu
44bf4250ef TDQ-6389 TDQ-6393 1) use the login name as the database name when user don't input it; 2) show database as a catalog; 3) on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@93406 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-08 04:10:49 +00:00
mwang
74a9f5be23 For bug TDI-12596, from the screenshots, only schema can not be propagated to metadata db.
git-svn-id: http://talendforge.org/svn/tos/trunk@93380 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-07 10:06:11 +00:00
plv
7dd9eaf7ad bug TDI-23507:SQLserver JDBC: the sql of Guess Schema is wrong
git-svn-id: http://talendforge.org/svn/tos/trunk@93355 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-07 07:39:12 +00:00
mwang
eb0573cb9a For bug TDI-23523
git-svn-id: http://talendforge.org/svn/tos/trunk@93347 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-07 06:55:03 +00:00
fwang
0cd35912aa bug TDI-23454 fixed:shortcut key ( ctrl+c or ctrl+drag on job ) to copy job didn't work
git-svn-id: http://talendforge.org/svn/tos/trunk@93340 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-07 06:05:40 +00:00
zshen
06ff32e8e2 TDQ-6356 merge cache map between ConnectionUtils and MetadataConnectionUtils
git-svn-id: http://talendforge.org/svn/tos/trunk@93336 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-07 04:30:19 +00:00
zshen
2198387403 TDQ-6356 upgrate jtds.jar from 1.2 to 1.2.5 to resolve getSchema is user issue
git-svn-id: http://talendforge.org/svn/tos/trunk@93333 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-07 04:27:33 +00:00
mwang
413ca62cf4 For bug TUP-221
git-svn-id: http://talendforge.org/svn/tos/trunk@93329 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-07 03:51:51 +00:00
msjian
4c9ce8c140 TDQ-3574: add javadoc for these classes
git-svn-id: http://talendforge.org/svn/tos/trunk@93327 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-07 03:37:52 +00:00
zwzhao
a5059ad8b3 bug TDI-23419 fixed : Update the links to the Documentation Guides on the Welcome page
git-svn-id: http://talendforge.org/svn/tos/trunk@93303 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-06 10:03:47 +00:00
ycbai
747c1ac4dc bug TDI-23528 fixed : Can't create the remote conneciton if install path contain blank space
git-svn-id: http://talendforge.org/svn/tos/trunk@93301 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-06 09:58:55 +00:00
zwzhao
e2a6cd769e bug TDI-22320 fixed : Message should pop up to remind user there are jobs locked when delete folder contains locked jobs
git-svn-id: http://talendforge.org/svn/tos/trunk@93286 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-06 08:58:36 +00:00
ldong
a30482c431 bug TDI-23482 fixed:The studio do not send TAC the branch/tag it connects to at session opening.
git-svn-id: http://talendforge.org/svn/tos/trunk@93284 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-06 08:57:58 +00:00
plv
002e80155c bug TDI-23200:'#' Character in Password does not work
git-svn-id: http://talendforge.org/svn/tos/trunk@93282 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-06 08:49:17 +00:00
ycbai
c720071d56 bug TDI-23550 fixed : check API used to generate xml metadata from XSD
git-svn-id: http://talendforge.org/svn/tos/trunk@93253 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-06 02:43:40 +00:00
rbaldwin
cada111ad6 TOS specific changes related to the partitioning components. Most notably TDI-23122.
git-svn-id: http://talendforge.org/svn/tos/trunk@93246 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-06 00:20:19 +00:00
zshen
ed1715a077 TDQ-6356 to resolve only one schema display when empry UiSchema to create a new mssql connection
git-svn-id: http://talendforge.org/svn/tos/trunk@93227 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-05 07:33:48 +00:00
zwzhao
9672d061ab bug TDI-22320 fixed : Message should pop up to remind user there are jobs locked when delete folder contains locked jobs
git-svn-id: http://talendforge.org/svn/tos/trunk@93213 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-05 03:42:45 +00:00
ycbai
680a811621 bug TDI-23544 fixed : Cannot open project in studio
git-svn-id: http://talendforge.org/svn/tos/trunk@93212 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-05 02:55:12 +00:00
ycbai
0991ea14ec bug TDI-23178 fixed : Error when import a full project initialized by a different type of product (MDM > DQ/DI or DQ > DI)
git-svn-id: http://talendforge.org/svn/tos/trunk@93181 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-02 09:14:11 +00:00
plv
6bde1d62a3 bug TDI-23200:'#' Character in Password does not work
git-svn-id: http://talendforge.org/svn/tos/trunk@93175 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-02 09:00:46 +00:00
plv
c08589d2f0 bug TDI-23200:'#' Character in Password does not work
git-svn-id: http://talendforge.org/svn/tos/trunk@93152 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-02 02:51:22 +00:00
hcyi
3b98a3cc10 bug TDI-23426 fixed : upgrade the jar from mysql-connector-JAVA-5.1.0-bin.jar to mysql-connector-JAVA-5.1.22-bin.jar for studio part .
git-svn-id: http://talendforge.org/svn/tos/trunk@93135 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-01 09:57:12 +00:00
ycbai
6d6e9c178d bug TDI-22580 fixed : Hbase connection wizard: No db type and version option
git-svn-id: http://talendforge.org/svn/tos/trunk@93130 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-01 08:30:01 +00:00
ycbai
a8f36215fe bug TDI-22580 fixed : Hbase connection wizard: No db type and version option
git-svn-id: http://talendforge.org/svn/tos/trunk@93127 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-01 07:49:23 +00:00
xqliu
0804619f5b TDQ-6291 TDQ-6363 1) externalize strings 3) on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@93118 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-01 04:41:04 +00:00
nrousseau
a356ebe5d7 TDI-23336 fixed: forbid any deletion of item in offline mode, allow for now the move item, enhance a little the dialog of changes detected.
git-svn-id: http://talendforge.org/svn/tos/trunk@93110 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-11-01 02:21:10 +00:00
sgandon
bf7f18a9ed make ant plugin unpack
git-svn-id: http://talendforge.org/svn/tos/trunk@93087 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-31 10:42:22 +00:00
xqliu
d7bdfa5dff TDQ-6291 TDQ-6363 1) refactory the method org.talend.utils.sql.ConnectionUtils.createConnection(String url, Driver driver, Properties props); 2) on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@93061 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-31 08:53:31 +00:00
zshen
150e1b3846 TDQ-6041 TDQ-6345 Code optimize for commits on TDQ-6200
git-svn-id: http://talendforge.org/svn/tos/trunk@93056 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-31 08:17:19 +00:00
zshen
c5fa78da97 TDQ-6041 TDQ-6345 Code optimize for commits on TDQ-6200
git-svn-id: http://talendforge.org/svn/tos/trunk@93055 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-31 08:17:02 +00:00
wliu
1ddc72f5ef Fix Bug TDI-23184 : trunjob: BufferOutput + tAggregateRow with List returns wrong List parent job
https://jira.talendforge.org/browse/TDI-23184

git-svn-id: http://talendforge.org/svn/tos/trunk@93045 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-31 07:01:52 +00:00
wliu
2a104abf3b Fix Bug TDI-23184 : trunjob: BufferOutput + tAggregateRow with List returns wrong List parent job
https://jira.talendforge.org/browse/TDI-23184

git-svn-id: http://talendforge.org/svn/tos/trunk@93044 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-31 06:56:22 +00:00
fwang
19eb1997cf bug TDI-23357 fixed:.dll can't be installed from modules view.
git-svn-id: http://talendforge.org/svn/tos/trunk@93028 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-31 02:20:51 +00:00
cli
74f3d2910d TDI-23491: add the modifications
git-svn-id: http://talendforge.org/svn/tos/trunk@93013 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-30 10:10:16 +00:00
wchen
eb35ccccca bug TDI-23383 fixed : Merge reference project can not work
git-svn-id: http://talendforge.org/svn/tos/trunk@93012 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-30 10:06:21 +00:00
xqliu
119d11621d TDQ-6291 TDQ-6363 1) get sybase structure information from system tables; 2) do some code cleaning; 3) on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@93010 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-30 10:04:19 +00:00
ycbai
b80af2672a fix missing ant lib bug
git-svn-id: http://talendforge.org/svn/tos/trunk@92985 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-30 05:54:11 +00:00
hcyi
ee5770ab24 bug TDI-23426 fixed : upgrade the jar from mysql-connector-java-5.1.0-bin.jar to mysql-connector-java-5.1.22-bin.jar for studio part .
git-svn-id: http://talendforge.org/svn/tos/trunk@92974 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-30 03:27:23 +00:00
wchen
3994cbd601 bug TDQ-6274 fixed: manually change label or db column won't lost the analysis
git-svn-id: http://talendforge.org/svn/tos/trunk@92973 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-30 03:15:42 +00:00
wchen
c15cec0699 bug TDI-23218 fixed: Unable to associate a fixed value with an XML element (duplicate to 0011723 which is NOT FIXED)
git-svn-id: http://talendforge.org/svn/tos/trunk@92947 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-29 07:42:44 +00:00
ycbai
874a0c4235 bug TDI-23389 fixed : Enhance the Services script manager to export with Maven option
git-svn-id: http://talendforge.org/svn/tos/trunk@92944 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-29 07:34:28 +00:00
xqliu
453536e41f TDQ-6291 TDQ-6363 1) code clean for MetadataConnectionUtils.java and DBConnectionFillerImpl.java; 2) on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@92942 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-29 07:32:01 +00:00
cli
45bf2e9e3b TDI-23390: add the service karaf preference page.
git-svn-id: http://talendforge.org/svn/tos/trunk@92933 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-29 06:31:24 +00:00
mwang
c2a3c802da For bug TDI-22983, the fixes do not display the dialog to choose a context.
git-svn-id: http://talendforge.org/svn/tos/trunk@92927 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-29 04:18:57 +00:00
kpchen
b1f75fce20 TDI-23256, Get screenshot from generated zip instead of svn for stats:
add an opitional parameter to unzip method, Case-insensitive Suffixes , if these parameter are set, only the files named with these suffixes will be extracted.

git-svn-id: http://talendforge.org/svn/tos/trunk@92878 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-26 10:09:55 +00:00
hcyi
15831dbae7 bug TDI-23468 fixed : open refence service item in main project , have another problems .
git-svn-id: http://talendforge.org/svn/tos/trunk@92861 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-26 09:06:53 +00:00
cli
d3b618bd43 TDI-23391: refactor to enhance to split the lib with provided-lib and fix a problem for karaf preference page.
git-svn-id: http://talendforge.org/svn/tos/trunk@92841 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-26 06:02:35 +00:00
wchen
d88f81a451 bug TDQ-6274 fixed: manually change label or db column won't lost the analysis
git-svn-id: http://talendforge.org/svn/tos/trunk@92834 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-26 04:05:01 +00:00
fwang
22a15e0be7 bug TDI-23408 fixed:Close repository view / reopen, impossible to do any double click in any item.
git-svn-id: http://talendforge.org/svn/tos/trunk@92828 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-26 01:35:40 +00:00
sizhaoliu
a83d1f64ea Backport script : Handle branches starting with "branch-"
git-svn-id: http://talendforge.org/svn/tos/trunk@92821 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 13:07:06 +00:00
ilazebny
271975215a Update version in poms to 5.2.1-SNAPSHOT
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@92816 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 12:06:20 +00:00
ilazebny
4ac002a57e Update version in poms to 5.2.1-SNAPSHOT
git-svn-id: http://talendforge.org/svn/tos/trunk@92815 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 12:05:57 +00:00
mwang
da1153f73e TDQ-6359, a tmp solution.
git-svn-id: http://talendforge.org/svn/tos/trunk@92800 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 10:59:01 +00:00
sizhaoliu
fd5a242722 TDQ-6316 the two tagged values should be also added for hive
git-svn-id: http://talendforge.org/svn/tos/trunk@92794 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 10:33:18 +00:00
fwang
93fdeddc27 bug TDI-23408 fixed:Close repository view / reopen, impossible to do any double click in any item.
git-svn-id: http://talendforge.org/svn/tos/trunk@92785 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 09:56:56 +00:00
ilazebny
f7b30fbf38 Update version to 5.2.0 in poms
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@92778 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 08:46:48 +00:00
ilazebny
253f25a151 Update version to 5.2.0 in poms
git-svn-id: http://talendforge.org/svn/tos/trunk@92777 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 08:46:25 +00:00
zwzhao
fd47fb255e bug TDI-22320 fixed : Message should pop up to remind user there are jobs locked when delete folder contains locked jobs
git-svn-id: http://talendforge.org/svn/tos/trunk@92760 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 07:11:31 +00:00
wchen
7a6c5167d6 bug TDI-23416 fixed: TOS_BD Studio freezes when trying to download a jar after launching a job which has an error
git-svn-id: http://talendforge.org/svn/tos/trunk@92749 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 05:10:16 +00:00
jyhu
acaef21130 Fix Bug TDI-22793 : tMSSQLInput of small numbers
https://jira.talendforge.org/browse/TDI-22793 

git-svn-id: http://talendforge.org/svn/tos/trunk@92741 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 03:23:59 +00:00
fwang
e95e65bf25 bug TDI-23257 fixed:When drag&drop more a context or a metadata with a context linked, it should ask to copy all context group.
git-svn-id: http://talendforge.org/svn/tos/trunk@92736 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 03:02:25 +00:00
hcyi
ae4e6801b0 bug TDI-23181 fixed : On MSSQL Can't Retrieve Schema on a DB with a "-" .
git-svn-id: http://talendforge.org/svn/tos/trunk@92730 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-25 02:44:54 +00:00
sizhaoliu
0fef3ab346 TDI-23409 correct an error in the last commit.
git-svn-id: http://talendforge.org/svn/tos/trunk@92706 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-24 12:28:28 +00:00
wliu
950071f28b Fix Bug TDI-23411 : NodeUtil.getPrivateConnClassName(final IConnection conn) return value is not correct
https://jira.talendforge.org/browse/TDI-23411

git-svn-id: http://talendforge.org/svn/tos/trunk@92692 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-24 11:16:15 +00:00
sizhaoliu
5bd66a3fce fixed TDI-23409 by reverting the changes (database connection method call) in r92079 for TDQ-6288
git-svn-id: http://talendforge.org/svn/tos/trunk@92689 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-24 11:03:12 +00:00
mzhao
0cccb6e4eb TDQ-6360 - Create a new instance of TdColumn to avoid column lost after job generated.
git-svn-id: http://talendforge.org/svn/tos/trunk@92686 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-24 10:48:16 +00:00
jzhao
2f6704d026 Fixed Bug TDI-23411: NodeUtil.getPrivateConnClassName(final IConnection conn) return value is not correct
https://jira.talendforge.org/browse/TDI-23411

git-svn-id: http://talendforge.org/svn/tos/trunk@92666 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-24 08:24:45 +00:00
ycbai
42a1c62b3c bug TDI-22989 modified : HDFS browser doesn't work everytime
git-svn-id: http://talendforge.org/svn/tos/trunk@92655 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-24 05:56:42 +00:00
mwang
b80ef626f5 For bug TDI-23400
git-svn-id: http://talendforge.org/svn/tos/trunk@92652 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-24 03:44:49 +00:00
mwang
f8e6a731b8 For bug TDI-23400
git-svn-id: http://talendforge.org/svn/tos/trunk@92644 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-24 02:40:25 +00:00
xqliu
4899093457 TDQ-6204 TDQ-6335 1) set "AvoidUnloadResource" with true before execute the WorkUnit; 2) on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@92642 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-24 02:36:18 +00:00
sizhaoliu
b57dabd128 TDQ-6107 TDQ-6316 replace the use of SoftwareSystem with two taggedValues in the Connection + set these tagged values when the SoftwareSystem was called + Do not create SoftwareSystem objects anymore.
git-svn-id: http://talendforge.org/svn/tos/trunk@92595 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 12:01:27 +00:00
mwang
976831516c For feature TDI-22130
git-svn-id: http://talendforge.org/svn/tos/trunk@92591 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 11:06:01 +00:00
mzhao
8cfac5d2c3 TDQ-5837 TDI-23300
- revert commit: 80747
- Use a new method to retrieve TdColumn list in ColumnHelper intead of using a deprecated method.
- Check the db column name again for all the Node of currect process before persistence.

git-svn-id: http://talendforge.org/svn/tos/trunk@92587 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 10:48:03 +00:00
mwang
28911b223e For feature TDI-22130, to hide server and port widgets
git-svn-id: http://talendforge.org/svn/tos/trunk@92586 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 10:42:01 +00:00
mwang
007864bec8 For feature TDI-22130, Just for the Hive wizard UI, the scrolled bar can not display when create a new Hive wizard.
git-svn-id: http://talendforge.org/svn/tos/trunk@92578 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 09:37:06 +00:00
ldong
854492a9c6 bug TDI-23358 fixed:Switch branch:Many error pop up.
git-svn-id: http://talendforge.org/svn/tos/trunk@92572 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 08:30:00 +00:00
zshen
957dd076b0 TDQ-5330 TDQ-6341 fix issue related to the combination of tMatchGroup and tRecordMatching
git-svn-id: http://talendforge.org/svn/tos/trunk@92563 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 07:57:18 +00:00
scorreia
ab1d9b6123 i18n: synchronize Babili strings exported on 5.2.0RC2-2012-10-22-09-39-11
git-svn-id: http://talendforge.org/svn/tos/trunk@92559 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 07:46:23 +00:00
wchen
73c5f258f0 bug TDI-23089 fixed : Fix some problems about download external jar
git-svn-id: http://talendforge.org/svn/tos/trunk@92552 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 07:02:50 +00:00
cli
d5beb336db TDI-23355: enhance and fix the generating OSGI bundle by Maven.
git-svn-id: http://talendforge.org/svn/tos/trunk@92547 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 06:54:03 +00:00
nrousseau
cd7d5a1123 Fix Backlog Task TDI-23363 : update studio part for the jars of oracle.
https://jira.talendforge.org/browse/TDI-23363
fix export package

git-svn-id: http://talendforge.org/svn/tos/trunk@92544 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 06:39:28 +00:00
mwang
2f4679260b For feature TDI-22130, for hive standalone mode to retrieve tables when "Retrieve Schema" on a Hive Standalone connection
git-svn-id: http://talendforge.org/svn/tos/trunk@92543 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 06:38:03 +00:00
mwang
ab3b3ca03a For feature TDI-22130, Just fix a problem that can not retrieve tables for Hive Embedded connection.
git-svn-id: http://talendforge.org/svn/tos/trunk@92541 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 06:13:51 +00:00
wchen
a8233e5b1a bug TDI-23089 fixed : Fix some problems about download external jar
git-svn-id: http://talendforge.org/svn/tos/trunk@92530 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 04:12:30 +00:00
zwzhao
520af19d60 bug TDI-22975 fixed : Cancelling Expression Builder
git-svn-id: http://talendforge.org/svn/tos/trunk@92527 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 03:33:29 +00:00
mwang
09e83eda28 For feature TDI-22130
git-svn-id: http://talendforge.org/svn/tos/trunk@92526 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 02:54:44 +00:00
mwang
98159c9163 For feature TDI-22130
git-svn-id: http://talendforge.org/svn/tos/trunk@92525 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 02:49:39 +00:00
nrousseau
eabf820764 Fix Backlog Task TDI-23363 : update studio part for the jars of oracle.
https://jira.talendforge.org/browse/TDI-23363

git-svn-id: http://talendforge.org/svn/tos/trunk@92524 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 02:48:11 +00:00
mwang
51fc79f32e For feature TDI-22130
git-svn-id: http://talendforge.org/svn/tos/trunk@92522 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-22 02:28:06 +00:00
sgandon
161e58d8d5 Fix task : Make SwtBot Test work with multiple Licence
update the feature.xml to remove the -noExit

git-svn-id: http://talendforge.org/svn/tos/trunk@92514 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 13:29:07 +00:00
rdubois
c15442cdb1 TDI-21998 fixed: char seems not to be available anymore.
git-svn-id: http://talendforge.org/svn/tos/trunk@92511 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 12:42:40 +00:00
nrousseau
6769bdd2c4 TDI-23363 fixed: update versions of jars, still need to review for migration task of job settings after.
git-svn-id: http://talendforge.org/svn/tos/trunk@92504 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 10:53:07 +00:00
wchen
e3701ea7ad bug TDI-23089 fixed : Fix some problems about download external jar
git-svn-id: http://talendforge.org/svn/tos/trunk@92502 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 10:38:27 +00:00
msjian
bdb8c5a150 TDQ-6235: add some value for Benford law indicator
git-svn-id: http://talendforge.org/svn/tos/trunk@92485 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 08:58:08 +00:00
nrousseau
7597ba1624 Fix Bug TDI-23105 : fix problem of delete in case of offline mode on svn repository
git-svn-id: http://talendforge.org/svn/tos/trunk@92471 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 07:45:27 +00:00
nrousseau
bb6ff37c7a Fix Bug TDI-23105 : fix problem of delete in case of offline mode on svn repository
git-svn-id: http://talendforge.org/svn/tos/trunk@92466 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 07:25:17 +00:00
wchen
b1bfdfacf0 bug TDI-23089 fixed : Fix some problems about download external jar
git-svn-id: http://talendforge.org/svn/tos/trunk@92465 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 07:24:14 +00:00
wchen
b0ab0b92a2 bug TDI-23089 fixed : Fix some problems about download external jar
git-svn-id: http://talendforge.org/svn/tos/trunk@92457 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 06:34:16 +00:00
qiongli
08c960ff1e TDQ-6166 change DatabaseConnectionItem into ConnectionItem.
git-svn-id: http://talendforge.org/svn/tos/trunk@92448 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 04:06:19 +00:00
qiongli
8212bf2596 TDQ-6166 set some attributes in connection before saving the duplicated connection which is non-single version.
git-svn-id: http://talendforge.org/svn/tos/trunk@92446 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 03:59:48 +00:00
jyhu
0f03a98dc5 Fix Bug TDI-22876 : tReplace always case-sensitive when replacing with null
https://jira.talendforge.org/browse/TDI-22876 

git-svn-id: http://talendforge.org/svn/tos/trunk@92441 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-19 03:38:55 +00:00
sgandon
1b70c6f007 Fix task : Make SwtBot Test work with multiple Licence
update the build script and added ant-contrib


git-svn-id: http://talendforge.org/svn/tos/trunk@92424 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 14:46:51 +00:00
ycbai
c243e9b906 feature TDI-23323 added : Move maven preference pages and scripts
git-svn-id: http://talendforge.org/svn/tos/trunk@92390 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 10:43:47 +00:00
fwang
203e27c1bf bug TDI-23216 fixed:Cam't edit the property of item
git-svn-id: http://talendforge.org/svn/tos/trunk@92368 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 09:21:25 +00:00
zwzhao
7aef06f8d4 bug TDI-22901 fixed : Add a junit to ensure that the studio have all the libs necessary for the system of db connection
git-svn-id: http://talendforge.org/svn/tos/trunk@92367 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 09:12:16 +00:00
plv
88989b32a6 bug TDI-23197:error show in error log when click Finish during Access connection creation
git-svn-id: http://talendforge.org/svn/tos/trunk@92361 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 08:33:20 +00:00
wchen
ae218614ff bug TDI-23089 fixed : add help content
git-svn-id: http://talendforge.org/svn/tos/trunk@92359 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 08:21:17 +00:00
fwang
c26805e767 bug TDI-22734 fixed:Joblet icon:Revert not worked for it
git-svn-id: http://talendforge.org/svn/tos/trunk@92342 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 07:03:07 +00:00
qiongli
cf001762a8 TDQ-6166 avoid tdqRepService null.
git-svn-id: http://talendforge.org/svn/tos/trunk@92341 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 06:47:55 +00:00
qiongli
ace8fdb1ec TDQ-6166 Remove connection in sqlExplore when it is logical deleted(contain DI connection);
Add connection in sqlExplore when it is restored or duplicated(contain DI connection).

git-svn-id: http://talendforge.org/svn/tos/trunk@92337 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 06:19:16 +00:00
cli
f48e0140de TDI-22791: fixed the problem on linux system and refactor something at the same time.
git-svn-id: http://talendforge.org/svn/tos/trunk@92322 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 03:40:23 +00:00
zshen
64a8f5f88c TDQ-4855 active reload confirm dialog when user modify a schema on DatabaseWizard
git-svn-id: http://talendforge.org/svn/tos/trunk@92319 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-18 03:14:44 +00:00
wchen
ab461d0ba1 bug TDI-23275 fixed: BD build:Project setting->Palette Setting->Transfer components under "Technical" folder from Hide part to Show part, get error message
git-svn-id: http://talendforge.org/svn/tos/trunk@92270 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-17 08:56:30 +00:00
ldong
e9b759599a bug TDI-23291 fixed:command (exportAllJob -dd F:/ant_unzip/) cannot done.
git-svn-id: http://talendforge.org/svn/tos/trunk@92267 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-17 08:55:10 +00:00
ycbai
2ee192fc41 bug TDI-22989 fixed : HDFS browser doesn't work everytime
git-svn-id: http://talendforge.org/svn/tos/trunk@92262 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-17 08:11:18 +00:00
plv
71d5ae480b bug TDI-21217:Embedded Rules:Edit rule:garbage string
git-svn-id: http://talendforge.org/svn/tos/trunk@92260 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-17 08:04:17 +00:00
ycbai
9c50c93a27 bug TDI-22989 fixed : HDFS browser doesn't work everytime
git-svn-id: http://talendforge.org/svn/tos/trunk@92240 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-17 06:39:26 +00:00
ycbai
99dbe81906 bug TDI-22955 fixed : HCatalog_fail to update repository for HCatalog connection
git-svn-id: http://talendforge.org/svn/tos/trunk@92238 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-17 06:34:09 +00:00
zshen
520d3dd8e8 TDQ-6200 TDQ-6264 fix a bug when create a mssql connection and don't fill shcme then modify it to add one shcmea filter will lost columns.
git-svn-id: http://talendforge.org/svn/tos/trunk@92224 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-17 03:40:43 +00:00
plv
044d096b88 merge r92171 from branch 5.1 to trunk
bug TDI-23177:Copy to generic schema:after copy this schema, name changed


git-svn-id: http://talendforge.org/svn/tos/trunk@92215 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-17 02:54:40 +00:00
plv
6bb02719a3 merge r92187 from branch 5.1 to trunk
bug TDI-23197:error show in error log when click Finish during Access connection creation


git-svn-id: http://talendforge.org/svn/tos/trunk@92212 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-17 02:25:18 +00:00
wchen
a0d989caea bug TDQ-6219 fixed: Fix the column missing issue when columns are unchanged after retrieve schema
git-svn-id: http://talendforge.org/svn/tos/trunk@92209 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-17 02:15:03 +00:00
rdubois
8bad93d445 TDQ-6200 TDQ-6264: Fix r92156
git-svn-id: http://talendforge.org/svn/tos/trunk@92170 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-15 13:43:39 +00:00
scorreia
f451a94aed i18n: synchronize Babili strings exported on 5.2.0RC1-2012-10-15-15-08-15
git-svn-id: http://talendforge.org/svn/tos/trunk@92169 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-15 13:26:19 +00:00
bchen
e46ebc9f96 Fix Bug TDI-21609 : Unexpected result when tOracleInput load data with time zone
https://jira.talendforge.org/browse/TDI-21609


git-svn-id: http://talendforge.org/svn/tos/trunk@92160 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-15 11:43:25 +00:00
zshen
97c0e1ab1a TDQ-6200 TDQ-6264 after switch context change the name of catalog or schema.
fixed reload function for mssql and oracle
                                      make change the name of catalog instead of remove and add catalog.

git-svn-id: http://talendforge.org/svn/tos/trunk@92157 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-15 11:42:22 +00:00
zshen
0ede11f9a4 TDQ-6200 TDQ-6264 after switch context change the name of catalog or schema.
fixed reload function for mssql and oracle
                                      make change the name of catalog instead of remove and add catalog.

git-svn-id: http://talendforge.org/svn/tos/trunk@92156 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-15 11:41:54 +00:00
wchen
760bee7399 bug TDI-23155 fixed :New labels for third party libraries download wizard
git-svn-id: http://talendforge.org/svn/tos/trunk@92120 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-15 08:37:32 +00:00
hwang
5c7053dd1f TDI-23247:Login project throws NPE.
git-svn-id: http://talendforge.org/svn/tos/trunk@92115 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-15 08:05:19 +00:00
cli
151e3efb0d TDI-23225: remove the libs for karaf in Maven.
git-svn-id: http://talendforge.org/svn/tos/trunk@92112 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-15 07:46:19 +00:00
mwang
330b1dc431 For bug TDI-23235
git-svn-id: http://talendforge.org/svn/tos/trunk@92095 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-15 04:11:03 +00:00
sizhaoliu
2c1f3cfceb TDQ-6207 TDQ-6288 remove usage of hive driver for other database connections by changing the method call of connection creation + fixed a metadata reload exception for connection wizard
git-svn-id: http://talendforge.org/svn/tos/trunk@92079 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-12 21:22:47 +00:00
ldong
aba6da9051 bug TDI-23105 fixed:<Tag Management>:Dont have deleted forbidden window when empty recycle.
git-svn-id: http://talendforge.org/svn/tos/trunk@92048 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-12 08:01:00 +00:00
nrousseau
4a45635574 Modification: remove old jars not needed anymore and update for exasol
git-svn-id: http://talendforge.org/svn/tos/trunk@92047 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-12 07:55:05 +00:00
wchen
f909b017d7 bug TDI-23089 fixed: Jar installation: put some operations in background. fix the comment in subtaskTDI-23091
git-svn-id: http://talendforge.org/svn/tos/trunk@92046 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-12 07:50:34 +00:00
cli
6ebd1f44a4 TDI-23225: fix the bundle classpath issue and fixed a bug for export karaf with maven.
git-svn-id: http://talendforge.org/svn/tos/trunk@92036 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-12 06:55:56 +00:00
plv
c1cdef09f9 bug TDI-22504:did not filter catalog when retrieve schema for specified informix connection
git-svn-id: http://talendforge.org/svn/tos/trunk@92034 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-12 06:35:38 +00:00
hwang
0541bd050e TDI-23217:set columns for outputmetadata in outputmapping ,but can not see any columns in the last page
git-svn-id: http://talendforge.org/svn/tos/trunk@92028 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-12 05:57:47 +00:00
wchen
60e81a5dcd bug TDI-23089 fixed: Jar installation: put some operations in background. fix the comment in subtaskTDI-23091
git-svn-id: http://talendforge.org/svn/tos/trunk@92005 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-12 02:30:37 +00:00
sizhaoliu
c6535b3fc2 TDQ-6257 fix compile errors on JDK7 and make sure the changes does not affect the behaviors on JDK6
git-svn-id: http://talendforge.org/svn/tos/trunk@91979 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-11 10:38:49 +00:00
hcyi
fe39c8b0b3 bug TDI-23037 fixed : HDFS_fail to update repository for HDFS connection .
git-svn-id: http://talendforge.org/svn/tos/trunk@91975 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-11 10:02:31 +00:00
cli
fc1b7fa0a4 TDI-23211: add the preference page for maven scripts.
git-svn-id: http://talendforge.org/svn/tos/trunk@91971 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-11 09:32:39 +00:00
xqliu
7587a3132b TDQ-6252 TDQ-6292 remove the inaccurate java doc
git-svn-id: http://talendforge.org/svn/tos/trunk@91962 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-11 08:40:39 +00:00
bchen
2f55ab1a5a Fix Work Item TDI-23035 : Problems after supporting Timestamp with Timezone type in the Oracle
https://jira.talendforge.org/browse/TDI-23035


git-svn-id: http://talendforge.org/svn/tos/trunk@91957 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-11 07:56:41 +00:00
fwang
44ec1da1b0 bug TDI-23173 fixed:Drag tMysqlCommit to job,double click this component there is a java.lang.NullPointerException
git-svn-id: http://talendforge.org/svn/tos/trunk@91932 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-11 04:22:55 +00:00
cli
6a117306db TDI-23051: add the karaf maven script and enhance other maven scripts too.
git-svn-id: http://talendforge.org/svn/tos/trunk@91919 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-11 02:52:04 +00:00
xqliu
cec7575841 TDQ-6096 TDQ-6277 modify the driver class name for Ingres
git-svn-id: http://talendforge.org/svn/tos/trunk@91889 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-10 09:44:09 +00:00
wchen
b70e1b08a4 bug TDI-23155 fixed :New labels for third party libraries download wizard
git-svn-id: http://talendforge.org/svn/tos/trunk@91879 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-10 09:27:56 +00:00
wchen
f4475161ee bug TDI-23089 fixed :Jar installation: put some operations in background.
git-svn-id: http://talendforge.org/svn/tos/trunk@91864 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-10 08:20:52 +00:00
wchen
00e80c1d8a bug TDI-23089 fixed :Jar installation: put some operations in background.
git-svn-id: http://talendforge.org/svn/tos/trunk@91857 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-10 07:37:32 +00:00
bchen
25cc94af3b Fix Work Item TDI-23035 : Problems after supporting Timestamp with Timezone type in the Oracle
https://jira.talendforge.org/browse/TDI-23035


git-svn-id: http://talendforge.org/svn/tos/trunk@91837 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-10 06:43:31 +00:00
wwang
67b43c2990 Fix Bug TDQ-6269 : Modify the DQ components in order to remove javacsv
https://jira.talendforge.org/browse/TDQ-6269

git-svn-id: http://talendforge.org/svn/tos/trunk@91836 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-10 06:43:14 +00:00
fwang
c23ec31311 bug TDI-22734 fixed:Joblet icon:Revert not worked for it
git-svn-id: http://talendforge.org/svn/tos/trunk@91825 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-10 04:52:38 +00:00
zwzhao
674555bb83 bug TDI-22901 fixed : Add a junit to ensure that the studio have all the libs necessary for the system of db connection
git-svn-id: http://talendforge.org/svn/tos/trunk@91783 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-09 10:08:37 +00:00
zwzhao
a1466770e3 bug TDI-23054 fixed : create a teradata dbconnection get error, can not retrieve data
git-svn-id: http://talendforge.org/svn/tos/trunk@91756 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-09 09:02:56 +00:00
plv
3275c8f2a2 bug TDI-22922:Wrong string show on create a service panel and the panel title should not be empty.
git-svn-id: http://talendforge.org/svn/tos/trunk@91752 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-09 08:45:53 +00:00
bchen
e7155cdc12 Fix Work Item TDI-23035 : Problems after supporting Timestamp with Timezone type in the Oracle
https://jira.talendforge.org/browse/TDI-23035
1. define "TIMESTAMP WITH TIME ZONE" type instead of "TIMESTAMP(6) WITH TIME ZONE" type, 0~9 permitted for length.
2. modified TalendDate.format method for timezone pattern.
3. modified tCreateTable and tOracleOutput to create table with Timestamp with time zone type.

git-svn-id: http://talendforge.org/svn/tos/trunk@91750 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-09 08:40:34 +00:00
mwang
4b8890b966 TDI-22130, some jars can not pass the libs checking, Remy updated some jars caused this problem, I just find the corresponding jars from t*Connection_java.xml to replace the lost jars.
git-svn-id: http://talendforge.org/svn/tos/trunk@91747 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-09 08:01:06 +00:00
zwzhao
8dbffd47ec bug TDI-23092 fixed : Update Component.xsd
git-svn-id: http://talendforge.org/svn/tos/trunk@91735 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-09 02:30:41 +00:00
fwang
e9b35f2c60 bug TDI-23069 fixed:Retrieve Oracle Schema with default values
git-svn-id: http://talendforge.org/svn/tos/trunk@91730 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-09 01:13:58 +00:00
cli
6dce43ab39 TDI-23050: enhance the exporting job for maven
git-svn-id: http://talendforge.org/svn/tos/trunk@91713 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-08 09:22:50 +00:00
ldong
d7b68f705f bug TDI-22781 fixed:Issue adding a WHERE clause in the tELTHiveMap.
git-svn-id: http://talendforge.org/svn/tos/trunk@91712 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-08 09:09:56 +00:00
hcyi
1ce5d3a332 bug TDI-23166 fixed : modify the name of jar:vertica_6.0.0_jdk_5.jar to vertica-jdk5-6.0.0-0.jar for vertica6.0 in EDatabaseVersion4Drivers.java .
git-svn-id: http://talendforge.org/svn/tos/trunk@91706 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-08 08:08:07 +00:00
wchen
d508c355fc bug TDI-23155 fixed : New labels for third party libraries download wizard
git-svn-id: http://talendforge.org/svn/tos/trunk@91698 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-08 07:18:28 +00:00
cli
a1551a883a TDI-23050: enhance the exporting job for maven
git-svn-id: http://talendforge.org/svn/tos/trunk@91689 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-08 06:13:21 +00:00
sizhaoliu
d426115161 TUP-202 fixed: Forbid to rename a higher level parent folder of a locked item
git-svn-id: http://talendforge.org/svn/tos/trunk@91640 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-03 17:59:21 +00:00
sizhaoliu
11bf94a22f TUP-202 fix an action loading exception + externalization of messages
& TDQ-6108 when rename a folder which does not exist, a pop-up dialog will be shown


git-svn-id: http://talendforge.org/svn/tos/trunk@91639 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-03 17:00:04 +00:00
sizhaoliu
6d43f78445 TUP-202 delete the classes that are moved in the last commit.
git-svn-id: http://talendforge.org/svn/tos/trunk@91618 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-02 18:35:57 +00:00
sizhaoliu
65f8827e34 TUP-202 before fixing the issue, refactor DQ rename folder action in order to keep the same behavior as DI
git-svn-id: http://talendforge.org/svn/tos/trunk@91617 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-10-02 18:18:30 +00:00
zwzhao
f06b3d2404 bug TDI-22901 fixed : Add a junit to ensure that the studio have all the libs necessary for the system of db connection
git-svn-id: http://talendforge.org/svn/tos/trunk@91534 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-29 02:42:35 +00:00
ldong
c3bea95c79 bug TDI-22920 fixed:copy a job then paste it, error show in error log.
git-svn-id: http://talendforge.org/svn/tos/trunk@91518 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-29 01:49:15 +00:00
amarkevich
453c5d971c added new helper method getValue to find parameter by component unique name within the process
git-svn-id: http://talendforge.org/svn/tos/trunk@91453 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 11:31:54 +00:00
wchen
7431b230ce feature TDI-22424 added :Some components are missing java libraries
git-svn-id: http://talendforge.org/svn/tos/trunk@91450 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 11:14:58 +00:00
zshen
e217e7d082 TDQ-6168 TDQ-6201 make it don't effect other operation although have dirty connection file exist.
git-svn-id: http://talendforge.org/svn/tos/trunk@91447 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 11:01:34 +00:00
scorreia
54df40257a i18n: synchronize Babili strings exported on 5.2.0M4-2012-09-26-12-00-54
git-svn-id: http://talendforge.org/svn/tos/trunk@91431 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 10:21:29 +00:00
zwzhao
3809de8fd0 bug TDI-22901 fixed : Add a junit to ensure that the studio have all the libs necessary for the system of db connection
git-svn-id: http://talendforge.org/svn/tos/trunk@91427 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 10:12:50 +00:00
xqliu
58adaa67c6 TDQ-6032 1) create a new junit test case for it; 2) on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@91413 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 09:55:13 +00:00
ycbai
9c89fcda11 feature TDI-22625 added : Need an option to add a build script for Maven or Ant when export a job
git-svn-id: http://talendforge.org/svn/tos/trunk@91392 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 08:38:32 +00:00
nrousseau
58220fd95a TDI-23019 : add basic code to be able to generate OSGI bundles with maven
git-svn-id: http://talendforge.org/svn/tos/trunk@91376 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 06:30:44 +00:00
xqliu
a9256a7029 TDQ-6032 1) import the jar files if needed; 2) open a dialog to show the revisions if there have more than one revision; 3) if the local zip file is not same with the file of exchange server, download it again before import; 4) on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@91360 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 03:23:30 +00:00
wchen
2ad75c8896 feature TDI-22424 added :Some components are missing java libraries
git-svn-id: http://talendforge.org/svn/tos/trunk@91357 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 03:06:22 +00:00
mwang
be543c632c For bug TDI-21878
git-svn-id: http://talendforge.org/svn/tos/trunk@91352 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-26 02:04:06 +00:00
ycbai
4dbcac8ca3 feature TDI-22625 added : Need an option to add a build script for Maven or Ant when export a job
git-svn-id: http://talendforge.org/svn/tos/trunk@91333 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-25 11:43:54 +00:00
hcyi
f47a18f03a bug TDI-22752 fixed : Create WSDL from top menu, miss "select folder" dialog .
git-svn-id: http://talendforge.org/svn/tos/trunk@91320 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-25 10:12:12 +00:00
fwang
6ca41a7364 bug TDI-20755 fixed: Got the same column name in tRowGenerator component
git-svn-id: http://talendforge.org/svn/tos/trunk@91318 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-25 10:10:04 +00:00
hcyi
a6d644b412 bug TDI-22514 fixed : Vertica component ?save property to metedata ,NPE error .
git-svn-id: http://talendforge.org/svn/tos/trunk@91309 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-25 09:57:06 +00:00
amarkevich
cb1453bdbb simplify method getValue
git-svn-id: http://talendforge.org/svn/tos/trunk@91304 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-25 09:44:32 +00:00
amarkevich
cfa2284c9c reuse string constant
git-svn-id: http://talendforge.org/svn/tos/trunk@91301 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-25 09:41:43 +00:00
hwang
d9628060be TDI-20922:No warning information pops up when overwriting an existing WSDL in Studio.
git-svn-id: http://talendforge.org/svn/tos/trunk@91275 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-25 07:26:58 +00:00
zshen
da67054e15 TDQ-5850 TDQ-5860 make software can be save and delete noraml
make reload worked

git-svn-id: http://talendforge.org/svn/tos/trunk@91270 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-25 06:48:39 +00:00
zshen
e7ff111748 TDQ-5850 TDQ-5860 make software can be save and delete noraml
make reload worked

git-svn-id: http://talendforge.org/svn/tos/trunk@91269 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-25 06:48:27 +00:00
fwang
6ce92fe4a4 bug TDI-22734 fixed:revert
git-svn-id: http://talendforge.org/svn/tos/trunk@91265 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-25 06:33:53 +00:00
wchen
a3df78ddf8 feature TDI-22424 added :Some components are missing java libraries
git-svn-id: http://talendforge.org/svn/tos/trunk@91253 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-25 03:35:45 +00:00
rdubois
963d1917dd TESB-6967:Support improved connection pooling for Data Services
git-svn-id: http://talendforge.org/svn/tos/trunk@91239 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-24 15:32:03 +00:00
fwang
09a5e23a49 bug TDI-22734 fixed:Joblet icon:Revert not worked for it
git-svn-id: http://talendforge.org/svn/tos/trunk@91200 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-24 08:57:27 +00:00
wchen
e3e2b4dab4 feature TDI-22424 added :Some components are missing java libraries
git-svn-id: http://talendforge.org/svn/tos/trunk@91191 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-24 08:37:27 +00:00
bchen
19cb698722 Fix Bug TDI-21779 : tOracleSCD type 2 does not work as expected with fields containing timestamps
https://jira.talendforge.org/browse/TDI-21779
1.make TalendDate.parseDate method support to store timezone
2.make tOracleSCD component support "Timestamp With Time Zone" type


git-svn-id: http://talendforge.org/svn/tos/trunk@91184 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-24 05:50:52 +00:00
ycbai
54cb276b02 bug TDI-22766 fixed : Unable to compile routines missing dom4j jar in dependencies lib directory.
git-svn-id: http://talendforge.org/svn/tos/trunk@91109 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-21 07:28:32 +00:00
fwang
7eb6d42132 bug TDI-22712 fixed:TIS Freezes when trying to Create Documentation for specific job
git-svn-id: http://talendforge.org/svn/tos/trunk@91102 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-21 06:40:31 +00:00
hcyi
2ae6a66bdc bug TDQ-6100 fixed : delete "ITEMS" function doesn't work well .
git-svn-id: http://talendforge.org/svn/tos/trunk@91031 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-20 03:50:47 +00:00
hcyi
41200479d4 bug TDI-21584 fixed : tRunJob:Change subjob name and content, run main job, content can not be update .
git-svn-id: http://talendforge.org/svn/tos/trunk@90994 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-19 09:17:31 +00:00
zwzhao
33888ad529 feature TDI-22896 add : add Fetch license function for about license in studio
git-svn-id: http://talendforge.org/svn/tos/trunk@90972 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-19 07:23:00 +00:00
fwang
ffc7f1a67e bug TDI-22712 fixed:TIS Freezes when trying to Create Documentation for specific job
git-svn-id: http://talendforge.org/svn/tos/trunk@90971 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-19 07:22:48 +00:00
yyin
dc38a4e7a0 TDQ-5668 The display of connection URL string in connection editor is not correct in context mode
-- change the URL in database's item file when switching context

git-svn-id: http://talendforge.org/svn/tos/trunk@90951 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-19 03:50:41 +00:00
yyin
2e1a6f6197 TDQ-5362 column/column set analysis editor can not be shown correctly after switching the context of file connection
TDQ-6151 Remove the analysis impact dialog in DI perspective when swiching context

git-svn-id: http://talendforge.org/svn/tos/trunk@90950 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-19 03:49:46 +00:00
nhaumont
4b91b88f05 Deletion of obsolete QA selenium plugin
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@90931 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 15:37:12 +00:00
mwang
7bcfda5c8e For subtask TDI-22871
git-svn-id: http://talendforge.org/svn/tos/trunk@90897 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 08:16:14 +00:00
nrousseau
524f99aeba TDI-22872: Enhance revert action at the same time to delete automatically files reverted if they're not anymore on svn (files just created but never commited)
git-svn-id: http://talendforge.org/svn/tos/trunk@90885 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 07:33:14 +00:00
hcyi
774bffd929 bug TDI-22321 fixed : tRunjob:canot detect child job when deleted child job .
git-svn-id: http://talendforge.org/svn/tos/trunk@90884 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 07:21:58 +00:00
ycbai
219973f037 bug TDI-22674 fixed : "-Dfile.encoding=UTF-8" causes Japanese characters garbling in retrieving schema of MS Access.
git-svn-id: http://talendforge.org/svn/tos/trunk@90876 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 06:41:54 +00:00
zshen
a39e416241 TDQ-5850 TDQ-5860 avoid connection again when hava version information saved in .softwaresystem.softwaredeployment file.
and add mapping between softwareSystem and dbconnection by hand to resolve it.

git-svn-id: http://talendforge.org/svn/tos/trunk@90854 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 04:06:04 +00:00
zshen
134d2b7482 TDQ-5850 TDQ-5860 avoid connection again when hava version information saved in .softwaresystem.softwaredeployment file.
and add mapping between softwareSystem and dbconnection by hand to resolve it.

git-svn-id: http://talendforge.org/svn/tos/trunk@90853 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 04:05:54 +00:00
cli
bcacc7eb01 TDI-21185 / TDI-22870: fixed the problem.
git-svn-id: http://talendforge.org/svn/tos/trunk@90843 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 03:31:29 +00:00
zpbai
b349a7ebd2 QAI-14128 - Delete the Selenium automation tests from tis_shared trunk
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@90832 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 02:44:42 +00:00
zpbai
c30366eff9 QAI-14128 - Delete the MDM Automation tests from tis_shared trunk
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@90831 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 02:42:45 +00:00
zpbai
aea4ac2baf QAI-14128 - Delete the TDQ automation tests from tis_shared trunk
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@90829 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 02:39:12 +00:00
zpbai
6bc3d5d038 Delete the tos plugins from tis_shared trunk
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@90828 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-18 02:33:28 +00:00
bchen
a2dbc3c50b Fix Bug TDI-21609 : Unexpected result when tOracleInput load data with time zone
https://jira.talendforge.org/browse/TDI-21609 
1.add default value "TIMESTAMP(6) WITH TIME ZONE" to mapping_Oracle.xml.
2.remove unuse code.

git-svn-id: http://talendforge.org/svn/tos/trunk@90785 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-17 09:19:23 +00:00
xqliu
2b1a450240 TDQ-5381 TDQ-6133 1) modify Median.definition; 2) create UpdateSybaseLanguageNameForMedianIndicatorTask.java; 3) update demo project; 4) on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@90784 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-17 09:17:10 +00:00
cli
10f4b2d822 TDI-21185: change wrong refactor by mistake.
git-svn-id: http://talendforge.org/svn/tos/trunk@90783 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-17 08:50:09 +00:00
cli
3a1fc92dd2 TDI-21185: change the spelling error.
git-svn-id: http://talendforge.org/svn/tos/trunk@90780 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-17 08:22:55 +00:00
cli
55b39dbb41 TDI-21185: disable it first.
git-svn-id: http://talendforge.org/svn/tos/trunk@90778 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-17 08:21:00 +00:00
mwang
fb30b17eb7 For bug TDI-22566,
git-svn-id: http://talendforge.org/svn/tos/trunk@90769 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-17 07:29:08 +00:00
jyhu
211cd49aaa Fix Bug TDI-22351 : Execption occured while genereting sample data using tRowGenerator into existing Teradata table.
http://jira.talendforge.org/browse/TDI-22351 

git-svn-id: http://talendforge.org/svn/tos/trunk@90767 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-17 07:14:25 +00:00
cli
9af64fe0fa TDI-21185 / TDI-22701: change the technical name for local and svn project.
git-svn-id: http://talendforge.org/svn/tos/trunk@90763 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-17 06:04:15 +00:00
cli
cc073a7fe9 TDI-21185: change the technical name for local and svn project.
git-svn-id: http://talendforge.org/svn/tos/trunk@90758 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-17 06:02:13 +00:00
fwang
b4803a5161 bug TDI-22712 fixed:TIS Freezes when trying to Create Documentation for specific job
git-svn-id: http://talendforge.org/svn/tos/trunk@90752 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-17 01:30:13 +00:00
mwang
5a5f1caca9 For bug TDI-21878
git-svn-id: http://talendforge.org/svn/tos/trunk@90731 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-14 10:48:04 +00:00
gliu
966ff1106d [TESB-7051] changed: Change the demo route to use the new Dataset component
git-svn-id: http://talendforge.org/svn/tos/trunk@90710 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-14 07:20:55 +00:00
wchen
7c7711bf0f bug TDI-22802 fixed Metadata dialog: schema propagation
git-svn-id: http://talendforge.org/svn/tos/trunk@90706 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-14 06:34:10 +00:00
zshen
dc4eb918cc TDQ-6054 TDQ-6131 make report support to matching of JUDI.
git-svn-id: http://talendforge.org/svn/tos/trunk@90700 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-14 03:45:07 +00:00
hcyi
fa6a4611ab bug TDI-22825 fixed : BD build:Export demo items then import, not support .
git-svn-id: http://talendforge.org/svn/tos/trunk@90667 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-13 10:51:24 +00:00
fwang
28bd09ccee bug TDI-22712 fixed:TIS Freezes when trying to Create Documentation for specific job
git-svn-id: http://talendforge.org/svn/tos/trunk@90636 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-13 07:32:46 +00:00
plv
348254fd7a bug TDI-20748:pop "Choose Context" dialog twice when edit schema with context model
git-svn-id: http://talendforge.org/svn/tos/trunk@90603 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-12 10:01:31 +00:00
gliu
b70121877f [TESB-7017] fixed: Fix the code assist problem for cProcessor
git-svn-id: http://talendforge.org/svn/tos/trunk@90528 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-11 09:39:33 +00:00
sizhaoliu
211bb62081 TDQ-6108 [SVN Repo] when rename a folder which does not exist, an empty folder will be created without any content.
git-svn-id: http://talendforge.org/svn/tos/trunk@90527 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-11 09:32:42 +00:00
ycbai
80fcd97ab1 bug TDI-22753 fixed : The old project is missing when switching project in Studio
git-svn-id: http://talendforge.org/svn/tos/trunk@90504 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-11 06:38:32 +00:00
wchen
50f9318dee bug TDI-22751 fixed Metadata:file metadata:"Description of the Schema":miss option box
git-svn-id: http://talendforge.org/svn/tos/trunk@90492 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-11 05:26:59 +00:00
fwang
e1b1ebed7d git-svn-id: http://talendforge.org/svn/tos/trunk@90470 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-09-11 02:21:38 +00:00
ycbai
43ba8a2b9c bug TDI-22674 fixed : "-Dfile.encoding=UTF-8" causes Japanese characters garbling in retrieving schema of MS Access.
git-svn-id: http://talendforge.org/svn/tos/trunk@90422 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-10 09:02:46 +00:00
nrousseau
b607c4689e Modification: update one test of junit
git-svn-id: http://talendforge.org/svn/tos/trunk@90386 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-10 04:27:06 +00:00
zwzhao
1df4d14c16 bug TDI-21143 fixed : Studio repository view : remove all refresh call to repo view
git-svn-id: http://talendforge.org/svn/tos/trunk@90371 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-10 02:36:33 +00:00
cli
13e7b52ca5 USV-35: add a property for hiding build number.
git-svn-id: http://talendforge.org/svn/tos/trunk@90361 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-10 02:18:24 +00:00
wchen
e7428bc004 bug TDI-21950 fixed :Lots of columns crashes Studio
git-svn-id: http://talendforge.org/svn/tos/trunk@90357 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-10 02:15:06 +00:00
cli
36075b1d66 USV-29: add the property for exchange.
git-svn-id: http://talendforge.org/svn/tos/trunk@90356 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-10 02:14:56 +00:00
zwzhao
3582b24e63 bug TDI-21143 fixed : Studio repository view : remove all refresh call to repo view
git-svn-id: http://talendforge.org/svn/tos/trunk@90354 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-10 02:12:38 +00:00
fwang
4f29fe4fa9 bug TDI-22684 fixed:No right-click option to delete schemas in Recycle Bin
git-svn-id: http://talendforge.org/svn/tos/trunk@90352 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-10 01:54:23 +00:00
ldong
8d54e6aa21 bug TDI-19250 fixed:Small problem of display in the Output xml wizard.
git-svn-id: http://talendforge.org/svn/tos/trunk@90350 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-10 01:48:34 +00:00
fwang
175d618031 bug TDI-22667 fixed:incorrect duplicate name error for joblet
git-svn-id: http://talendforge.org/svn/tos/trunk@90349 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-10 01:48:31 +00:00
mwang
5a7c62c68f for task TDI-22730
git-svn-id: http://talendforge.org/svn/tos/trunk@90341 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-10 01:30:18 +00:00
zwzhao
be163c7319 bug TDI-21187 fixed : Lock a job with doc, on TAC side both job and documentation are locked.
git-svn-id: http://talendforge.org/svn/tos/trunk@90308 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-07 01:37:19 +00:00
fwang
0a8bbf15ac bug TDI-21120 fixed:a minor display error in Sql Builder
git-svn-id: http://talendforge.org/svn/tos/trunk@90294 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-06 10:06:20 +00:00
qiongli
ceda461851 TDQ-5983 :add junit test for TDQ-5907.
git-svn-id: http://talendforge.org/svn/tos/trunk@90281 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-06 06:54:30 +00:00
nrousseau
e9fe2eb08a USV-40 : Changed to make most of the actions more general and not only for jobs / joblets.
git-svn-id: http://talendforge.org/svn/tos/trunk@90266 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-06 04:02:10 +00:00
sgandon
213e950b9b Fix New Feature USV-32 : Remove context-menu for top level nodes
https://jira.talendforge.org/browse/USV-32
updated all tis action provider so that they have an id.

git-svn-id: http://talendforge.org/svn/tos/trunk@90258 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-05 15:39:56 +00:00
sgandon
8fdf28d237 Fix New Feature USV-32 : Remove context-menu for top level nodes
https://jira.talendforge.org/browse/USV-32
updated all tis action provider so that they have an id.

git-svn-id: http://talendforge.org/svn/tos/trunk@90257 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-05 15:39:54 +00:00
wchen
8c20acf0c0 bug TDI-22690 fixed: can't open the Map editor of tMap component in the saved job/joblet
git-svn-id: http://talendforge.org/svn/tos/trunk@90236 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-05 10:27:30 +00:00
scorreia
1494941cf9 i18n: synchronize Babili strings exported on 5.2.0M3-2012-09-04-14-48-07
git-svn-id: http://talendforge.org/svn/tos/trunk@90166 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-04 13:07:27 +00:00
mwang
eb863c5116 For feature TDI-22130, just make Embedded use Standalone function. It needs to revert, now I am waiting for Remy's updates on embedded mode.
git-svn-id: http://talendforge.org/svn/tos/trunk@90152 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-04 10:41:21 +00:00
mwang
973d7212e7 For feature TDI-22130, just make Embedded use Standalone function. It needs to revert, now I am waiting for Remy's updates on embedded mode.
git-svn-id: http://talendforge.org/svn/tos/trunk@90150 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-04 10:36:27 +00:00
ldong
332fa61b13 Feature TDI-22576 added:Add a create tag in the same dialog as the switch action.
git-svn-id: http://talendforge.org/svn/tos/trunk@90149 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-04 10:35:48 +00:00
fwang
755076b68f bug TDI-21747 fixed:Business model:assignment:r-click the service in assignment list, many function lost
git-svn-id: http://talendforge.org/svn/tos/trunk@90073 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-04 07:25:15 +00:00
msjian
ff44545bff TDQ-6045 TDQ-5908:commit again testcase
git-svn-id: http://talendforge.org/svn/tos/trunk@90057 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-04 03:00:02 +00:00
msjian
6ffcf25cba TDQ-6045 TDQ-5908:commit again(add deprecated mark)
git-svn-id: http://talendforge.org/svn/tos/trunk@90056 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-04 02:59:39 +00:00
cli
789ac62f77 modification: fixed the comile error for view demo project.
git-svn-id: http://talendforge.org/svn/tos/trunk@90054 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-04 02:45:22 +00:00
msjian
4b8a4d186e TDQ-5908: refact the method fillUIParams()
git-svn-id: http://talendforge.org/svn/tos/trunk@90053 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-04 02:05:53 +00:00
scorreia
e2b95ff76c TDQ-5908 commit 90022 reverted because of compilation error in Unified
Platform 


git-svn-id: http://talendforge.org/svn/tos/trunk@90045 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-03 16:03:10 +00:00
ilazebny
c92124f787 Update version in poms to 5.2.0-SNAPSHOT
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@90034 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-03 11:16:18 +00:00
ilazebny
19d0b99ae4 Update version in poms to 5.2.0-SNAPSHOT
git-svn-id: http://talendforge.org/svn/tos/trunk@90033 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-03 11:16:10 +00:00
msjian
bf01a97f5b TDQ-5908: set the UIparameters to connection after raloading the database
git-svn-id: http://talendforge.org/svn/tos/trunk@90022 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-03 10:05:14 +00:00
ycbai
5da568f384 feature TDI-22111 added : add BOTH_HADOOP field type to browse both hadoop file and directory on HDFS.
git-svn-id: http://talendforge.org/svn/tos/trunk@90019 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-03 09:44:52 +00:00
nrousseau
e8d6eb28b6 Fix Bug TDI-22339 : In the Commandline, we can't force the login/password of the SVN for a technical user
https://jira.talendforge.org/browse/TDI-22339

git-svn-id: http://talendforge.org/svn/tos/trunk@90016 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-03 09:43:00 +00:00
ycbai
e90e8dd807 feature TDI-21417 modified: improve the method getTalendVersion of VersionUtils class.
git-svn-id: http://talendforge.org/svn/tos/trunk@90000 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-03 08:09:27 +00:00
qiongli
87383f0232 TDQ-5964 TDQ-5898:improve the junit test.
git-svn-id: http://talendforge.org/svn/tos/trunk@89987 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-03 06:48:21 +00:00
hcyi
8140221759 bug TDI-22550 fixed : Remain compile error in old job which has been delete .
git-svn-id: http://talendforge.org/svn/tos/trunk@89975 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-09-03 06:02:23 +00:00
xqliu
ec073b024b TDQ-5933 1) create junit test case for TDQ-5847; 2) on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@89920 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-31 08:14:22 +00:00
nrousseau
b87c99aa26 Modification: JUnit update
git-svn-id: http://talendforge.org/svn/tos/trunk@89891 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-31 01:48:47 +00:00
hcyi
eac1bef1d6 bug TDI-22545 fixed : Upgrade the jar:mdm_webservice.jar in the org.talend.metadata.managment .
git-svn-id: http://talendforge.org/svn/tos/trunk@89890 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-31 01:29:47 +00:00
nrousseau
0738d51963 TDI-22588: cancel one part of the changes due to some problems in different cases when use the studio, means need to review optimization again...
git-svn-id: http://talendforge.org/svn/tos/trunk@89880 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-30 10:42:15 +00:00
nrousseau
db1116885d TDI-22475: enhance the display of the > shown for SVN mode for items modified
git-svn-id: http://talendforge.org/svn/tos/trunk@89859 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-30 07:50:47 +00:00
ycbai
006bb4d4ed feature TDI-22127 modified : Fix some bugs and refactor something.
git-svn-id: http://talendforge.org/svn/tos/trunk@89846 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-30 06:18:56 +00:00
nrousseau
213fc2871d Fix Bug TDI-22608 : Create a job should not ask for logs
https://jira.talendforge.org/browse/TDI-22608

git-svn-id: http://talendforge.org/svn/tos/trunk@89835 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-30 05:32:36 +00:00
wchen
aa7f457d77 bug TDI-21950 fixed :Lots of columns crashes Studio
git-svn-id: http://talendforge.org/svn/tos/trunk@89828 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-30 03:58:59 +00:00
hwang
a974fdbd57 TDI-22568 :Open a file output xml file two times ,it will lost the schema.
git-svn-id: http://talendforge.org/svn/tos/trunk@89792 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-29 09:31:04 +00:00
nrousseau
d744fdc61a Modification: remove the check of memory by default when do TimeMeasure...
git-svn-id: http://talendforge.org/svn/tos/trunk@89768 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-29 02:14:11 +00:00
yyin
12dc40515d TDQ-5076 Implement a new System Indicator: Benford's Law
git-svn-id: http://talendforge.org/svn/tos/trunk@89758 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-28 09:48:31 +00:00
nrousseau
a502e716d0 TDI-22588 : enhance some functions to load the jobs faster. (more for big jobs)
git-svn-id: http://talendforge.org/svn/tos/trunk@89756 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-28 09:27:26 +00:00
nrousseau
25445c8e9d Fix TDI-22475 : Tags as read only in the studio. + enhance offline mode
https://jira.talendforge.org/browse/TDI-22475

git-svn-id: http://talendforge.org/svn/tos/trunk@89740 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-28 03:56:57 +00:00
ldong
008775a65e bug TDI-19250 fixed:Small problem of display in the Output xml wizard.
git-svn-id: http://talendforge.org/svn/tos/trunk@89735 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-28 03:25:00 +00:00
nrousseau
0c8db8c7f3 Fix TDI-22475 : Tags as read only in the studio. + enhance offline mode
https://jira.talendforge.org/browse/TDI-22475

git-svn-id: http://talendforge.org/svn/tos/trunk@89734 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-28 03:21:18 +00:00
qiongli
5d1367577d TDQ-5964 junit test for TDQ-5898.
git-svn-id: http://talendforge.org/svn/tos/trunk@89698 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-27 08:58:19 +00:00
hcyi
f373dcd785 bug TDI-22473 fixed : Demo project (t01_Compo/Internet) - The values of parameters are not valid in demo job "tPop" .
git-svn-id: http://talendforge.org/svn/tos/trunk@89679 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-27 02:12:28 +00:00
plv
f2f154f2c3 bug TDI-21961 fixed:Retrieve schema of DB fail after using component 'tOracleSCD'
git-svn-id: http://talendforge.org/svn/tos/trunk@89675 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-27 01:19:52 +00:00
sgandon
a65f45a596 revert ant script changes for multilicence until everything fixed
git-svn-id: http://talendforge.org/svn/tos/trunk@89669 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-24 14:47:54 +00:00
nrousseau
700d2a8db7 Fix Bug TDI-22265 : SVN history lost when job is moved
https://jira.talendforge.org/browse/TDI-22265

git-svn-id: http://talendforge.org/svn/tos/trunk@89624 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-24 04:30:31 +00:00
qiongli
3b792799f6 TDQ-5898 TDQ-5965:ODBC Teradata dosen't support some api(resolve error with "column not found")
git-svn-id: http://talendforge.org/svn/tos/trunk@89623 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-24 04:18:18 +00:00
cli
880bba1ea3 TDI-8426: enhance the codes.
git-svn-id: http://talendforge.org/svn/tos/trunk@89592 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-23 09:45:51 +00:00
cli
d899317676 TDI-8426: fixed the problem for switch project.
git-svn-id: http://talendforge.org/svn/tos/trunk@89585 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-23 09:24:20 +00:00
plv
49bb404574 bug TDI-21961 fixed:Retrieve schema of DB fail after using component 'tOracleSCD'
git-svn-id: http://talendforge.org/svn/tos/trunk@89582 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-23 08:45:05 +00:00
nrousseau
3b407f2c12 bug TDI-22532: avoid to call all the code of the BrandingChecker each time.
git-svn-id: http://talendforge.org/svn/tos/trunk@89573 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-23 08:18:38 +00:00
hcyi
111a5df734 bug TDI-22513 fixed : DB connection in context mode, D&D it to a job, NPE error .
git-svn-id: http://talendforge.org/svn/tos/trunk@89549 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-23 06:16:41 +00:00
wchen
d9b02f4197 bug TDI-22430 fixed: Duplicate the name of "Column"
git-svn-id: http://talendforge.org/svn/tos/trunk@89538 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-23 03:35:08 +00:00
hcyi
862284329c bug TDI-22464 fixed : Some problems for exporting job in demo project .
git-svn-id: http://talendforge.org/svn/tos/trunk@89533 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-23 02:58:29 +00:00
sgandon
58d608b9c0 Fix task : Make SwtBot Test work with multiple Licence
update the ant script to launch on Mac


git-svn-id: http://talendforge.org/svn/tos/trunk@89521 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-22 13:52:44 +00:00
sgandon
d828d3336a Fix task : Make SwtBot Test work with multiple Licence
update the ant script to not launch a specific application (app come from licenses now) and exclude org.talend.configurator from clean 


git-svn-id: http://talendforge.org/svn/tos/trunk@89520 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-22 13:40:36 +00:00
nrousseau
572935e9ee Fix Bug TDI-22112 : In 5.1.1 the studio Migration tasks run for each job every time
https://jira.talendforge.org/browse/TDI-22112

git-svn-id: http://talendforge.org/svn/tos/trunk@89501 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-22 08:20:03 +00:00
hwang
b8c46aab1f TDI-22295:DI and ESB :Function menu mixed
git-svn-id: http://talendforge.org/svn/tos/trunk@89488 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-22 06:41:24 +00:00
wchen
f8eb1083d5 bug TDI-22383 TDI-22407 fixed: tRowGenerator functions can't display and be select correctly
git-svn-id: http://talendforge.org/svn/tos/trunk@89475 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-22 03:57:11 +00:00
cli
51d39dd68c TDI-8426: change to restart.
git-svn-id: http://talendforge.org/svn/tos/trunk@89469 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-22 02:55:43 +00:00
zshen
0ff07a6d31 TDQ-6015 Add the tGenKeyHadoop component to DQ matching family.
resolved the issue about link with a tGenkeyHadoop.
                       disappear "separator" field when select "use existing HDFS file"
                       remove all the version about org.talend.dataquality.hadoop.

git-svn-id: http://talendforge.org/svn/tos/trunk@89463 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-22 00:47:54 +00:00
dlin
195dcf6077 feature TDI-22421 added: REQUIRED_IF for the REQUIRED parameters
git-svn-id: http://talendforge.org/svn/tos/trunk@89446 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 10:05:19 +00:00
dlin
1f1fdb59b6 feature TDI-22421 added: REQUIRED_IF for the REQUIRED parameters
git-svn-id: http://talendforge.org/svn/tos/trunk@89441 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 09:47:14 +00:00
nrousseau
9b180dc426 Fix Bug TDI-19255 : fix related bug at the same time for the display name who was not modified in old files when rename something
git-svn-id: http://talendforge.org/svn/tos/trunk@89433 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 09:39:23 +00:00
nrousseau
42713e2e5a Fix Bug TDI-19255 : Opening old version of job and create new version opens latest version instead
https://jira.talendforge.org/browse/TDI-19255

git-svn-id: http://talendforge.org/svn/tos/trunk@89424 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 09:06:30 +00:00
hcyi
033b15b6bf feature TDI-22108 added : DB Wizard: Support for Vertica 6 .
git-svn-id: http://talendforge.org/svn/tos/trunk@89418 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 08:42:45 +00:00
fwang
1f5c408203 bug TDI-22468 fixed:didn't pending all of synonym when retrive schema for oracle connection by selected "All synonym"
git-svn-id: http://talendforge.org/svn/tos/trunk@89414 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 07:11:07 +00:00
mwang
5c657e9170 TDI-22130, new feature for Hive embedded mode.
git-svn-id: http://talendforge.org/svn/tos/trunk@89410 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 06:34:08 +00:00
zwzhao
325836f0cc bug TDI-22337 fixed : Folder name can't be renamed from lowercase to uppercase or uppercase to lowercase
git-svn-id: http://talendforge.org/svn/tos/trunk@89404 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 03:45:08 +00:00
ycbai
f8c72da969 feature TDI-22111 added : Add a component parameter type to browse HDFS
git-svn-id: http://talendforge.org/svn/tos/trunk@89399 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 03:37:55 +00:00
gliu
375527f33b [TESB-6813] changed: change the ErrorHandler demo to show all possible cases
git-svn-id: http://talendforge.org/svn/tos/trunk@89396 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 03:25:06 +00:00
fwang
a68fbd73f6 bug TDI-21747 fixed:Business model:assignment:r-click the service in assignment list, many function lost
git-svn-id: http://talendforge.org/svn/tos/trunk@89389 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-21 02:43:56 +00:00
fwang
b381194114 bug TDI-22271 fixed:Propertiese of job is editable when the job is locked
git-svn-id: http://talendforge.org/svn/tos/trunk@89363 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-20 09:54:14 +00:00
gliu
720e951ad2 [TESB-6818] fixed: investigate how to allow the dot on Resource name
git-svn-id: http://talendforge.org/svn/tos/trunk@89348 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-20 06:13:59 +00:00
gliu
24de407dd4 [TESB-6818] fixed: investigate how to allow the dot on Resource name
git-svn-id: http://talendforge.org/svn/tos/trunk@89347 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-20 05:57:50 +00:00
zwzhao
f629f551e0 bug TDI-22406 fixed : error show in error log when duplicate the header/footer more than one time
git-svn-id: http://talendforge.org/svn/tos/trunk@89343 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-20 03:54:06 +00:00
ycbai
738880e8a6 feature TDI-22127 added : Add a repository metadata for HDFS
git-svn-id: http://talendforge.org/svn/tos/trunk@89342 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-20 03:46:34 +00:00
fwang
074db58de5 bug TDI-22271 fixed:Propertiese of job is editable when the job is locked
git-svn-id: http://talendforge.org/svn/tos/trunk@89330 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-20 03:15:04 +00:00
fwang
917332469f bug TDI-22409 fixed:In 5.1.1 the password field create as context is not blinded (In 4.2.3 is it is blinded)
git-svn-id: http://talendforge.org/svn/tos/trunk@89324 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-20 02:03:37 +00:00
zwzhao
128684e69f bug TDI-22337 fixed : Folder name can't be renamed from lowercase to uppercase or uppercase to lowercase
git-svn-id: http://talendforge.org/svn/tos/trunk@89313 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-20 01:25:17 +00:00
fwang
71f57d56b1 bug TDI-22381 fixed:Version management:Use "select all dependencies" and "Fix tRunjob versions if Latest" together, error
git-svn-id: http://talendforge.org/svn/tos/trunk@89310 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-20 01:24:36 +00:00
msjian
89f86d3059 TDQ-5847 fix this issue on windows when drag&drop report (xqliu)
git-svn-id: http://talendforge.org/svn/tos/trunk@89252 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-16 12:33:57 +00:00
wchen
9d851e0d8e bug TDI-8282 fixed: Connection properties should not be editable
git-svn-id: http://talendforge.org/svn/tos/trunk@89241 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-16 10:12:38 +00:00
zwzhao
2b29bd54d9 bug TDI-22327 fixed : Create db connection from job->component->basic setting->save to metadata, "Export context" and "revert context" button disappear
git-svn-id: http://talendforge.org/svn/tos/trunk@89182 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-15 09:01:49 +00:00
nrousseau
3fa34b56ff bug TDI-20849: change text
git-svn-id: http://talendforge.org/svn/tos/trunk@89164 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-15 07:04:43 +00:00
nrousseau
3a7a74e3dd TDI-21560 : remove @override again...
git-svn-id: http://talendforge.org/svn/tos/trunk@89138 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-15 02:30:10 +00:00
qiongli
714244f58d TDQ-5907 add a function to judge if it is hive connection.
git-svn-id: http://talendforge.org/svn/tos/trunk@89112 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 10:34:35 +00:00
wchen
7d95f08240 bug TDI-21545 fixed :Export jobs_error show in error log when export the demoproject jobs
git-svn-id: http://talendforge.org/svn/tos/trunk@89110 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 10:15:04 +00:00
wliu
91c895a10f fix feature TDI-22107 : Support for Vertica 6
https://jira.talendforge.org/browse/TDI-22107

git-svn-id: http://talendforge.org/svn/tos/trunk@89090 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 07:25:12 +00:00
wchen
8b20032064 bug TDI-17666 fixed :Invalid characters in "Technical Name" section
git-svn-id: http://talendforge.org/svn/tos/trunk@89083 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 06:55:41 +00:00
zwzhao
eed732cfe1 bug TDI-7161 fixed : Variable in component view not update after update the corresponding metedata
git-svn-id: http://talendforge.org/svn/tos/trunk@89077 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 05:55:22 +00:00
nrousseau
75ed8e5e94 TDI-21560 : fix compilation error
git-svn-id: http://talendforge.org/svn/tos/trunk@89049 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-14 00:13:30 +00:00
rdubois
5fa958c205 TDI-21560: replace the error message
git-svn-id: http://talendforge.org/svn/tos/trunk@89046 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-13 14:51:48 +00:00
ldong
55f916823f bug TDI-20584 fixed:Can't retrive schema correctly when migrate a connection from 402 to 423.
git-svn-id: http://talendforge.org/svn/tos/trunk@89020 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-13 09:16:11 +00:00
wchen
223220ab34 bug TDI-8282 fixed: Connection properties should not be editable
git-svn-id: http://talendforge.org/svn/tos/trunk@88996 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-13 07:53:42 +00:00
cli
6dc49f66c0 delete the old demo model
git-svn-id: http://talendforge.org/svn/tos/trunk@88947 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-10 09:09:20 +00:00
cli
21166c54cf Update the demo function in view example plugin.
git-svn-id: http://talendforge.org/svn/tos/trunk@88944 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-10 09:06:50 +00:00
cli
90e433c804 Update the demo documentation in view example plugin.
git-svn-id: http://talendforge.org/svn/tos/trunk@88930 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-10 06:30:40 +00:00
cli
9296148f09 Add the example demo node in the metadata
git-svn-id: http://talendforge.org/svn/tos/trunk@88926 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-10 06:14:48 +00:00
sgandon
1699308348 Bug Fix : Studio auto update failed with plugins specified as singletons
P2 does not allow singletons to be installed with multiple versions, so we use internal APIs to work around this issue.

git-svn-id: http://talendforge.org/svn/tos/trunk@88889 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-09 14:00:26 +00:00
xqliu
3939ee99b3 TDQ-5847 TDQ-5934 1) fix the problems of delete report; 2) fix the problems of rename, drag&drop, delete report sub folders
git-svn-id: http://talendforge.org/svn/tos/trunk@88885 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-09 11:31:58 +00:00
msjian
80174f2ae4 merge r88819 from branch 5.1 to trunk
TDQ-5953 (TDQ-5952): we should close connections always


git-svn-id: http://talendforge.org/svn/tos/trunk@88861 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-09 08:00:18 +00:00
xpli
00c33ee989 Change pathText to protected
git-svn-id: http://talendforge.org/svn/tos/trunk@88855 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-09 07:10:16 +00:00
wchen
1ea1917b2b bug TDI-22252 :"Talend News" can not stay in its original place when the some intems in latest item has a long name
git-svn-id: http://talendforge.org/svn/tos/trunk@88752 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-07 09:47:09 +00:00
qiongli
32795f8451 TDQ-5950 TDQ-5907:make DQ support hive connection; upgrade hive/hadoop jar to 0.8.1/1.0.0.
git-svn-id: http://talendforge.org/svn/tos/trunk@88745 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-07 09:28:04 +00:00
qiongli
2319bec89d TDQ-5950 TDQ-5907:make DQ support hive connection; upgrade hive/hadoop jar to 0.8.1/1.0.0.
git-svn-id: http://talendforge.org/svn/tos/trunk@88742 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-07 09:22:15 +00:00
fwang
16c41375b7 bug TDI-6682 fixed:COUNTER DB type doesn't exists in AS400 DB2
git-svn-id: http://talendforge.org/svn/tos/trunk@88686 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-07 02:07:16 +00:00
jyhu
9cf50fa522 Fix Feature TDI-22107 : Support for Vertica 6.
http://jira.talendforge.org/browse/TDI-22107 

git-svn-id: http://talendforge.org/svn/tos/trunk@88661 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-06 08:11:05 +00:00
xqliu
11c3e379f8 TDQ-5847 TDQ-5934 1) rename the report is ok now; 2) drag&drop the report is ok now
git-svn-id: http://talendforge.org/svn/tos/trunk@88627 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-06 03:13:24 +00:00
sgandon
0b2b623853 rename org.mockito to org.talend.testutils in all manifest denpendencies
git-svn-id: http://talendforge.org/svn/tos/trunk@88622 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-03 16:46:28 +00:00
wchen
281dac64ef bug TDI-8507 fixed: Setting element status via project settings -> status management does not affect filters
git-svn-id: http://talendforge.org/svn/tos/trunk@88596 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-03 09:36:12 +00:00
sgandon
a44d3dd913 Repository view example refactoring.
git-svn-id: http://talendforge.org/svn/tos/trunk@88594 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-03 09:29:01 +00:00
sgandon
f382bdee7c Repository view example refactoring.
git-svn-id: http://talendforge.org/svn/tos/trunk@88593 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-03 09:29:00 +00:00
zwzhao
6bdd443298 bug TDI-13131 fixed : Examples for Date Pattern not the same as patterns "yyyy-MM-dd'T'HH:mm:ss'000Z'" and "yyyy-MM-dd'T'HH:mm:ss"
git-svn-id: http://talendforge.org/svn/tos/trunk@88579 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-03 06:19:43 +00:00
sgandon
2a8e29abfe Repository view example refactoring.
git-svn-id: http://talendforge.org/svn/tos/trunk@88558 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 14:22:01 +00:00
sgandon
7a8913234d Repository view example refactoring.
git-svn-id: http://talendforge.org/svn/tos/trunk@88557 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 14:11:36 +00:00
sgandon
8ea6b4bd35 Repository view example updated to show context menu override.
git-svn-id: http://talendforge.org/svn/tos/trunk@88556 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 14:09:06 +00:00
sgandon
940dd9dcc9 Repo View Action items now have the Id set in the extension points.
This help remove them if necessary.
Example use for repo has been updated.

git-svn-id: http://talendforge.org/svn/tos/trunk@88555 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 14:05:16 +00:00
sgandon
cb85ff19e0 Repo View Action items now have the Id set in the extension points.
This help remove them if necessary.
Example use for repo has been updated.

git-svn-id: http://talendforge.org/svn/tos/trunk@88554 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 14:05:14 +00:00
zwzhao
e051a518dd bug TDI-5510 fixed : Missing translations
git-svn-id: http://talendforge.org/svn/tos/trunk@88526 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 09:34:20 +00:00
amaumont
5ec3282ca4 Fix compilation error with MemoryUtil
git-svn-id: http://talendforge.org/svn/tos/trunk@88520 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 09:25:15 +00:00
amaumont
ec13d091fd TDI-21977 Use the new "LockerByKey" implementat...
- minor modification for clean communication between "LockerByKey" and "LockerByKeyUnrestricted"
- comment added/fixed
- memory test improved but waiting for build modification to activate it


git-svn-id: http://talendforge.org/svn/tos/trunk@88519 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 09:19:43 +00:00
zwzhao
9c501faba3 bug TDI-7161 fixed : Variable in component view not update after update the corresponding metedata
git-svn-id: http://talendforge.org/svn/tos/trunk@88494 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 07:04:32 +00:00
gliu
06b70e58e9 [TESB-6595] added: add cErrorHandler example
[TESB-6615] added: add Route Resource demo

git-svn-id: http://talendforge.org/svn/tos/trunk@88490 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-02 06:36:02 +00:00
sgandon
8e5ba3fdcc Repository view example plugin created.
first classes moved.

git-svn-id: http://talendforge.org/svn/tos/trunk@88463 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 16:15:54 +00:00
sgandon
a5ec4c7f28 Repo View Name sorter bug fix : return super value instead of 0 for non Talend repo objects.
git-svn-id: http://talendforge.org/svn/tos/trunk@88461 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 15:53:20 +00:00
sgandon
1ceb64d80d Repo View Name sorter bug fix : class cast exception because the sorter is expecting element as Repositoy node but do not check their type.
git-svn-id: http://talendforge.org/svn/tos/trunk@88460 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 15:50:58 +00:00
sgandon
9808617389 Repository view example plugin created.
first classes moved.

git-svn-id: http://talendforge.org/svn/tos/trunk@88459 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 15:47:10 +00:00
sgandon
03df4c4b25 Repository view example creation
git-svn-id: http://talendforge.org/svn/tos/trunk@88454 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 15:02:19 +00:00
sgandon
5d5e4d3ff8 Update Repo view OEM example for Uniserv
git-svn-id: http://talendforge.org/svn/tos/trunk@88452 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 14:24:10 +00:00
plv
b2f676e29c bug TDI-21371 fixed:if can't create folder have same name but different case,there should have a warning when create.
git-svn-id: http://talendforge.org/svn/tos/trunk@88426 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 09:37:07 +00:00
plv
c974762b83 bug TDI-21961 fixed:Retrieve schema of DB fail after using component 'tOracleSCD'
git-svn-id: http://talendforge.org/svn/tos/trunk@88383 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-08-01 01:56:31 +00:00
yyin
87bede3cb4 TDQ-5693 remove the calling of sqlItem's loadcontent.
git-svn-id: http://talendforge.org/svn/tos/trunk@88339 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-31 07:35:49 +00:00
msjian
b9598b55b5 TDQ-5251: make the source of jfreechart related to the jar file
git-svn-id: http://talendforge.org/svn/tos/trunk@88338 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-31 07:35:07 +00:00
hcyi
0f8acd5e97 TDI-21679 : add junit for ExtractMetaDataUtils - Test some getXXXMetaDataInfo methods .
git-svn-id: http://talendforge.org/svn/tos/trunk@88273 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-30 09:22:51 +00:00
ycbai
d48f22d1ac bug TDI-22106 fixed : Problem with the Update schema
git-svn-id: http://talendforge.org/svn/tos/trunk@88257 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-30 08:48:27 +00:00
plv
ffd0169ade bug TDI-21880 fixed:Auto Generated doc of job/joblet:if import a new job/joblet, this function not work
git-svn-id: http://talendforge.org/svn/tos/trunk@88250 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-30 08:22:37 +00:00
gliu
c58025d041 [TESB-6128] created: Create the additional wizard step
git-svn-id: http://talendforge.org/svn/tos/trunk@88226 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-30 03:37:23 +00:00
fwang
6aaa7254c1 bug TDI-21958 fixed:Increase width of delete joblet failure box
git-svn-id: http://talendforge.org/svn/tos/trunk@88223 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-30 03:32:38 +00:00
wchen
e2e7a642aa feature TDI-18168 added:Studio Branding : make branding creation easier
git-svn-id: http://talendforge.org/svn/tos/trunk@88181 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-27 08:52:57 +00:00
hcyi
afc1ad4a99 bug TDI-21683 fixed : ExtractMetaDataUtils - Test the "handleDefaultValue" method .
git-svn-id: http://talendforge.org/svn/tos/trunk@88177 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-27 08:00:32 +00:00
ycbai
f6eb19c470 feature TDI-21417 added : Studio : Migration process should be refactored to allow different edition to work together
git-svn-id: http://talendforge.org/svn/tos/trunk@88161 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-27 05:40:46 +00:00
amaumont
64ccd9b385 TDI-21977 Use the new "LockerByKey" implementat...
TDI-21984 Use the new "LockerByKey" everywhere where LockersManager.getExecTriggerableLocker() is used
=> resolved

TDI-21982 Use the new "LockerByKey" in "ServerInfoCentralizer"
=> minor change

TDI-21575 Deployment on virtual Jobserver work randomly and related task becomes blocked
=> return when locking is interrupted

git-svn-id: http://talendforge.org/svn/tos/trunk@88110 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-26 16:33:09 +00:00
amaumont
8b3931ff12 TDI-19166 Need to fix / review JUnits
- Ignore failing tests of LockerTest


git-svn-id: http://talendforge.org/svn/tos/trunk@88106 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-26 08:28:46 +00:00
amaumont
d640a815a0 TDI-19166 Need to fix / review JUnits
- Ignore failing tests of LockerTest
- StatisticsTracerTest should be fixed

git-svn-id: http://talendforge.org/svn/tos/trunk@88105 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-26 08:24:49 +00:00
amaumont
5981f02f93 TDI-19166 Need to fix / review JUnits
- Ignore failing tests of LockerTest
- StatisticsTracerTest should be fixed

git-svn-id: http://talendforge.org/svn/tos/trunk@88104 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-26 08:24:29 +00:00
hcyi
aab29769c7 bug TDI-21681 fixed : ExtractMetaDataUtils - Test the MultiSchems methods .
git-svn-id: http://talendforge.org/svn/tos/trunk@88094 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-26 02:56:19 +00:00
xqliu
3cd8f08c23 merge r88034 from branch 5.1 to trunk
TDQ-5853 TDQ-5892 1) revert the commit http://www.talendforge.org/trac/top/changeset/46393;  2) create a migration task to set default username for the previous sqlite connections


git-svn-id: http://talendforge.org/svn/tos/trunk@88080 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-25 11:52:34 +00:00
hcyi
8cb86bcce5 bug TDI-21920 fixed : Junit - need fix the junit problem .
git-svn-id: http://talendforge.org/svn/tos/trunk@88053 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-25 06:46:32 +00:00
hcyi
d62f0400b3 bug TDI-21681 fixed : ExtractMetaDataUtils - Test the MultiSchems methods .
git-svn-id: http://talendforge.org/svn/tos/trunk@88049 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-25 06:06:11 +00:00
hcyi
73d55bd1e6 bug TDI-21683 fixed : ExtractMetaDataUtils - Test the "handleDefaultValue" method .
git-svn-id: http://talendforge.org/svn/tos/trunk@88024 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-25 02:20:30 +00:00
nrousseau
70c2fa3098 Modification: change the way to initialize the studio when run junits, simply check if jet emitters are finished from code instead of use SWTBOT
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@88014 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-25 01:28:32 +00:00
nrousseau
da417efb5f bug TDI-22066: fix error that happens usually on import
git-svn-id: http://talendforge.org/svn/tos/trunk@88011 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-25 00:16:29 +00:00
amaumont
23cad3f95c TDI-21977 Use the new "LockerByKey" implementation instead of the deprecated "Locker" everywhere as possible
TDI-21979 Use the new "LockerByKey" in "TaskListenerRegister.notifyEvent(ExecutionTaskStatusEvent)"
TDI-21980 Use the new "LockerByKey" in "PlanListenerRegister.notifyEvent(PlanEvent)"
TDI-21575 Deployment on virtual Jobserver work randomly and related task becomes blocked
TDI-21576 Task blocked in TAC only reboot can help to recover it

=> refactor: LockerByKey moved to the dedicated package from "org.talend.commons.utils.threading" to "org.talend.commons.utils.threading.lockerbykey"

=> new "LockerByKeyUnrestricted" added, it allows to unlock from an other thread than the thread locker, this is a step before changing the caller implementation to accept the LockerByKey which is more reliable because it allows only the locker thread to unlock.

=> new JUnit test case "LockerByKeyUnrestrictedTest" added

=> Memory tests added in "LockerByKeyUnrestrictedTest" and "LockerByKeyTest"


git-svn-id: http://talendforge.org/svn/tos/trunk@88005 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-24 16:00:08 +00:00
amaumont
a82361c863 TDI-21977 Use the new "LockerByKey" implementation instead of the deprecated "Locker" everywhere as possible
TDI-21979 Use the new "LockerByKey" in "TaskListenerRegister.notifyEvent(ExecutionTaskStatusEvent)"
TDI-21980 Use the new "LockerByKey" in "PlanListenerRegister.notifyEvent(PlanEvent)"
TDI-21575 Deployment on virtual Jobserver work randomly and related task becomes blocked
TDI-21576 Task blocked in TAC only reboot can help to recover it

=> refactor: LockerByKey moved to the dedicated package from "org.talend.commons.utils.threading" to "org.talend.commons.utils.threading.lockerbykey"

=> new "LockerByKeyUnrestricted" added, it allows to unlock from an other thread than the thread locker, this is a step before changing the caller implementation to accept the LockerByKey which is more reliable because it allows only the locker thread to unlock.

=> new JUnit test case "LockerByKeyUnrestrictedTest" added

=> Memory tests added in "LockerByKeyUnrestrictedTest" and "LockerByKeyTest"

git-svn-id: http://talendforge.org/svn/tos/trunk@88004 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-24 15:47:20 +00:00
cli
98cde0cd29 TDI-21616: disable the PTODO test.
git-svn-id: http://talendforge.org/svn/tos/trunk@87956 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-24 05:44:22 +00:00
ycbai
07cbbe6e1e feature TDI-21417 added : Studio : Migration process should be refactored to allow different edition to work together
git-svn-id: http://talendforge.org/svn/tos/trunk@87954 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-24 05:34:01 +00:00
wchen
fd67332e19 feature TDI-18168 added:Studio Branding : make branding creation easier
git-svn-id: http://talendforge.org/svn/tos/trunk@87951 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-24 03:52:13 +00:00
nrousseau
da980a1744 Modification: add more memory to execute the junits
git-svn-id: http://talendforge.org/svn/tos/trunk@87929 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-23 10:08:21 +00:00
zwzhao
c16eff7d85 bug TDI-21701 fixed : Unable to use repository XML schema populated from customer WSDL. Error "Import from repository fail, please check your repository connection" returned.
git-svn-id: http://talendforge.org/svn/tos/trunk@87921 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-23 09:01:23 +00:00
hcyi
895aff6f6d bug TDI-21903 fixed : add junit case for TDI-21745 .
git-svn-id: http://talendforge.org/svn/tos/trunk@87920 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-23 08:58:16 +00:00
hcyi
27bbadbb6f bug TDI-21682 fixed : ExtractMetaDataUtils - Test the getConnectionSchema methods .
git-svn-id: http://talendforge.org/svn/tos/trunk@87908 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-23 08:05:58 +00:00
hcyi
cebf7a2297 bug TDI-21680 fixed : ExtractMetaDataUtils - Test the driver class methods .
git-svn-id: http://talendforge.org/svn/tos/trunk@87885 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-23 06:13:10 +00:00
ycbai
c5998bbbf0 feature TDI-21417 added : Studio : Migration process should be refactored to allow different edition to work together
git-svn-id: http://talendforge.org/svn/tos/trunk@87880 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-23 05:47:56 +00:00
ycbai
9d90f83979 feature TDI-21417 added : Studio : Migration process should be refactored to allow different edition to work together
git-svn-id: http://talendforge.org/svn/tos/trunk@87869 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-23 02:52:04 +00:00
ycbai
efb73d3841 feature TDI-21417 added : Studio : Migration process should be refactored to allow different edition to work together
git-svn-id: http://talendforge.org/svn/tos/trunk@87867 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-23 02:45:15 +00:00
ycbai
a39ef271fe feature TDI-21417 added : Studio : Migration process should be refactored to allow different edition to work together
git-svn-id: http://talendforge.org/svn/tos/trunk@87865 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-23 02:39:20 +00:00
ycbai
54db777150 feature TDI-21417 added : Studio : Migration process should be refactored to allow different edition to work together
git-svn-id: http://talendforge.org/svn/tos/trunk@87864 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-23 02:37:26 +00:00
amaumont
2f72ef9840 TDI-21777 Memory leak in Jobconductor with virtual jobserver 5.1.1 (No statistic enable)
=> memory leak resolved by using the new locker "LockerByKey"

Secondary:
- TDI-21977 Use the new "LockerByKey" implementation instead of the deprecated "Locker" everywhere as possible 
- TDI-21979 Use the new "LockerByKey" in "TaskListenerRegister.notifyEvent(ExecutionTaskStatusEvent)" 
- Issue fixed in LockerByKey related to clean() operation

git-svn-id: http://talendforge.org/svn/tos/trunk@87858 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-20 16:10:00 +00:00
hcyi
0476b8c932 bug TDI-21823 fixed : ExtractManager - Finish the test for method testReturnColumns4DontCreateConnection2TableTypeSynonym of AbstractExtractmanagerTest .
git-svn-id: http://talendforge.org/svn/tos/trunk@87839 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-20 09:10:52 +00:00
jzhao
1cb9519a48 Fix Bug TDI-21560:A job which tries to connect to the statics server should not end with a fatal error if it cannot
http://jira.talendforge.org/browse/TDI-21560


git-svn-id: http://talendforge.org/svn/tos/trunk@87831 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-20 07:07:35 +00:00
hcyi
6ef77570fd bug TDI-21824 fixed : ExtractManager - Finish the test for method testReturnColumns4reCreateConnection of AbstractExtractmanagerTest .
git-svn-id: http://talendforge.org/svn/tos/trunk@87828 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-20 06:57:32 +00:00
hcyi
4e372117f5 bug TDI-21825 fixed : ExtractManager - Finish the test for method testReturnTablesFormConnection of AbstractExtractmanagerTest .
git-svn-id: http://talendforge.org/svn/tos/trunk@87825 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-20 06:25:50 +00:00
hcyi
81c91a7146 bug TDI-21821 fixed : ExtractManager - Finish to test the SASExtractManagerTest .
git-svn-id: http://talendforge.org/svn/tos/trunk@87809 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-20 03:35:02 +00:00
jzhao
c7838f7059 Fix Bug TDI-21560:A job which tries to connect to the statics server should not end with a fatal error if it cannot
http://jira.talendforge.org/browse/TDI-21560


git-svn-id: http://talendforge.org/svn/tos/trunk@87790 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-19 10:42:04 +00:00
cli
b8ac423c67 TDI-21616: disable the PTODO test.
git-svn-id: http://talendforge.org/svn/tos/trunk@87784 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-19 10:13:04 +00:00
amaumont
b59bf5706d TDI-21575 Deployment on virtual Jobserver work randomly and related task becomes blocked
TDI-21576 Task blocked in TAC only reboot can help to recover it
=> additional minor fix: implement the recommended practice which consists to follow a call to lock with a try block, and not include the lock in the same try/catch/finally block than the unlock operation.

git-svn-id: http://talendforge.org/svn/tos/trunk@87766 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-19 08:23:46 +00:00
nrousseau
7a72c1105f bug TDI-21964: fix problem of import schema
git-svn-id: http://talendforge.org/svn/tos/trunk@87749 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-19 04:43:41 +00:00
wchen
3252159334 feature TDI-18168 added:Studio Branding : make the intro page generic
git-svn-id: http://talendforge.org/svn/tos/trunk@87733 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-19 02:42:24 +00:00
amaumont
03f2f66764 TDI-21575 Deployment on virtual Jobserver work randomly and related task becomes blocked
TDI-21576 Task blocked in TAC only reboot can help to recover it
=> shutdown() implemented and tested
=> only automatic clean() is now available, not manual, shutdown do a clean.

git-svn-id: http://talendforge.org/svn/tos/trunk@87706 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-18 10:28:04 +00:00
ycbai
13288b4aab bug TDI-17530 modified : Copying a table entry from a component's settings dirties a job
git-svn-id: http://talendforge.org/svn/tos/trunk@87673 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-18 06:52:58 +00:00
fwang
324e05b17c bug TDI-21505 fixed:Some DBTYPE is no more available in the dropdown list for jdbc connection ,if choose wrong mapping file.
git-svn-id: http://talendforge.org/svn/tos/trunk@87666 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-18 06:35:52 +00:00
hwang
6d230bbad2 TDI-21636: junit of MetadataToolHelper
git-svn-id: http://talendforge.org/svn/tos/trunk@87662 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-18 06:32:51 +00:00
hwang
cfc2b35b9d TDI-21636: junit of MetadataToolHelper
git-svn-id: http://talendforge.org/svn/tos/trunk@87648 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-18 04:05:58 +00:00
amaumont
64567d5df3 TDI-21575 Deployment on virtual Jobserver work randomly and related task becomes blocked
TDI-21576 Task blocked in TAC only reboot can help to recover it
=> issue fixed, it remains to implement LockerByKey.shutdown() and do tests on LockerByKey.clean() and LockerByKey.shutdown()

git-svn-id: http://talendforge.org/svn/tos/trunk@87631 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 17:06:48 +00:00
qiongli
aa4fcb606d TDQ-5854 TDQ-5801 remove sqljdbc/sqljdbc4 jars.
git-svn-id: http://talendforge.org/svn/tos/trunk@87611 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 10:02:37 +00:00
ldong
5f7fdb2e82 bug TDI-21828 fixed:EBCDIC wizard doesn't retrieve correctly for some type.
git-svn-id: http://talendforge.org/svn/tos/trunk@87604 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 09:39:09 +00:00
nrousseau
8509bd3db3 bug TDI-21934: fix problem with the module view : wrong refresh + check if jar is deployed from same product or another one at least
git-svn-id: http://talendforge.org/svn/tos/trunk@87594 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 07:59:58 +00:00
zcui
396209f566 selenium MDM:update xpath.record.launchprocess.success.ok.button
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87593 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 07:58:42 +00:00
hjbai2
a39e24c2f6 selenium:mdm update the eda config file
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87586 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 07:09:08 +00:00
yhbai
2d12ee03ca git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87571 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-17 05:55:40 +00:00
yhbai
e25df0874b swtbot:dq:modifie the function of db connection
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87570 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 05:55:08 +00:00
yhbai
2cd002ceda swtbot:tdq:QAI-6996
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87569 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 05:54:02 +00:00
yhbai
1b0c82fcd6 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87568 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-17 05:52:24 +00:00
yhbai
0eabd88817 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87567 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-17 05:51:58 +00:00
plv
6098b1a1bf bug TDI-20393 fixed:Retrieving schema fails on SQLServer on schema different from dbo
git-svn-id: http://talendforge.org/svn/tos/trunk@87566 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 05:49:06 +00:00
fyan2
521375c072 Selenium:TAC QAI-12015 Update the auto tests of ESB on TAC
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87565 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 05:43:05 +00:00
nrousseau
a2673a4bf3 bug TDI-21944: use correct options for emf optimization, and add the same used already for the component cache.
git-svn-id: http://talendforge.org/svn/tos/trunk@87557 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 03:51:37 +00:00
fgzhang
9efe5856b0 selenium:tac
add methods and cases:
AuthorizationImpl---authDIUserToDQProImpl()
TestProjectAuthorization---testAuthDIUserToDQProImpl()
 --[testcase]User DI on project DQ -> not possible(auto)
QAI-12377

AuthorizationImpl---authDIUserToMDMPro()
TestProjectAuthorization---testAuthDIUserToMDMPro()
 --[testcase]User DI on project MDM -> not possible(auto)
QAI-12379

AuthorizationImpl---authDQUserToDIProImpl()
TestProjectAuthorization---testAuthDQUserToDIPro()
 --[testcase]User DQ on project DI -> ok(auto)
QAI-12381

project_authorization.xml
 --add parameters and test cases

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87556 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 03:46:53 +00:00
zcui
4638c90b0a selenium MDM:update xpath for upload license
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87540 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-17 02:25:17 +00:00
hjbai2
dddb0e1625 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87525 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-16 10:00:54 +00:00
hjbai2
8c167fcb33 selenium:mdm
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87517 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 08:40:53 +00:00
hjbai2
fadc0b30e9 selenium:mdm update the config file
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87516 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 08:40:18 +00:00
amaumont
77e8fadc76 TDI-21575 Deployment on virtual Jobserver work randomly and related task becomes blocked
TDI-21576 Task blocked in TAC only reboot can help to recover it
=> regression on old Locker fixed

git-svn-id: http://talendforge.org/svn/tos/trunk@87515 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 08:35:53 +00:00
plv
ecdd187ac8 bug TDI-21815:When 'Generate Doc as HTML' the path is not the present job path ,and dropdown list is empty .
git-svn-id: http://talendforge.org/svn/tos/trunk@87514 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 08:31:32 +00:00
zcui
fbbf07c183 selenium MDM:QAI-12415,[testcase]TMDMQA-5915:Search xpath expression with @ attribute
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87505 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 07:31:59 +00:00
cli
3afbb6664a TDI-21724: refactor the abstract test name, in order to disable to test the abstract class.
git-svn-id: http://talendforge.org/svn/tos/trunk@87499 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 06:51:17 +00:00
qiongli
a67921f0da merge r87395 from branch 5.1 to trunk
TDQ-5812 TDQ-5801 hide also "Microsoft SQL Server 2005/2008"  item on database wizard for DQ.


git-svn-id: http://talendforge.org/svn/tos/trunk@87497 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 06:48:35 +00:00
hcyi
41bd93a033 bug TDI-21903 fixed : add junit case for TDI-21745 .
git-svn-id: http://talendforge.org/svn/tos/trunk@87484 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 05:46:45 +00:00
dfcao
4465d05538 SWTBot DI:QAI-11975 add test of AbilityToUseComponentInJobletTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87456 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 01:42:02 +00:00
dfcao
740cf65afa SWTBot DI:QAI-12104 add test of ChangVisionOfJobletTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87455 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 01:40:10 +00:00
fzhong
6ee0ec8cda SWTBot DI: QAI-11972, [testcase] TDIQA-1285:Add select the version of joblet
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87453 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 01:36:47 +00:00
fzhong
4f3f19b55f SWTBot DI: QAI-11973, [testcase] TDIQA-3090:Using tMap error reject in Joblet
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87452 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 01:36:04 +00:00
fzhong
2bc206f12b SWTBot DI: QAI-11970, [testcase] TDIQA-1216:Joblet circular reference
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87451 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 01:35:25 +00:00
fgzhang
ec62281a04 selenium:tac
add methods and cases:
AuthorizationImpl---refreshAfterNewProjectCreated()
TestProjectAuthorization---testAfterNewProjectCreated()
 --add method for test refresh after new project created
QAI-6959

AuthorizationImpl---authDIUserToDIProImpl()
TestProjectAuthorization---testAuthDIUserToDIProImpl()
 --User DI on project DI -> ok(auto)
QAI-6961
project_authorization.xml
 --add parameters and test cases

update methods:
Project---addProject()
 --change xpath of add button
       ---deleteProject()
 --change xpath of delete button

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87450 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 01:34:44 +00:00
fzhong
37d627a314 SWTBot DI: QAI-12113,
1. modified tests about could not drag copybook to job
2. modified tests about retrieve schema and connection check
3. delete @overwrite on inner class for complie fail

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87449 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-16 01:33:48 +00:00
amaumont
8308ffb8e5 TDI-21575 Deployment on virtual Jobserver work randomly and related task becomes blocked
TDI-21576 Task blocked in TAC only reboot can help to recover it
=> first step resolved: 
- create a real thread safe implementation of the org.talend.utils.threading.Locker
- JUnit concurrency tests added to ensure thread safety of the new class org.talend.utils.threading.LockerByKey

git-svn-id: http://talendforge.org/svn/tos/trunk@87436 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 16:34:52 +00:00
mwang
912e435f7e For bug TDI-21546
git-svn-id: http://talendforge.org/svn/tos/trunk@87410 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 09:04:21 +00:00
hcyi
fa66d2ea4c bug TDI-21745 fixed : Business model:assignment:able to assign services which is not root node to business model .
git-svn-id: http://talendforge.org/svn/tos/trunk@87409 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 09:01:57 +00:00
zcui
b3309e031c selenium MDM:QAI-12388,update cases about user
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87398 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 08:28:48 +00:00
yhbai
576c07d640 SWTBOT--TDQ:add the following cases about QAI-9205 unfold all kinds of dbconnections to columns
QAI-9185  QAI-9186 QAI-9187 QAI-9188 QAI-9193  QAI-9194  QAI-9195 QAI-9196  QAI-12182

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87397 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 08:28:43 +00:00
zcui
50291a2564 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87388 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-13 07:10:05 +00:00
nrousseau
b35048b575 bug TDI-21891: fix wrong use of the flag for "avoidGuiInfos"
git-svn-id: http://talendforge.org/svn/tos/trunk@87387 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 07:09:11 +00:00
hjbai2
2e0ef2e6c9 selenium:mdm QAI-11947
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87384 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 06:45:35 +00:00
fgzhang
8bcac6c6bb selenium:tac
TestProjectAuthorization---testAfterNewProjectCreated()
AuthorizationImpl---refreshAfterNewProjectCreated()
--[testcase]Refresh after new project created
project_authorization.xml
--add parameter and test
QAI-6959

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87383 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 06:42:01 +00:00
fyan2
e70e58a2cb Selenium:TAC QAI-12117 Update auto cases (ESB) on Windows 2008 R2
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87381 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 06:14:40 +00:00
dfcao
d7c51868e9 SWTBot DI:QAI-12111 modify test dndMetadataToJob of Utilities to set jobEditor forcus before drag metadata into it
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87378 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 05:44:16 +00:00
dfcao
34290fcaf2 SWTBot DI:QAI-12111 Modify TalendItem for create job by setText()
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87377 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 05:39:42 +00:00
zcui
dea4a3ad63 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87376 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-13 04:53:37 +00:00
hjbai2
fb1e0e0d1d git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87370 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-13 03:25:44 +00:00
yyin
9bb477dc0e TDQ-5693 Fix an error "FileNotFoundException" ...
TDQ-5721 Rename sql file, and rename sql folder
modify:when rename a folder, change the path to relevent one. do not contain parent path like "TDQ_libraries/Source Files"

git-svn-id: http://talendforge.org/svn/tos/trunk@87361 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 02:50:34 +00:00
plv
e9059fa629 junit TDI-21867:junit for ExtractMetaDataFromDataBase
git-svn-id: http://talendforge.org/svn/tos/trunk@87356 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 02:19:34 +00:00
zcui
127f1997e5 selenium MDM:UPDATE xpath
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87355 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 02:05:28 +00:00
fyan2
4c0ad8f226 Selenium:TAC QAI-12117 Update auto cases (ESB) on Windows 2008 R2
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87354 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 02:01:04 +00:00
zcui
bf831eb33f git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87353 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-13 01:37:16 +00:00
zcui
f9020117e7 selenium MDM:UPDATE locator_en_us for some xpath
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87352 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 01:14:18 +00:00
zcui
d2fb21ce11 selenium MDM:add xpath xpath.language.selection
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87351 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-13 01:06:45 +00:00
fyan2
fe7b854f28 Selenium:TAC Update cases QAI-12117
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87323 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 09:57:43 +00:00
zcui
d1de96c610 selenium MDM:QAI-11946,[testcase]TMDMQA-5885:journal record export
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87318 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 09:51:40 +00:00
hjbai2
ee3dff3ebc git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87314 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-12 09:40:22 +00:00
hjbai2
ccf2d0d55f selenium:mdm QAI-11942
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87313 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 09:38:55 +00:00
zpbai
8aef01d582 Selenium MDM: if property's value is null or '', then do not set the value
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87308 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 09:15:40 +00:00
plv
efb28a8ce3 bug TDI-21794:Oracle_can't retrieve schema for Oracle DB connection
git-svn-id: http://talendforge.org/svn/tos/trunk@87307 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 09:13:26 +00:00
fgzhang
1034205072 selenium:tac
add methods and cases:
CommandlineAction---executeAllJobWithFilters()
--change command[executeAllJob -i "+this.getJDKPath()+" -if label="+jobName], add space before if
CommandlineImpls---commandlineCreatJobImpl()
--change job name of last check job name
CommandlineImpls---commandlineDeleteItemImpl()
--change job name after listJob
 ---check all cases of commandline
QAI-12351

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87304 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 08:50:13 +00:00
zcui
4f57114235 selenium MDM:QAI-11946,add case to check journal export to excel
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87299 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 08:35:45 +00:00
zcui
94ddc86698 selenium MDM:update contratsImpl
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87297 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 08:29:31 +00:00
fgzhang
60e5bd4e77 selenium:tac
add methods and cases:
CommandlineImpls---commandlineExportJobAndExecuteImpl()
TestCommandline---commandlineExportJobContainsSubjobImpl()
 ---[testcase]test command of 'exportJob' in commnadline
QAI-12170

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87294 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 08:16:18 +00:00
ldong
e46a715412 bug TDQ-5385 fixed:show view->other->repository can not work well,show errors in the log.
git-svn-id: http://talendforge.org/svn/tos/trunk@87293 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 08:15:18 +00:00
cli
eb8619b1de TDI-21844/TDI-21845: do the basic test calss, need finish it.
git-svn-id: http://talendforge.org/svn/tos/trunk@87279 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 06:23:23 +00:00
zcui
d876e9fbaa selenium MDM:QAI-11948,add cases about entity Contrat
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87278 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 06:15:56 +00:00
hjbai2
39cc4e5d32 selenium:mdm QAI-11945
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87263 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 03:56:22 +00:00
cli
d310a001aa TDI-21723: add the basic test for ExtractManager
git-svn-id: http://talendforge.org/svn/tos/trunk@87261 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 03:51:27 +00:00
zpbai
d35ac4198f Selenium TAC: update scripts
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87259 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 03:26:48 +00:00
dfcao
e00d6d0186 SWTBot DI:QAI-12102 add test CopyPasteJobletNodesTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87255 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 03:13:55 +00:00
dfcao
cd3c7f78c2 SWTBot DI:QAI-12103 add test ImportStatementInTJavaAppliedInMainJobTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87252 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 03:10:35 +00:00
hjbai2
1a80b2254b selenium:mdm update the record
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87250 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 03:02:42 +00:00
hjbai2
8db81be354 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87249 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-12 02:52:31 +00:00
nrousseau
d86c8c8cd3 Modification: set back the debug parameter to it's default
git-svn-id: http://talendforge.org/svn/tos/trunk@87248 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 02:51:44 +00:00
cli
3c325070e7 TDI-21718: enhance for as400 and jdbc
git-svn-id: http://talendforge.org/svn/tos/trunk@87247 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 02:44:15 +00:00
zpbai
37f85fbc3e Selenium TAC: Add some scripts for checking context, unzip file and run some jobs
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87244 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 02:32:21 +00:00
nrousseau
ce04b56723 Bug TDI-21776 : Add JUnit (will fail first because of TDQ-4929)
git-svn-id: http://talendforge.org/svn/tos/trunk@87241 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 02:12:48 +00:00
nrousseau
75e0395053 Fix Bug TDI-21776 : Wrong accents
http://jira.talendforge.org/browse/TDI-21776

git-svn-id: http://talendforge.org/svn/tos/trunk@87240 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 02:12:17 +00:00
fgzhang
78f3eb0893 selenium:tac
add methods and cases:
CommandlineImpls---commandlineExportJobContainsSubjobImpl()
CommandlineAction---exportJobContainsSubjob()
TestCommandline---testCommandlineExportJobContainsSubjob()
 ---[testcase]test command of 'exportJob one job have a child job' in commnadline
QAI-12169


git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87239 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 02:08:22 +00:00
fgzhang
14da761586 selenium:tac
add .jobscript file for with command creat job
update file.xml for check local folder and file whether exist, delete folder and file

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87234 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 01:51:22 +00:00
zpbai
3945b4906e Selenium TAC: remove useless scripts
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87233 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 01:50:48 +00:00
hjbai2
cc958c3570 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87232 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-12 01:45:47 +00:00
fgzhang
dc0f18dbe0 selenium:tac
add methods and cases:
CommandlineImpls---commandlineCreatJobImpl()
CommandlineAction---creatJob()
TestCommandline---testCommandlineCreatJob()
 ---[testcase]test command of 'creatJob' in commnadline
QAI-12172

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87231 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-12 01:38:20 +00:00
zpbai
ea9995b6e0 Selenium MDM: remove browser path
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87216 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 11:33:55 +00:00
zpbai
83e483e718 Selenium MDM: change the ip to localhost
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87214 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 11:29:05 +00:00
zpbai
ae35d0fadf Selenium MDM: Add the feature for add more info for the XML test results; add the configurable for escape text or not
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87212 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 11:17:58 +00:00
fzhong
ead5455648 SWTBot DI: QAI-12113,
1. improve run job function
2. solve pb for creating excel metadata fail
3. solve pb for creating ftp fail
4. modified test about joblet with trigger input/output for could not find components in job
5. stable test about context

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87207 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 10:23:06 +00:00
hjbai2
1e139d4123 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87203 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-11 09:56:02 +00:00
nrousseau
e6838b56d7 Modification: enhance the system of debug of TimeMeasure to add the current memory (not displayed by default)
git-svn-id: http://talendforge.org/svn/tos/trunk@87202 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 09:49:40 +00:00
hjbai2
26c4340d33 selenium:mdm
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87196 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 09:13:56 +00:00
fyan2
0205844353 Selenium:TAC added tests of commandline QAI-12178 QAI-12176 and QAI-12171
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87190 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 08:58:35 +00:00
hjbai2
74e2710e80 selenium:mdmQAI-11944
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87182 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 08:32:32 +00:00
zcui
32df696ede selenium MDM:UPDATE societecliente suite name
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87177 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 08:22:32 +00:00
zcui
949f5d766f git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87174 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-11 08:04:20 +00:00
zcui
e4d1c20cbe selenium MDM:add container and model to configure file
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87172 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 08:03:32 +00:00
fgzhang
c6ca59b3df selenium:tac
add methods and cases:
CommandlineImpls---commandlineDeleteItemImpl()
CommandlineAction---deleteItem()
TestCommandline---testCommandlineDeleteItem()
 --[testcase]test command of deleteItems in commnadline
QAI-12166

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87171 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 08:03:23 +00:00
hjbai2
c852face60 selenium:mdm
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87166 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 07:34:09 +00:00
zcui
440e2b1bd4 selenium MDM:QAI-11933,[testcase],Societe Cliente,Browse record with Contrat FK
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87162 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 07:30:15 +00:00
zcui
8836458ac7 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87161 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-11 07:28:26 +00:00
zcui
e621c28d4d selenium MDM:QAI-11934,[testcase],SocieteClient,folder openings are synchronized in Data Changes browser in subfolder
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87160 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 07:26:41 +00:00
hjbai2
d3af9a0039 selenium:MDMQAI-11940
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87158 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 07:16:08 +00:00
xpli
0af6e66486 TESB-6456 Add migration for cJMS (Code refactor for route components check)
git-svn-id: http://talendforge.org/svn/tos/trunk@87155 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 06:52:01 +00:00
nrousseau
dec5a26cda Temporary modification: set the debug mode to true by default to check the TUJ logs.
git-svn-id: http://talendforge.org/svn/tos/trunk@87152 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 06:27:33 +00:00
nrousseau
ade560407f bug TDI-20521: change the size of the NodeContainer, this avoids to have a too big invisible figure which hide the button from expand/collapse.
git-svn-id: http://talendforge.org/svn/tos/trunk@87149 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 06:10:16 +00:00
gliu
4a64d7c780 [TESB-6430] Finished: Add support for Export-Package
[TESB-6431] Finished: Make all classpath libraries are optional, and all defined in cConfig are unchecked by default

git-svn-id: http://talendforge.org/svn/tos/trunk@87142 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 04:55:14 +00:00
zpbai
d60c3747bb Selenium TAC: Before testing commandline, restart commandline
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87134 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 03:31:42 +00:00
xpli
be73cc5039 TESB-6440 Need validation for cJMSConnectionFactory delete operation
git-svn-id: http://talendforge.org/svn/tos/trunk@87130 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 03:15:59 +00:00
fyan2
ea2d485ddb Selenium:TAC added tests of commandline QAI-12177
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87128 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 03:05:03 +00:00
zpbai
0ce9a3aabd Selenium TAC: get properties from ant scripts
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87122 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-11 01:36:31 +00:00
zcui
3bc47afa76 selenium MDM:QAI-12164,updateOccurrencesRecordImpl
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87112 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 09:21:22 +00:00
fyan2
6a81b2c976 Selenium:TAC added tests of commandline QAI-12174 and QAI-12175
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87102 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 08:35:17 +00:00
zcui
b560444edc selenium MDM:QAI-12251,add cases to cover TMDM-4298
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87100 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 08:08:49 +00:00
fgzhang
522c226d85 selenium:tac
add methods and cases:
CommandlineImpls---commandlineExecuteJobOfContextOnJobServerImpl()
CommandlineAction---executeJobOfContextOnServer()
TestCommandline---testCommandlineExecuteJobOfContextOnServer()
 --test command of 'deployJobToServer(-jc (--job-context) context name chooses a job context) ' in commnadline
QAI-12188

CommandlineAction---changeStatus()
                 ---listItemFilter()
CommandlineImpls---commandlineChangeStatusImpl()
TestCommandline---testCommandlineChangeStatus()
 --test command of changeStatus in commnadline
QAI-12167

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87098 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 08:04:26 +00:00
dfcao
0eb5ebefd6 SWTBot DI:QAI-12101 add test JobletWith1TriggerOutputTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87091 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 07:01:56 +00:00
dfcao
da00967eb3 SWTBot DI:QAI-11969 add test JobletWith1TriggerInputTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87089 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 06:59:42 +00:00
hjbai2
b5200515a4 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87088 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-10 06:59:11 +00:00
dfcao
076c852fb5 SWTBot DI:QAI-12096 add test RefactorToJobletTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87087 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 06:58:52 +00:00
dfcao
d8a46f4c37 SWTBot DI:QAI-12097 add test CanOpenJobletInJobTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87086 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 06:57:48 +00:00
ycbai
e729d72986 bug TDI-20660 fixed : MySQL Table Creation does not save empty string ("") as field defaults as specified in schema
git-svn-id: http://talendforge.org/svn/tos/trunk@87083 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 06:30:58 +00:00
ycbai
54b3aa75db bug TDI-20660 fixed : MySQL Table Creation does not save empty string ("") as field defaults as specified in schema
git-svn-id: http://talendforge.org/svn/tos/trunk@87082 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 06:30:47 +00:00
zcui
ed4ec053e5 selenium MDM:QAI-12146,update updateThirdEntityRecordSuccessWithMutipleOccurrences
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87077 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 05:27:49 +00:00
zcui
c0545c133c git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87076 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-10 05:07:32 +00:00
zcui
5dff9a86cb selenium MDM:QAI-12146,update parameter of remove an occurrences
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87075 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 04:48:49 +00:00
zcui
1b2426a16d selenium MDM:QAI-12190,add time delay after click save
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87067 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 02:37:48 +00:00
fzhong
b760914595 SWTBot DI: QAI-12100, [testcase] TDIQA-921:Joblet with 1 input and 0 output
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87062 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 02:12:19 +00:00
fzhong
fb060cbf5f SWTBot DI: QAI-12099, [testcase] TDIQA-915:Joblet with 1 input and 1 output
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87061 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 02:11:38 +00:00
fzhong
1a1bebf428 SWTBot DI: QAI-12098, [testcase] TDIQA-913:Joblet with 0 input and 1 output
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87060 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 02:10:27 +00:00
fzhong
d7ce867ea3 SWTBot DI: QAI-11968, [testcase] TDIQA-911:Joblet with 0 input and 0 output
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87059 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-10 02:09:02 +00:00
dfcao
7bddeae8fb SWTBot DI:QAI-11967 add test UpdateofJobletTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87042 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 10:04:58 +00:00
zpbai
d63ffcb84e Selenium TAC: check current OS, and set JDK path for the OS
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87036 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 08:47:24 +00:00
yliu
74513fd12d TDI-20890:change method buildInstantRunTriggerName
git-svn-id: http://talendforge.org/svn/tos/trunk@87026 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 07:53:58 +00:00
fgzhang
6fa7122373 selenium:tac
update cases:
CommandlineAction---executeAllJob
                 ---executeJob
CommandlineImpls---commandlineExecuteAllJobImpl()
TestCommandline---testCommandlineExecuteAllJob
               --testCommandlineExecuteJob()
Commandline---getJDKPath
 --change parameter of jdkpath


add methods and cases:
CommandlineImpls---commandlineExecuteJobOfVersionOnJobServerImpl()
CommandlineAction---executeJobOfVersionOnServer()
TestCommandline---testCommandlineExecuteJobOfVersionOnServer()
 --test command of 'deployJobToServer(-jv (--job-version) version chooses a job version) ' in commnadline
QAI-12173

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87025 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 07:47:57 +00:00
zcui
4f84c4d254 selenium MDM:QAI-12191,update cases about CustomTypesRecord
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87023 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 07:21:00 +00:00
zcui
ec5ffd277f selenium MDM:QAI-12190,update cases about ComplexTypesRecord
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87022 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 07:20:00 +00:00
zcui
ca7de9f391 selenium MDM:QAI-12186,update cases of datatypestest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87021 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 07:18:43 +00:00
zcui
a56c3940b5 selenium MDM:QAI-12193,update method of get total record number
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87020 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 07:16:48 +00:00
hjbai2
eb61dc55db git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87016 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-07-09 06:42:28 +00:00
yhbai
9d5a4e04da swtbot:tdq:
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87012 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 05:41:19 +00:00
zcui
21681e8456 selenium MDM:QAI-12164 ,update cases of occurrences
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87011 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 05:36:33 +00:00
fgzhang
cf0fb4cc53 selenium:tac
update importJObs.zip


add methods and cases:
CommandlineAction---executeAllJob()
CommandlineImpls---commandlineExecuteAllJobImpl()
TestCommandline---testCommandlineExecuteAllJob
 --add method for test command executeAllJob
QAI-12165

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87009 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 05:06:38 +00:00
zpbai
c77bdb0e0d Selenium MDM: format the global configuration file
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87006 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 04:08:19 +00:00
yhbai
0cab0c5332 SWTbot:update case QAI-11884 QAI-11885 QAI-11886 QAI-11887 QAI-11888
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87002 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 03:10:00 +00:00
zpbai
3c54068afe Selenium MDM: Add the feature of operate excel
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@87000 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 02:55:53 +00:00
zcui
a254dbd53a selenium MDM:QAI-12146,update cases about thirdentity on trunk
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86995 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-09 02:17:17 +00:00
fzhong
67e33a5b9b SWTBot DI: QAI-12113, solve pb for could not close wizard 'Export Job'
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86986 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-08 14:06:38 +00:00
fzhong
76871074a3 SWTBot DI: QAI-12113, solve pb for did not wait progress information close that affect after tests
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86984 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-07 17:47:59 +00:00
fzhong
f01149db17 SWTBot DI: QAI-12113, update tests about FTP, HL7, Web Service, Filter and stable tests about CDC and db connection
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86982 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-07 16:15:40 +00:00
zshen
307d0391f4 TDQ-5074 TDQ-5745 add test case for convert method.
git-svn-id: http://talendforge.org/svn/tos/trunk@86960 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-06 10:16:42 +00:00
fyan2
9f49dbbe93 Selenium:TAC QAI-11914 Added new test cases for selecting feature
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86957 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-06 10:08:45 +00:00
scorreia
2a2d1c3d6c change the contract of the method: never return null. Returns the empty
string when no plugin can be found given the id.


git-svn-id: http://talendforge.org/svn/tos/trunk@86953 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-06 09:47:04 +00:00
zcui
61b9557164 selenium MDM:QAI-12146,update thirdentity createThirdEntityRecordFailedImpl
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86942 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-06 09:25:24 +00:00
plv
4372083151 bug TDI-20431:Create a XML file connection, 'Refresh Preview' then change the xpath loop expression wrong or empty, click 'refresh preview' data still shows.
git-svn-id: http://talendforge.org/svn/tos/trunk@86940 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-06 08:51:04 +00:00
ycbai
a719a8de7d bug TDI-17530 fixed : Copying a table entry from a component's settings dirties a job
git-svn-id: http://talendforge.org/svn/tos/trunk@86933 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-06 08:19:25 +00:00
hwang
1543ade8ae TDI-21636 :junit of MetadataToolHelper
git-svn-id: http://talendforge.org/svn/tos/trunk@86925 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-06 07:31:20 +00:00
zcui
d100b02350 selenium MDM:update testRemoveStoreRecordImpl
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86885 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-06 03:26:39 +00:00
fyan2
368535e329 Selenium:TAC QAI-11981 Create test case about selecting a feature from a complex hirarchy structure in Archiva (>= 4 hierarchy levels)
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86839 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 10:03:23 +00:00
fyan2
36b01d3380 Selenium:TAC Update cases QAI-11875
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86838 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 10:01:53 +00:00
yyin
173714b51b TDQ-5716 refactor(rename)
git-svn-id: http://talendforge.org/svn/tos/trunk@86824 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 08:46:44 +00:00
yyin
8c1ff1c8aa merge r86809 from branch 5.1 to trunk
TDQ-5716 rename  sql source & source file folder got error. 
load the file content into bytearray of the sqlitem before calling TOS's save in rename method


git-svn-id: http://talendforge.org/svn/tos/trunk@86817 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 07:55:08 +00:00
wliu
bd82a7f8d8 fix Bug TDI-21606:Method exceeding 65535 bytes limit while using tFileInputDelimited and tFileOutputMSXML
http://jira.talendforge.org/browse/TDI-21606

git-svn-id: http://talendforge.org/svn/tos/trunk@86816 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 07:44:42 +00:00
fgzhang
eb20156582 selenium:tac
add commandline.xml suite to launch_test_china.xml
QAI-11876

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86807 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 07:17:44 +00:00
dfcao
c302a0c67a SWTBot DI:QAI-11879 modify test TalendDBItem,CreateSubcribersTableTest and OnceExecutionForCreatingSubscribersTest for avoid mix db item when there are more than two db connection
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86806 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 07:12:35 +00:00
zpbai
699fe38fea Selenium TAC: remove useless test cases
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86791 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 05:31:18 +00:00
dlin
17fa5128fd bug TDI-20890 fixed: move IdGenerator.java from org.talend.remote.commons to org.talend.utils
git-svn-id: http://talendforge.org/svn/tos/trunk@86784 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 03:32:47 +00:00
yyin
ae19491929 merge r86744 from branch 5.1 to trunk
TDQ-5693 Fix an error "FileNotFoundException" when moving a sql source file 


git-svn-id: http://talendforge.org/svn/tos/trunk@86773 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-05 02:21:53 +00:00
fyan2
f9c86befb8 Selenium:TAC Update cases for removal refrence to QAI-11875
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86750 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 10:08:55 +00:00
cli
cd6c1c82c2 TDI-21722: add test
git-svn-id: http://talendforge.org/svn/tos/trunk@86742 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 09:31:16 +00:00
fgzhang
7de3522736 selenium: tac
copy and move cases from beanch 5.0

change method delete server
add wait time of wait server before mouse down server

modify cases of selece an connection


git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86741 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 09:19:42 +00:00
cli
5b169305f4 TDI-21718: fixed the problem for product and driverclass
git-svn-id: http://talendforge.org/svn/tos/trunk@86740 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 09:18:26 +00:00
fzhong
df2923944e SWTBot DI: QAI-11881, make buildType as a enum and modified related tests for TOS DI build
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86729 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 08:32:29 +00:00
hjbai2
063068bc76 selenium:mdm add the testlink id
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86727 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 08:16:26 +00:00
zcui
5ce8bad5d4 selenium MDM:add testlink.id for each cases
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86726 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 08:12:03 +00:00
zcui
6840d05fb4 selenium MDM:update cases about user
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86722 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 07:31:33 +00:00
fzhong
121094bc21 SWTBot DI: QAI-11882, update tests about implicit context load on TOS-BD and modified copy paste method for no version on TOS-BD, and increase time waiting for progress information when import items
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86716 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 06:22:08 +00:00
zpbai
47b5f37e46 Selenium TAC: update log4j configuration
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86713 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 06:04:02 +00:00
dfcao
ca8e29d430 SWTBot DI:QAI-11879 modify openAnotherVersionOfJobTest and OpenAnotherVersionOfSqlTemplateTest for change the shell name to "Job version" and modify IterateLinkTest for need to unselect the default radio buttion before select the other one
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86709 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 05:53:41 +00:00
fgzhang
7099e577a8 selenium:tac
change parameters of jobserver
QAI-11876

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86697 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 02:56:17 +00:00
fgzhang
67c51f6363 selenium: tac
TestChangeAuditDatabaseWithWrongParameters
 -testAuditProjectWithH2DB
 -testChangeAuditDatabaseWithWrongDriver
TestChangeAuditReportStoredPathInConfiguration
 -testChangeReportStoredPathWithNotExistPath
 -resetReportStoredPathToIncipient
 ----change parmaters of h2 info
Project
 -deleteProject
 ----add loop after click delete
server.xml
 ----remove server cases of runtime
TestGenerateDeployRunStopPauseTaskResumeTask
 -testRunTaskWithInactiveServer
TestDeleteServerUsedBytask
 -deleteServerUnused
TestCheckRoleDesignerPrivilege
 -testDesignerReadForConfigurations
 -testDesignerReadForServer
TestCheckRoleViewerPrivilege
 -testViewerReadForServer
TestConfigurations
 -testSetSVN
TestCheckAllUsersJobserverTaskOfClickFirstCheckBox
 -testCheckAllJobServersOfClickFirstCheckBox
TestCheckEveryTimeOpenPreviousSelectedUsersTasksJobServerAreAlreadyChecked
 -testCheckEveryTimeOpenPreviousSelectedJobServersAreAlreadyChecked
TestAddJobserverNotification
 -testAddJobserversJobServerAlertNotification
 -testAddJobserversNotificationUncheckActive
TestDeleteNotification
 -testDeleteJobServerByDeleteJobServer
-------change parameters of server and svn

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86693 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-04 02:35:01 +00:00
scorreia
ef328a1157 TDQ-5739 created an utility method for getting the path in the test plugins
git-svn-id: http://talendforge.org/svn/tos/trunk@86679 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-03 14:34:25 +00:00
fyan2
55dbe5cfff Selenium:TAC Update cases for removal
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86674 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-03 10:14:09 +00:00
cli
1f1f619bcd TDI-21718: fixed the compile error.
git-svn-id: http://talendforge.org/svn/tos/trunk@86673 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-03 10:12:36 +00:00
fgzhang
f9c670626b selenium:tac
update license to latest license

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86664 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-03 09:52:48 +00:00
hcyi
7c54b55512 bug TDI-21689 fixed : In the job repository view all elements are sorted alphabetically(no matters if it's a job or folder) .
git-svn-id: http://talendforge.org/svn/tos/trunk@86660 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-03 09:34:51 +00:00
cli
aceb07a73d TDI-21718: refactor the ExtractMetaDataFromDataBase
git-svn-id: http://talendforge.org/svn/tos/trunk@86655 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-03 09:11:39 +00:00
zcui
40e7584bf8 selenium MDM: update launch_test.xml for new cases added
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86627 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-03 03:56:19 +00:00
zcui
116d7d3f79 selenium MDM: merge new cases added 5.0.3 to trunk
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86626 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-03 03:55:38 +00:00
xqliu
8a4689aeab TDQ-5562 TDQ-5566 remove absolute paths in junit test case FilesUtilsTest.java
git-svn-id: http://talendforge.org/svn/tos/trunk@86573 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-07-02 06:37:51 +00:00
cli
6d77cf0a09 TDI-21684: add the junit for "isOLAPConnection"
git-svn-id: http://talendforge.org/svn/tos/trunk@86511 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-29 09:28:50 +00:00
cli
58cf72d991 TDI-21679: finished the junit for method "getStringMetaDataInfo"
git-svn-id: http://talendforge.org/svn/tos/trunk@86507 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-29 08:23:50 +00:00
cli
3d1cafb9f6 TDI-21662: add the junit for getDatabaseMetaData
git-svn-id: http://talendforge.org/svn/tos/trunk@86504 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-29 08:00:16 +00:00
plv
ca60677b5a junit for FilesUtils
git-svn-id: http://talendforge.org/svn/tos/trunk@86501 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-29 07:11:07 +00:00
hwang
233282cba7 TDI-21636 :junit of MetadataToolHelper
git-svn-id: http://talendforge.org/svn/tos/trunk@86474 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-29 01:58:21 +00:00
ldong
698f1b4173 bug TDI-20492 fixed:The warning message should be removed after the user has selected a DB type.
git-svn-id: http://talendforge.org/svn/tos/trunk@86433 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-28 08:09:00 +00:00
cli
7ee9315d7d revert the commit 86425
git-svn-id: http://talendforge.org/svn/tos/trunk@86431 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-28 08:00:20 +00:00
nrousseau
49945f7368 Test only: set debug mode for few revisions, only to check the result on tujs
git-svn-id: http://talendforge.org/svn/tos/trunk@86425 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-28 06:02:04 +00:00
hwang
180a993e88 junit of LocalLibraryManagerTest
git-svn-id: http://talendforge.org/svn/tos/trunk@86411 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-28 02:34:39 +00:00
hwang
dfaa092484 TDI-21635:refactor of MetadataTool
git-svn-id: http://talendforge.org/svn/tos/trunk@86388 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-27 10:08:36 +00:00
ycbai
1ebde33f37 bug TDI-21618: do junit for bug TDI-21580
git-svn-id: http://talendforge.org/svn/tos/trunk@86383 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-27 09:37:58 +00:00
ycbai
cf4d3bd1ba bug TDI-21580 fixed: MDM Input metadata loose column Xpath queries when used in a job
git-svn-id: http://talendforge.org/svn/tos/trunk@86361 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-27 06:06:56 +00:00
cli
36597eed3e TDI-21602: add junit for bug
git-svn-id: http://talendforge.org/svn/tos/trunk@86359 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-27 05:49:32 +00:00
xpli
2760efd334 TESB-6227 xport Route Resources into KAR files
git-svn-id: http://talendforge.org/svn/tos/trunk@86328 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-26 08:53:17 +00:00
mzhao
da7a4ea59a merge r86275 from branch 5.0 to trunk
TDI-21552 fix the reload problem in case of generic JDBC connection in context mode + differentiate the generic JDBC and normal database conn when saving the reloaded object after switched context.


git-svn-id: http://talendforge.org/svn/tos/trunk@86291 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-26 02:09:41 +00:00
gliu
dde245bec2 [TESB-6260] fixed : there are some bugs when use "edit denpendencies"
git-svn-id: http://talendforge.org/svn/tos/trunk@86285 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-26 01:01:40 +00:00
xpli
eb7aa4782d TESB-6285 Create a new Component Field ROUTE_RESOURCE for Route components
git-svn-id: http://talendforge.org/svn/tos/trunk@86269 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-25 09:53:01 +00:00
ldong
5f68dd131f bug TDI-21525 fixed:EBCDIC Datatype PIC S9 does not work.
git-svn-id: http://talendforge.org/svn/tos/trunk@86256 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-25 08:50:50 +00:00
ldong
d1ab2a516c bug TDI-21525 fixed:EBCDIC Datatype PIC S9 does not work.
git-svn-id: http://talendforge.org/svn/tos/trunk@86255 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-25 08:50:18 +00:00
qiongli
2027d2f0cf merge r86198 from branch 5.0 to trunk
TDQ-5139 TDQ-5623 add a method 'getFullPath' to get xpath.


git-svn-id: http://talendforge.org/svn/tos/trunk@86233 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-25 04:31:12 +00:00
yyin
73332ec744 TDQ-5468
git-svn-id: http://talendforge.org/svn/tos/trunk@86223 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-25 02:23:43 +00:00
gliu
a5ad0af23d [TESB-6210] finish the prototype : Prototype the modularity improvement.
git-svn-id: http://talendforge.org/svn/tos/trunk@86175 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-21 09:56:44 +00:00
ycbai
aa213face6 bug TDI-20572 fixed : netezza DB table inport wrong data types
git-svn-id: http://talendforge.org/svn/tos/trunk@86162 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-21 09:13:24 +00:00
mwang
092808915d For bug TDI-21009, ignore the case sensitive.
git-svn-id: http://talendforge.org/svn/tos/trunk@86131 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-21 06:53:27 +00:00
fzhong
dd4166c169 SWTBot DI: QAI-11494, modify pb for shell is not close when creating DB connection
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@86060 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-20 10:04:32 +00:00
ycbai
fb3398d21c bug TDI-21467 fixed : Difference between default retrieve schema and retrieve schema button from table wizard.
git-svn-id: http://talendforge.org/svn/tos/trunk@86033 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-20 07:21:31 +00:00
zwzhao
7748b31b26 bug TDI-21149 fixed : Value added in prompt field for context cannot be use in remote execution in studio
git-svn-id: http://talendforge.org/svn/tos/trunk@85934 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-19 09:43:03 +00:00
xpli
3b86e3e65f TESB-6224 [new feature] Add operation menus for Route Resource Node
git-svn-id: http://talendforge.org/svn/tos/trunk@85928 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-19 08:54:02 +00:00
ycbai
2c0a14e5f3 bug TDI-19858 fixed : Lost Connection Meta-data with Infobright
git-svn-id: http://talendforge.org/svn/tos/trunk@85921 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-19 07:57:36 +00:00
fzhong
db9568aae7 SWTBot DI: QAI-11330, update tos tests on Win7 32bit
1. improve execute sql for TalendDBItem
2. refactor test ImplicitContextLoadForTransmitToChildTest
3. modified test UpdateDependentJobsTest for getting wrong item for copied item
4. modified test EmptyRecycleBinTest for assert wrong

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@85885 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-19 03:05:37 +00:00
pbabin
d24f47bc1c -Eclipse 3.7 conformance: update checkstyle nature
-Remove unneeded WST (web standard tools) settings
(Reviewed by SG)

git-svn-id: http://talendforge.org/svn/tos/trunk@85880 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-19 02:59:54 +00:00
yyin
ab6d4df13f TDQ-5468 the path of the folder should not be changed before get the file content.
git-svn-id: http://talendforge.org/svn/tos/trunk@85866 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-19 02:10:03 +00:00
msjian
f00a419861 TDQ-5503 : fix the testcase error, no need to mock
git-svn-id: http://talendforge.org/svn/tos/trunk@85832 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-18 10:56:16 +00:00
gliu
1d703b9574 [TESB-6220] Refactor and Commit the codes to SVN trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@85776 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-18 08:02:29 +00:00
yyin
deac4edf10 TDQ-5468 drag a source file, the file lost it's content
fixed on trunk: add save (inner content) from sql file. 

git-svn-id: http://talendforge.org/svn/tos/trunk@85771 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-18 07:50:16 +00:00
hcyi
5f21d3ca2a bug TDI-21324 fixed : Revert the #TDI-19844 fix , Multiple identical XPaths should be possible within tAdvancedFileOutputXML after applying #TDI-19844 .
git-svn-id: http://talendforge.org/svn/tos/trunk@85766 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-18 07:14:35 +00:00
fzhong
e90f3fcd42 SWTBot DI: QAI-5290, modified test name for CtrlSpaceToUseContext
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@85758 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-18 05:15:23 +00:00
fzhong
8fcb19b01e SWTBot DI: QAI-5290, TIS/TOS-3631:Ctrl+Space to use context
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@85749 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-18 03:32:16 +00:00
ldong
0d8ac12c5e bug TDI-20584 fixed:Can't retrive schema correctly when migrate a connection from 402 to 423.
git-svn-id: http://talendforge.org/svn/tos/trunk@85738 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-18 02:35:36 +00:00
dfcao
b227546135 SWTBot DI:QAI-5281 add test of ImplictTcontetLoaderforTransmitToChildTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@85706 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-15 10:29:40 +00:00
ycbai
f9f2f46f32 bug TDI-21403 fixed : fix this bug and improve the reference items checking of the delete function.
git-svn-id: http://talendforge.org/svn/tos/trunk@85699 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-15 10:15:36 +00:00
fzhong
43935d2276 SWTBot DI: QAI-5286, TIS/TOS-1325:Implicit context load
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@85668 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-15 08:49:13 +00:00
ycbai
cefd9ae557 bug TDI-21403 fixed : fix this bug and improve the reference items checking of the delete function.
git-svn-id: http://talendforge.org/svn/tos/trunk@85660 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-15 08:09:39 +00:00
ycbai
a351a024d8 bug TDI-21403 fixed : fix this bug and improve the reference items checking of the delete function.
git-svn-id: http://talendforge.org/svn/tos/trunk@85659 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-15 08:08:45 +00:00
hcyi
2c8e472c48 bug TDQ-3684 fixed : Register via Proxy doesn't work .
git-svn-id: http://talendforge.org/svn/tos/trunk@85648 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-15 07:15:55 +00:00
msjian
530fae57b1 TDQ-5503: add a method to check the mssql db type
git-svn-id: http://talendforge.org/svn/tos/trunk@85630 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-15 04:30:39 +00:00
dfcao
89b3a60b88 SWTBot DI:QAI-5287 Add test of AlwaysExecutTheDefaultContextTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@85572 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-14 06:11:30 +00:00
hcyi
af9aaa0169 bug TDQ-5551 fixed : do empty recycle bin under DI get error when db depend by analysis , Fix issue 1 .
git-svn-id: http://talendforge.org/svn/tos/trunk@85544 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-14 03:20:46 +00:00
fzhong
10bf3d898e SWTBot DI: QAI-5280, TIS/TOS-98:ContextVariable and modified SWTBotTreeItemExt.java for could not click context menu of table tree
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@85533 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-14 02:32:08 +00:00
fzhong
9d84b0a1da SWTBot DI: QAI-5291, TIS/TOS-4851:parameter of context using in tjava/tmsgbox and update test UpdateDependentJobsTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@85437 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-13 03:29:41 +00:00
xqliu
d847bba96d TDQ-5562 TDQ-5594 backport org.talend.commons.test from branch 5.0 to trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@85375 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-12 09:07:40 +00:00
fzhong
f85e38a8b2 SWTBot DI: QAI-10788, update tests about filter
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@85349 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-12 07:59:11 +00:00
fzhong
4d9bb14054 SWTBot DI: QAI-10773, update tos tests for project management
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@85207 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-11 10:10:57 +00:00
fzhong
2dc9edad13 SWTBot DI: QAI-10776, update tos tests for database
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@85163 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-11 07:43:33 +00:00
yyin
bd583ff448 merge r85156 from branch 5.0 to trunk
TDQ-5346,file connection with context, set the first line as columns name -- failed to find the value of which one is set to be header
the change before is not correct.revert it 


git-svn-id: http://talendforge.org/svn/tos/trunk@85159 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-11 07:35:54 +00:00
zshen
6f26ba2c9f TDQ-5562 TDQ-5564 check junit for matadata.managment.test
git-svn-id: http://talendforge.org/svn/tos/trunk@85140 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-11 03:32:02 +00:00
zshen
8e8bc613b7 TDQ-5562 TDQ-5564 check junit for matadata.managment.test
git-svn-id: http://talendforge.org/svn/tos/trunk@85139 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-11 03:31:40 +00:00
msjian
86dac04303 TDQ-5437: add a backport_dqportal.pl script to trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@85127 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-11 02:27:54 +00:00
fzhong
1c33a55150 SWTBot DI: QAI-10777, update tos tests for file menipulation, use metadata in job
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@85110 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-08 10:32:52 +00:00
fgzhang
2cea98bfd4 selenium: update paramters of svn info
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@85095 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-08 09:55:43 +00:00
atelesh
a4c2e2dfe7 fix code produced NullPointerException
git-svn-id: http://talendforge.org/svn/tos/trunk@85088 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-08 09:30:38 +00:00
fwang
b1ecf8d36d bug TDI-21409 fixed:Error show in error log when close a creating jobscript under a folder
git-svn-id: http://talendforge.org/svn/tos/trunk@85072 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-08 08:39:08 +00:00
ldong
40b82b1c24 bug TDI-21138 fixed:Retrieve Schema for Postgres 9.1 database is incorrectly.
git-svn-id: http://talendforge.org/svn/tos/trunk@85001 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-07 10:13:39 +00:00
zwzhao
250481d78b bug TDI-21358 fixed : Some DBTYPE is no more available in the dropdown list for oracle connection with context mode
git-svn-id: http://talendforge.org/svn/tos/trunk@84972 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-07 09:25:18 +00:00
fzhong
66e2dbe07c SWTBot DI: QAI-10771, update ImportItemsTest and EmptyRecycleBinTest on trunk
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84919 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-07 06:56:17 +00:00
fwang
11b88cc53c bug TDI-21120 fixed:a minor display error in Sql Builder
git-svn-id: http://talendforge.org/svn/tos/trunk@84879 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-07 01:56:03 +00:00
dbushenko
39140a3328 TESB-6109
git-svn-id: http://talendforge.org/svn/tos/trunk@84868 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 12:59:02 +00:00
xqliu
4a9cb5ae22 TDQ-5537 TDQ-5550 Fix it on branch 5.1 and trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@84853 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 11:07:23 +00:00
jyhu
016ef6552a Fix Bug TDI-21098 : Unable to Create table with tMysqlXX when the date type is "Timestamp" .
http://jira.talendforge.org/browse/TDI-21098 

git-svn-id: http://talendforge.org/svn/tos/trunk@84828 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 09:26:16 +00:00
sgandon
6443bd1eee added com.amalto to authorised junit package prefixes
git-svn-id: http://talendforge.org/svn/tos/trunk@84822 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 08:49:18 +00:00
hwang
717a0d815f junit practice
git-svn-id: http://talendforge.org/svn/tos/trunk@84821 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 08:39:35 +00:00
mwang
ebf3beed81 For bug TDI-21009, Some places compare the context groups with case sensitive, just make all contexts toLowerCase to compare.
git-svn-id: http://talendforge.org/svn/tos/trunk@84805 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 07:10:25 +00:00
yhbai
9eb669fede SWTBOT TDQ:QAI-10736
update tests of TDQ on 5.1.0.modified the case about ColumnAnlaysisAboutMysqlDbconnectionViewTest ColumnAnlaysisAboutMysqlDbconnectionViewTest ColumnAnlaysisAboutMssqlViewdbconnectionTest ColumnAnlaysisAboutMysqlDbconnectionViewTest

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84792 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 06:08:50 +00:00
hcyi
e3e926b42b bug TDI-21298 fixed : Different processing order of two tPrejob between studio code and exported code .
git-svn-id: http://talendforge.org/svn/tos/trunk@84764 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 03:17:29 +00:00
hwang
c1ac6f670b TDI-18156:addCDC fails on MS SQL Server 2008
git-svn-id: http://talendforge.org/svn/tos/trunk@84757 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-06 02:45:45 +00:00
mzhao
c643e0a41c merge r84703 from branch 5.1 to trunk
TDI-21382 Do instanceof assertion for jtds connection.


git-svn-id: http://talendforge.org/svn/tos/trunk@84706 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-05 09:16:29 +00:00
zwzhao
9473b2bf20 bug TDI-19586 fixed : Precision of column incorrect for Retrieve Schema on DB connection
git-svn-id: http://talendforge.org/svn/tos/trunk@84695 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-05 08:26:17 +00:00
cli
0089e3532d modification: fixed the checkstyle error.
git-svn-id: http://talendforge.org/svn/tos/trunk@84693 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-05 08:18:39 +00:00
fyan2
508778e6b7 update parameters
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84660 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-05 03:14:56 +00:00
zcui
e593260ee1 selenium:QAI-10728
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84658 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-05 02:54:50 +00:00
zcui
0b4d3fa851 selenium:QAI-10728
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84657 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-05 02:44:04 +00:00
hjbai2
fb9fd94c5b selenium:MDM
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84652 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-05 02:13:13 +00:00
fgzhang
a31c8daae4 QAI-10685
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84649 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-05 01:07:04 +00:00
dbushenko
9e23c28db0 tesb-6081
git-svn-id: http://talendforge.org/svn/tos/trunk@84638 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 13:36:32 +00:00
zshen
782d5c494c TDQ-4783 TDQ-5424 Fix bug which can not display the change for restriction on branch 5.0
git-svn-id: http://talendforge.org/svn/tos/trunk@84626 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 10:31:45 +00:00
hwang
bafa4f0159 TDI-18156:addCDC fails on MS SQL Server 2008
git-svn-id: http://talendforge.org/svn/tos/trunk@84605 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 09:44:09 +00:00
fgzhang
266b576871 QAI-10685
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84599 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 09:19:23 +00:00
fgzhang
199171beba QAI-10685
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84597 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 09:05:33 +00:00
yyin
0e379fd73d TDQ-5497 org.eclipse.jface error while opening the job: fixed on trunk
add some judgement for connection before use it(null or not). 

git-svn-id: http://talendforge.org/svn/tos/trunk@84586 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 08:24:37 +00:00
zcui
de7210f3c6 selenium:QAI-9949
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84584 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 08:20:00 +00:00
wchen
f7000d5934 bug TDI-20349 fixed: Studio hangs or crash with error when expand side bar in tRowGenerator
git-svn-id: http://talendforge.org/svn/tos/trunk@84583 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 08:19:30 +00:00
yyin
309f84cafe merge r84227 from branch 5.0 to trunk
TDQ-5346 file connection with context, set the first line as columns name -- failed to find the value of which one is set to be header
 fixed on branch5.0


git-svn-id: http://talendforge.org/svn/tos/trunk@84577 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 07:59:24 +00:00
hjbai2
32971c207d selenium:mdm QAI-9948
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84575 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 07:49:12 +00:00
hjbai2
3bac3d32c3 selenium:mdm
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84541 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 04:02:42 +00:00
hjbai2
99dce3368c selenium:mdm
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84540 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 03:24:54 +00:00
mwang
2c2d3662a5 For bug TDI-21227, Just unload resources when canceling the operation to create a connections or edit schemas.
git-svn-id: http://talendforge.org/svn/tos/trunk@84535 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-04 02:17:37 +00:00
sgandon
e45ad959f3 Fix Work Item TDI-21301 : Studio : refactor Lock/Unlock notification system
http://jira.talendforge.org/browse/TDI-21301

git-svn-id: http://talendforge.org/svn/tos/trunk@84528 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 12:33:54 +00:00
xqliu
91f99f3afd TDQ-4831 TDQ-5414 1) JRXML Template File: delete/rename/drag files and/or folders, show warn message "Forbidden operation!!!"; 2) Source File: delete/rename/drag files and/or folders, if the source file has been opened, show warn message and prevent the operation, else execute the operation
git-svn-id: http://talendforge.org/svn/tos/trunk@84525 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 10:57:19 +00:00
xqliu
068ee7b68a TDQ-5489 TDQ-5525 backport on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@84479 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 09:07:18 +00:00
fyan2
be2cbb6958 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84476 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-06-01 08:59:03 +00:00
zcui
bea443da24 selenium:update model User
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84467 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 08:42:02 +00:00
hjbai2
9b645649d5 selenium:msm
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84461 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 08:17:41 +00:00
fzhong
9e76c205c7 SWTBot modification: solve pb for could not set password when creating jdbc connection
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84457 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 07:58:02 +00:00
hcyi
a4adffb016 bug TDI-21102 modified : revert the commited svn_tos:84413 .
git-svn-id: http://talendforge.org/svn/tos/trunk@84454 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 07:53:35 +00:00
jjzhou
80c30450cf fix Bug TDI-21254: System routine: TalendDate.setDate no way to set minute field of date
git-svn-id: http://talendforge.org/svn/tos/trunk@84451 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 07:45:16 +00:00
fyan2
08237a4940 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84437 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-06-01 06:39:55 +00:00
zpbai
a104c22680 Selenium MDM: refactor the Base and Login
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84431 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 05:43:01 +00:00
fwang
c86c0af4b2 bug TDI-21120 fixed:a minor display error in Sql Builder
git-svn-id: http://talendforge.org/svn/tos/trunk@84427 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 03:23:29 +00:00
hcyi
2de7d901ab bug TDI-21102 fixed : Talend MDM_no save button for Receive MDM metadata .
git-svn-id: http://talendforge.org/svn/tos/trunk@84413 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 02:29:29 +00:00
ldong
1127a99740 bug TDI-21138 fixed:Retrieve Schema for Postgres 9.1 database is incorrectly.
git-svn-id: http://talendforge.org/svn/tos/trunk@84385 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 02:00:40 +00:00
hcyi
df345efdbb bug TDI-21298 fixed : Different processing order of two tPrejob between studio code and exported code .
git-svn-id: http://talendforge.org/svn/tos/trunk@84381 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 01:58:27 +00:00
hcyi
db4b615deb bug TDI-20568 fixed : Can not add a context to a job and no operation can do in view of contex .
git-svn-id: http://talendforge.org/svn/tos/trunk@84366 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 01:46:51 +00:00
nrousseau
c90c470763 bug TDI-21315 fixed: force to fully load item and relations before save to avoid to lose anything.
git-svn-id: http://talendforge.org/svn/tos/trunk@84363 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 01:41:29 +00:00
nrousseau
613ce73701 bug TDI-21214 fixed: add several optimization
git-svn-id: http://talendforge.org/svn/tos/trunk@84360 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-06-01 01:33:43 +00:00
fzhong
79c666d2b8 SWTBot modification:
1. modified copy method for items for genetate a right item name
2. improve creation method for items about could not find item node
3. modified after class for should not delete the system routine and sql templates

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84339 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-31 10:29:30 +00:00
zcui
c07031a5e3 selenium:update method to login
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84337 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-31 09:44:50 +00:00
zcui
09e8bcc03d selenium:cases added about product with stores
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84331 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-31 08:46:29 +00:00
zpbai
dee3c66a48 Selenium MDM: fix the incorrect format for conversion
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84324 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-31 06:00:14 +00:00
hjbai2
7616cd4905 selenium:mdm
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84322 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-31 05:33:28 +00:00
hjbai2
badbd0a3de selenium:MDM add three test cases
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84321 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-31 04:39:12 +00:00
zpbai
3e38c9effd Selenium MDM: Set log level to WARN
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84320 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-31 04:37:52 +00:00
zpbai
531b417b5c Selenium MDM: Add the feature to make the tests support multiple languages
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84318 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-31 03:28:50 +00:00
fzhong
05c6bd8777 SWTBot modification:
1. solve pb for could not find created metadata after creation wizard sometime
2. solve pb for could not find progress information shell when creating XML metadata
3. improve after class for clean up repository
4. solve pb for did not delete context item in tests which need export as context

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84311 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-31 01:40:47 +00:00
fgzhang
e8628f5fa4 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84297 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-30 09:38:18 +00:00
hjbai2
0be7dafa6f selenium:update the test case about the agency create and the productor create test case
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84281 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-30 07:47:48 +00:00
cli
14d417c666 TDI-21329: fixed the performance problem, when login project
git-svn-id: http://talendforge.org/svn/tos/trunk@84274 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-30 05:06:03 +00:00
hwang
b0c3b74b33 git-svn-id: http://talendforge.org/svn/tos/trunk@84272 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-05-30 03:08:42 +00:00
fzhong
3506f31750 SWTBot modification:
1. pop up error dialog 'find errors in jobs'
2. modified wizard title for rename job
3. create xml fail
4. remove TalendMDM item type for TOSDI
5. did not delete job in after class for export job test
6. did not delete context in after class for ExportAsContextForXmlTest
7. did not delete salesforce in after class for UseSalesforceTest
8. improve assert method for test ChangeAllItemsToAFixedVersionTest

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84258 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-29 10:43:04 +00:00
zcui
570b6ee1e3 Selenium:update for run test on ie users
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84245 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-29 08:47:34 +00:00
zcui
0761d0b042 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84231 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-05-29 04:02:57 +00:00
zcui
316890b0b1 selenium:update user for add user on IE and select user roles
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84230 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-29 04:02:15 +00:00
fzhong
f294a02896 SWTBot modification:
1. could not find shell 'Error Executing SQL' when execute sql fail.
2. too short  wait time for closing DB creation wizard.
3. could not close shell 'Modification' when retrieving schema for salesforce.
4. could not new an instance of TalendSchemaItem without itemType.
5. improve function for after class
6. improve assertion for data view on DB SCD
7. need wait for new version of item when it changed
8. could not get schema for SpecialColumnNameTest

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84226 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-29 02:39:24 +00:00
fgzhang
0131200b1b QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84205 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-28 09:51:35 +00:00
hjbai2
1dadde6bc4 selenium:update the record.java
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84193 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-28 07:05:27 +00:00
nrousseau
487c7c50ad Modification: update junits related to repository
git-svn-id: http://talendforge.org/svn/tos/trunk@84177 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-28 01:32:48 +00:00
nrousseau
7390a8d8b1 Modification: update some test cases
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84174 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-26 10:00:08 +00:00
nrousseau
f6584d65ec Modification: update some test cases
git-svn-id: http://talendforge.org/svn/tos/trunk@84173 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-26 10:00:06 +00:00
nrousseau
53d436b69d bug TDI-21306 fixed: secure the creation / update of some wizard (avoid refresh of repository view at wrong time). Avoid also to block all the repository if one item has something wrong (report to the logs which item have problem, and don't show in the gui). Fix as well a problem on readProject where the current project where the user is logged will be unloaded (which shouldn't)
git-svn-id: http://talendforge.org/svn/tos/trunk@84170 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-26 09:53:30 +00:00
hjbai2
a04b6bdf22 selenium:update the store test case
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84153 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-25 08:43:44 +00:00
hjbai2
b6e6d5c76c selenium:update the test case delete record to the recycle
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84139 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-25 06:44:31 +00:00
sgandon
e54840e4b9 Fix Bug TDI-21276 : Sometimes, the Folder icon will be disappeared after created a new folder
http://jira.talendforge.org/browse/TDI-21276
Remove old unecessary code

git-svn-id: http://talendforge.org/svn/tos/trunk@84122 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-24 15:56:57 +00:00
fgzhang
06bcff4914 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84107 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-24 10:08:49 +00:00
fgzhang
e9a8d40a45 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84100 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-24 08:08:16 +00:00
cli
6b926d66c6 TDI-21277: fixed the problem for moving multi-nodes.
git-svn-id: http://talendforge.org/svn/tos/trunk@84099 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-24 07:59:33 +00:00
fgzhang
80f486e056 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84097 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-24 07:51:01 +00:00
ldong
adfe28019d Junit TDI-21047 improved:Create JUnits to test the different cases of guess query.
git-svn-id: http://talendforge.org/svn/tos/trunk@84095 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-24 07:35:54 +00:00
nrousseau
521278e8c7 bug TDI-21275 fixed: fix some problems in the delete and restore action.
git-svn-id: http://talendforge.org/svn/tos/trunk@84088 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-24 06:21:10 +00:00
cli
fa375c2582 TDI-21274: fixed the renaming folder problem
git-svn-id: http://talendforge.org/svn/tos/trunk@84086 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-24 06:18:22 +00:00
ldong
aa5b8b8069 Junit TDI-21047 improved:Create JUnits to test the different cases of guess query.
git-svn-id: http://talendforge.org/svn/tos/trunk@84084 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-24 06:03:26 +00:00
fgzhang
980122145c QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84072 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-24 01:20:21 +00:00
sgandon
f6aa75162e revert commit 84029 that is creating a cycle during the build
git-svn-id: http://talendforge.org/svn/tos/trunk@84066 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-23 13:43:40 +00:00
fgzhang
09ad3fa7a6 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@84054 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-05-23 10:38:47 +00:00
ycbai
9062a99d41 bug TDI-19268 fixed: fix some problems.
git-svn-id: http://talendforge.org/svn/tos/trunk@84049 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-23 09:51:06 +00:00
dlin
4c8d6260bf add junit test
git-svn-id: http://talendforge.org/svn/tos/trunk@84037 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-23 08:26:35 +00:00
ldong
5d5eb96425 Junit TDI-21047 added:Create JUnits to test the different cases of guess query.
git-svn-id: http://talendforge.org/svn/tos/trunk@84029 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-23 03:45:06 +00:00
cli
05ee2c802c TDI-21238: fixed the problem for empty recycle bin, when active the generating documentation auto.
git-svn-id: http://talendforge.org/svn/tos/trunk@84012 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-22 10:40:17 +00:00
hcyi
73af45f9e3 Modification: add junit test for plugin "org.talend.core.runtime" ?
git-svn-id: http://talendforge.org/svn/tos/trunk@84004 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-22 09:22:20 +00:00
nrousseau
3e64a29ff2 Modify application used to start junits, use exactly the same as swtbot
git-svn-id: http://talendforge.org/svn/tos/trunk@84000 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-22 08:18:29 +00:00
cli
baa47329ee TDI-21229: fixed the exception for context to sort the context group.
git-svn-id: http://talendforge.org/svn/tos/trunk@83994 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-22 07:50:57 +00:00
fgzhang
afa3ccbf27 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83991 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-22 06:57:19 +00:00
fgzhang
bd0a7ec477 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83989 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-22 06:21:33 +00:00
fgzhang
830e60a9d5 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83987 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-22 04:32:18 +00:00
sizhaoliu
60be9ef6c3 TDQ-4884 SQL Server 2008 via NTLM can't retrieve new schema
- fixed metadata reload issue
- removed unused code
- deprecated a method in ConnectionUtils

git-svn-id: http://talendforge.org/svn/tos/trunk@83971 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-21 13:42:58 +00:00
scorreia
a2a3090a06 i18n: synchronize Babili strings exported on 2012-05-21-12-46-10
git-svn-id: http://talendforge.org/svn/tos/trunk@83970 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-21 13:01:37 +00:00
wchen
da4e78f1b4 bug TDI-21211 fixed: Welcome Page : Show Create ESB / DQ items when needed
git-svn-id: http://talendforge.org/svn/tos/trunk@83949 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-21 10:15:37 +00:00
fgzhang
564104ccf6 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83918 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-21 06:12:38 +00:00
fgzhang
1a9b2690e1 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83916 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-21 05:35:42 +00:00
fgzhang
8ae7e5d946 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83914 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-21 04:34:29 +00:00
fgzhang
e1c6479b82 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83913 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-21 04:19:57 +00:00
mhirt
2300547ec6 Welcome Page : Allow to create elements for DQ and ESB
git-svn-id: http://talendforge.org/svn/tos/trunk@83890 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-19 09:18:24 +00:00
nrousseau
ab97535088 bug TDI-21200 fixed: fix problem with when rename folders on SVN.
git-svn-id: http://talendforge.org/svn/tos/trunk@83889 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-19 08:18:10 +00:00
mzhao
d419f88da3 TDQ-4884 TDI-21190 Make JTDS Database Metadata as a service, forget to commit IMetadataService.java
git-svn-id: http://talendforge.org/svn/tos/trunk@83869 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-18 11:11:12 +00:00
mzhao
1dd9aedd02 TDQ-4884 TDI-21190 Make JTDS Database Metadata as a service.
git-svn-id: http://talendforge.org/svn/tos/trunk@83867 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-18 10:47:42 +00:00
cli
b7291bd61c TDI-21197: enhance the refresh and get the lock status.
git-svn-id: http://talendforge.org/svn/tos/trunk@83858 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-18 09:45:05 +00:00
qiongli
ea54c82a3b TDQ-5384:revert some changes in 83378.
git-svn-id: http://talendforge.org/svn/tos/trunk@83850 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-18 09:11:20 +00:00
wchen
c6dfe3b1d8 bug TDI-21162 fixed:SVN project_error shows in the error log when do switching from trunk to branch or branch to trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@83848 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-18 09:08:44 +00:00
cli
9bfde46e4e TDI-21197: add the refresh for cnf repository view.
git-svn-id: http://talendforge.org/svn/tos/trunk@83847 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-18 09:05:46 +00:00
zcui
8bfd8ddd7f selenium:update product openWorkflowTask
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83807 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-18 03:33:29 +00:00
zpbai
71b0129aad Selenium TAC: set firefox path
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83795 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-17 14:03:14 +00:00
hbhong
624aa7d361 TMDM-3993:fix getPattern() method not handle MDM Type
git-svn-id: http://talendforge.org/svn/tos/trunk@83775 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-17 10:13:10 +00:00
zcui
316e2ae5b6 selenium:update product testDuplicateRecordImpl
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83765 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-17 08:25:22 +00:00
zcui
1232768f58 selenium:update store testDuplicateRecordImpl
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83762 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-17 08:23:01 +00:00
zcui
f138815bb1 selenium:update agent createRecordImpl
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83758 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-17 08:11:36 +00:00
dfcao
bbb5b5b85b SWTBot:modify test UseReferenceCheckRulesTest for cann't drag db schema to job
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83755 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-17 08:05:04 +00:00
ycbai
7eda5f5cad bug TDI-20198 fixed: Remove refresh and filter button from old implementation of the view
git-svn-id: http://talendforge.org/svn/tos/trunk@83752 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-17 07:53:16 +00:00
ldong
0645a4e760 bug TDI-21128 fixed:No schema after retrieve schema for db connection, should refresh repository to show.
git-svn-id: http://talendforge.org/svn/tos/trunk@83750 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-17 07:13:57 +00:00
hcyi
6349bbecf4 bug TDI-21150 fixed : Update / Review demo project and set it as zip file .
git-svn-id: http://talendforge.org/svn/tos/trunk@83737 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-17 06:24:20 +00:00
sgandon
ea81cce9dc Fix Bug TDI-20909 : Unexpect item list on Refproject
http://jira.talendforge.org/browse/TDI-20909

git-svn-id: http://talendforge.org/svn/tos/trunk@83677 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-16 13:04:36 +00:00
sgandon
c4b3ba0b5d Fix Bug TDI-20909 : Unexpect item list on Refproject
http://jira.talendforge.org/browse/TDI-20909

git-svn-id: http://talendforge.org/svn/tos/trunk@83671 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-16 10:19:26 +00:00
dfcao
e7b607d299 SWTBot:modified test DataViewerOnMysqlWithContext and FilterDBDataByConditionTest and FilterDBDataByConditionTest for cann't drag schema to job
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83646 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-16 07:44:11 +00:00
hcyi
31ba7de29a bug TDQ-5232 fixed : some wizard of "Match Data Job" and "Deduplicate Data Job" are not correct in cheat sheet .
git-svn-id: http://talendforge.org/svn/tos/trunk@83643 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-16 07:21:32 +00:00
yyin
75bb04aaec TDQ-5190 issues for db2 zos connection.
TDQ-5350 Fix it on trunk: 3 problems: reload, create, gettables 

git-svn-id: http://talendforge.org/svn/tos/trunk@83628 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-16 06:13:44 +00:00
zpbai
4ed4024d0a Selenium MDM: fixed the problem without firefox path
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83625 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-16 06:06:10 +00:00
fgzhang
cdd33b66df QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83620 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-16 04:55:17 +00:00
nrousseau
cf1a7321a2 Modification: fix problems for junits, should not freeze anyomre
git-svn-id: http://talendforge.org/svn/tos/trunk@83618 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-16 04:21:50 +00:00
jyhu
5a145e88cb Fix Bug TDI-19077 : tMysqlSCDELT - component creates wrong(?) sql statements .
http://jira.talendforge.org/browse/TDI-19077 

git-svn-id: http://talendforge.org/svn/tos/trunk@83616 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-16 03:38:46 +00:00
fgzhang
c8d4ebdd22 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83615 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-16 03:27:51 +00:00
nrousseau
4701b0ff36 Modification: update debug messages
git-svn-id: http://talendforge.org/svn/tos/trunk@83612 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-16 02:37:55 +00:00
dfcao
2a64fcb588 SWTBot:Add test DocumentationForJobTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83610 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-16 01:52:59 +00:00
fgzhang
f696768e8e QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83607 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-16 01:23:34 +00:00
nrousseau
f33b94e719 bug TDI-21104 fixed: remove unusefull message box
git-svn-id: http://talendforge.org/svn/tos/trunk@83603 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-16 00:26:42 +00:00
fzhong
112dc99390 SWTBot QAI-9991 modification: modified tests about project management for could not get status of item and modified tests for clean up repository after import more items.
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83600 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 15:25:42 +00:00
zpbai
0fe4e9f275 Selenium MDM: fix the issue for IE
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83574 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 09:49:56 +00:00
zcui
e19f26aa58 selenium:reopen tests suits
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83564 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 09:06:42 +00:00
fgzhang
5c522b4c45 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83563 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 09:05:51 +00:00
zpbai
f3a9fd4bae Selenium MDM: add the feature to support IE
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83562 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 09:01:44 +00:00
fzhong
060f14dae2 SWTBot QAI-9991 modification: solve pb for could not drag&drop some metadatas to job
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83556 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 08:40:06 +00:00
dfcao
bc6ff59b2d SWTBot:modified test UpdataTheStatusOfEachItemTest for the didn't remove sap_connection
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83552 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 08:13:19 +00:00
zcui
005eb96efd selenium:remove some tests for mainly test dsc
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83551 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 08:05:48 +00:00
zcui
01927a93e7 selenium:update method createRecordImpl
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83546 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 07:46:57 +00:00
zcui
fd2285dda3 selenium:update updateRecordImpl
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83528 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 05:14:41 +00:00
zcui
d68bc49536 selenium:update method clickOKOnTaskSchemaCreatPanel
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83527 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 04:59:36 +00:00
zcui
9e76b341e7 selenium:update method duplicate record
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83526 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 04:56:44 +00:00
fgzhang
dfb357e610 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83521 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 04:15:24 +00:00
nrousseau
4db35512d9 bug TDI-19268 fixed: fix problems with proxy, reset all proxies directly before do anything.
git-svn-id: http://talendforge.org/svn/tos/trunk@83518 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 04:09:43 +00:00
dfcao
b4ccaa797f SWTBot:Modified test CopyMutiVersion and OpenOldVersion for cann't find the new version
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83500 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 02:41:44 +00:00
nrousseau
776f31c5b0 bug TDI-21104 fixed: upgrade jars needed for salesforce.
git-svn-id: http://talendforge.org/svn/tos/trunk@83493 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 02:17:50 +00:00
mwang
1ab7377254 For bug TDI-21058, when multi-threads access the object "dbtable", it will bring the concurrency problem. So I just add a synchronized block where the object "dbtable" is operated.
git-svn-id: http://talendforge.org/svn/tos/trunk@83491 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-15 01:46:07 +00:00
nrousseau
555b56857e bug TDI-21081 fixed: before All synonyms were only supported by Oracle SID. Do this by default for every oracle connection (as long as the option all synonyms is supported.
Fix another problems where columns where retrieved 2 times.

git-svn-id: http://talendforge.org/svn/tos/trunk@83469 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-14 10:27:01 +00:00
zshen
ae84cdf802 TDQ-4738 TDQ-5345 added one input dialog to input a new name of connection when create a connection by right click schema or catalog and have a same name exist.
git-svn-id: http://talendforge.org/svn/tos/trunk@83462 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-14 09:25:08 +00:00
zshen
c68b2ab21a TDQ-4738 TDQ-5345 added one input dialog to input a new name of connection when create a connection by right click schema or catalog and have a same name exist.
git-svn-id: http://talendforge.org/svn/tos/trunk@83461 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-14 09:23:42 +00:00
fgzhang
abc4eecf5b QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83455 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-14 09:04:42 +00:00
zpbai
3beb2362fc Selenium TAC: Update for using default firefox path
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83429 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-14 07:34:40 +00:00
zpbai
d29ba2fa33 Selenium MDM: using default firefox path
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83428 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-14 07:19:20 +00:00
fgzhang
f5f650cd8c QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83427 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-14 07:14:50 +00:00
fgzhang
187cba3900 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83426 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-14 07:12:07 +00:00
zpbai
effb90727f Selenium MDM: update for using default firefox path
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83422 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-14 07:03:24 +00:00
nrousseau
1a001edd26 Modification: Add an empty swtbot test case to run junits
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83415 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-14 05:51:36 +00:00
zpbai
a558b32643 Selenium TAC: set firefox path configurable
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83409 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-14 04:34:25 +00:00
mwang
81b6ec361f For bug TDI-21007, just fix the problem "IndexOutOfBoundsException", but still do not know how to reproduce te problem.
git-svn-id: http://talendforge.org/svn/tos/trunk@83402 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-14 03:42:34 +00:00
yyin
02eeadf900 TDQ-5241 run analysis get error for 'time' type of column
TDQ-5335 Fix it on trunk
  TDQ-5338 Test coverage


git-svn-id: http://talendforge.org/svn/tos/trunk@83401 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-14 03:35:08 +00:00
fgzhang
4532e58015 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83395 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-14 03:12:46 +00:00
zpbai
adcd14c5d3 Selenium MDM: make firefox path configurable
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83385 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-12 05:52:02 +00:00
zshen
be7b0eaef3 TDQ-4738 TDQ-5345 added one input dialog to input a new name of connection when create a connection by right click schema or catalog and have a same name exist.
git-svn-id: http://talendforge.org/svn/tos/trunk@83378 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 15:20:29 +00:00
zshen
8aafdd6c42 TDQ-4738 TDQ-5345 added one input dialog to input a new name of connection when create a connection by right click schema or catalog and have a same name exist.
git-svn-id: http://talendforge.org/svn/tos/trunk@83377 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 15:20:14 +00:00
sgandon
13ea3ffcf9 Studio Lock notification revamped. Removed syso.println
git-svn-id: http://talendforge.org/svn/tos/trunk@83367 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 12:33:31 +00:00
sgandon
66449658c9 Studio Lock notification revamped. Lots of refresh removed
git-svn-id: http://talendforge.org/svn/tos/trunk@83366 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 12:24:53 +00:00
fwang
8dd7862fa5 bug TDI-20844 fixed:Copy or Duplicate an item will lose the screenshot of original job
git-svn-id: http://talendforge.org/svn/tos/trunk@83338 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 08:55:24 +00:00
msjian
df14a7a1df TDQ-5021: fix the ConnectionUtilsTest with the mock mode
git-svn-id: http://talendforge.org/svn/tos/trunk@83325 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 08:01:59 +00:00
msjian
6af1f33bcc TDQ-5021: fix the ConnectionUtilsTest with the mock mode
git-svn-id: http://talendforge.org/svn/tos/trunk@83322 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 07:58:33 +00:00
xpli
fca4a66766 TESB-5883 The description of ContentBasedRouting is not correct
git-svn-id: http://talendforge.org/svn/tos/trunk@83321 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 07:34:40 +00:00
msjian
b34bd70182 TDQ-5021: fix the ConnectionUtilsTest with the mock mode
git-svn-id: http://talendforge.org/svn/tos/trunk@83313 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 06:52:51 +00:00
msjian
858e9a2716 TDQ-5021: fix the ConnectionUtilsTest with the mock mode
git-svn-id: http://talendforge.org/svn/tos/trunk@83309 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 06:00:44 +00:00
msjian
a838693be9 TDQ-5021: fix the ConnectionUtilsTest with the mock mode
git-svn-id: http://talendforge.org/svn/tos/trunk@83292 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 03:34:52 +00:00
qiongli
ebb5d131e7 TDQ-5250 TDQ-5317 change variable "confirmFromDialog" to proteced for DQ reuse.
git-svn-id: http://talendforge.org/svn/tos/trunk@83288 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 03:18:28 +00:00
yhbai
b689271b17 swtbot_tdq:modified the order of some cases and added some new cases
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83284 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 03:05:38 +00:00
fgzhang
5a3c8fa499 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83282 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 02:35:28 +00:00
fgzhang
8500868013 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83281 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 02:31:37 +00:00
xpli
78d1a3d4a7 TESB-5871 fix JMSConnectionFactory Demo Route issue
git-svn-id: http://talendforge.org/svn/tos/trunk@83276 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-11 01:31:18 +00:00
sizhaoliu
3ca178e068 fixed TDQ-4884: SQL Server 2008 via NTLM can't retrieve new schema
git-svn-id: http://talendforge.org/svn/tos/trunk@83272 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 15:47:58 +00:00
zpbai
b0a1fbcc33 Selenium TAC: disable warning for scripts
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83260 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 12:18:41 +00:00
fzhong
89e5bd0354 SWTBot QAI-758 modification: solve pb for could not get schema after retrieve schema of DB and solve pb for schema name with quotes in job
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83252 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 10:34:28 +00:00
zcui
5339ca15a9 selenium:expend test suits dsc
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83230 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 08:38:47 +00:00
xpli
fc8776c621 TESB-5866 Replace the cMessageEndpoint (log:OUT) by a cLog component
git-svn-id: http://talendforge.org/svn/tos/trunk@83229 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 08:32:50 +00:00
zcui
e8e6fdcb36 selenium:update method of typeStringUseRobot
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83228 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 08:28:58 +00:00
zcui
536a34d271 selenium:add delay time
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83226 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 08:05:38 +00:00
sgandon
51ab8cc8ac Fix Backlog Task TDI-20927 : BPMN in TUP : make bonita intialisation during login progress
http://jira.talendforge.org/browse/TDI-20927

git-svn-id: http://talendforge.org/svn/tos/trunk@83220 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 07:42:58 +00:00
xpli
216c1ccf6f TESB-5816 Check the spelling mistakes in the ESBDemo
git-svn-id: http://talendforge.org/svn/tos/trunk@83216 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 07:37:33 +00:00
fyan2
2a8f96f34a refactored test case
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83211 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 06:36:31 +00:00
fyan2
e0e0a33f96 QAI-9648
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83209 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 06:34:06 +00:00
fyan2
ea415822bb refactor test case
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83207 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 06:31:57 +00:00
cli
f3ce81bfe7 TDI-21006: replace dialog to use the log
git-svn-id: http://talendforge.org/svn/tos/trunk@83205 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 06:21:21 +00:00
zcui
f099bfeb41 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83197 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-05-10 05:21:42 +00:00
zcui
5fbe07c083 selenium:remove some test suits for mainly test agentrecord
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83196 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 04:34:48 +00:00
zcui
b834eef85d git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83195 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-05-10 04:33:28 +00:00
mwang
94db890e4b For bug TDI-21038. The nodes under metadata except DB node have the problems. Solution: Handle the copy for connection and metadata table before clicking "cancel".
Fixed nodes includes: Salesforce, Generic, LDAPS, WSDL, File Delimited, File Excel, File Ldif, File Positional, File Regex and File XML.

git-svn-id: http://talendforge.org/svn/tos/trunk@83186 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 02:42:47 +00:00
cli
e6dca8a530 modification: fixed the checkstyle error.
git-svn-id: http://talendforge.org/svn/tos/trunk@83185 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 02:41:40 +00:00
zcui
e1ad8acd64 selenium:update for method chooseRecord
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83178 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 01:47:49 +00:00
zcui
ada9c561c5 selenium:update for choose a record
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83177 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 01:38:00 +00:00
fgzhang
8931614770 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83176 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-10 01:37:34 +00:00
sgandon
898a8cdbf0 Fix Backlog Task TDI-20927 : BPMN in TUP : make bonita intialisation during login progress
http://jira.talendforge.org/browse/TDI-20927

git-svn-id: http://talendforge.org/svn/tos/trunk@83169 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 15:03:08 +00:00
zpbai
f1377f9b54 SWTBot DI: update the method for cleaning the created items
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83162 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 11:24:09 +00:00
fzhong
4af2fca18e bug QAI-758 fixed: SWTBot make tests successful for TOSBD, TOSDI build
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83158 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 10:28:53 +00:00
fyan2
bfe7619c29 QAI-9651
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83153 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 10:18:39 +00:00
cli
e245d3ecf0 TDI-21005: enhance the code for importing and filter function.
git-svn-id: http://talendforge.org/svn/tos/trunk@83149 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 09:58:31 +00:00
zcui
a5cbfac627 selenium:expend tests suits
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83136 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 08:39:09 +00:00
zcui
3154909a30 selenium:add delay time
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83131 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 08:17:16 +00:00
hcyi
615ab0c7f1 bug TDI-20810 fixed : Studio tXMLMap Component Bug: When tXMLMap imports the schema from the metadata , that it wrongly converts the numeric type into a string .
git-svn-id: http://talendforge.org/svn/tos/trunk@83130 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 08:13:11 +00:00
qiongli
19261c0ac5 TDQ-4986:export package "org.talend.core.repository.i18n" to resolve junit test problem.
git-svn-id: http://talendforge.org/svn/tos/trunk@83119 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 06:44:38 +00:00
xpli
960ffcd68a TESB-5854 Change "RecieveFromJMS" to "ReceiveFromJMS"
git-svn-id: http://talendforge.org/svn/tos/trunk@83118 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 06:43:56 +00:00
zcui
1da66bc6b1 selenium:expend tests suits
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83111 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 05:59:55 +00:00
zcui
8af00c24d0 selenium:add some time delay before click create button
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83110 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 05:39:38 +00:00
zcui
b4ba1525cc selenium:remove some tests suits
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83109 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 05:21:12 +00:00
zcui
661b8afd41 selenium:add delay after click create record button
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83108 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 05:20:35 +00:00
zcui
bc2e98f9bb selenium:update create record method
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83107 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 04:53:41 +00:00
zcui
7afaf3b6c8 selenium:remove some test suits
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83094 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 02:40:58 +00:00
fgzhang
fea336cd84 QAI-9156
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83087 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 01:41:55 +00:00
fyan2
e43a7ca7c3 QAI-9218 QAI-9385
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83086 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 01:41:01 +00:00
zcui
ded5a8a62e slenium:update method duplicate agency
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83085 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 01:39:16 +00:00
zpbai
685c0a8179 Selenium ESB: remove some useless code
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83084 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-09 01:34:09 +00:00
yhbai
63db8efd51 swtbot tdq-modified the case RSurvivorShipComponent
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83076 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 10:34:12 +00:00
fyan2
efacf269bf QAI-9385 QAI-9218
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83074 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 10:29:02 +00:00
zcui
4bb7da5b72 selenium:update method duplicate agency
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83068 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 10:01:32 +00:00
dbushenko
c518cd0292 git-svn-id: http://talendforge.org/svn/tos/trunk@83066 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-05-08 09:56:48 +00:00
zcui
87f24c0b07 selenium:update method enterJournal
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83062 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 09:34:38 +00:00
zcui
498e97e728 selenium:update method createRecordImpl
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83061 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 09:19:56 +00:00
zpbai
b7bab50039 Selenium MDM: Using the method of window.maxisize in the latest API
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83058 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 08:50:30 +00:00
rzubairov
bd10ce3abc TESB-5762: fixed Spelling mistakes in demo project
git-svn-id: http://talendforge.org/svn/tos/trunk@83057 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 08:21:20 +00:00
zpbai
387fe02ee4 Selenium MDM: fixed the problem for drag and drop item out of the window
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83049 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 06:15:58 +00:00
zcui
264488cbd8 selenium:open tests
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83045 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 05:31:19 +00:00
zcui
daaedc606d selenium:add delay for some tests
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83044 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 05:29:49 +00:00
zcui
bf029085b0 selenium:QAI-5134
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83043 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 05:28:30 +00:00
zcui
ab03bc73d8 selenium:QAI-5532
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83042 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 05:26:31 +00:00
fgzhang
b3163e0506 QAI-9166
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83041 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 05:23:35 +00:00
hcyi
b2ef267204 bug TDI-20915 fixed : Export_can't export the routines in reference project .
git-svn-id: http://talendforge.org/svn/tos/trunk@83013 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 02:39:07 +00:00
hjbai2
d8de4eceeb selenium:add test case delete to the recycle and restore from the recycle
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83010 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 02:14:08 +00:00
zpbai
52027982b3 Selenium MDM: Add the method to get size of firefox's window
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83003 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 01:40:41 +00:00
zcui
6baf223d4b selenium:add delay time for changeprice workflow
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83002 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 01:37:56 +00:00
zcui
1c84f33cf9 selenium:update changecommissioncode for delay time
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@83001 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-08 01:34:14 +00:00
ilazebny
b40fe5a305 Update jobserver version to 5.1.1 in poms
git-svn-id: http://talendforge.org/svn/tos/trunk@82998 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 16:17:29 +00:00
ilazebny
2604c8879d Update jobserver version to 5.1.1 in poms
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82985 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 11:39:32 +00:00
fzhong
68aa2ec472 SWTBot: modified tests for TOSBD did not include version management
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82974 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 10:26:03 +00:00
mwang
f172478ea1 For bug TDI-20939
git-svn-id: http://talendforge.org/svn/tos/trunk@82973 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 10:25:27 +00:00
fyan2
1efa44b4c7 refactor methods about get url
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82971 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 10:13:34 +00:00
yhbai
083801aeed modified these cases about some gui's change
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82970 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 10:11:24 +00:00
fyan2
e70e1da078 modified some cases
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82968 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 10:08:16 +00:00
zpbai
8506dd936e SWTBot: add more time for empty recycle bin
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82953 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 09:16:08 +00:00
fgzhang
83d901889f QAI-9097
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82946 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 08:58:00 +00:00
xqliu
34dc05d18f TDQ-5249 TDQ-5264 backport on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@82927 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 08:07:53 +00:00
zcui
c222ffc878 selenium:update method maxDataBrowserBoard
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82924 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 08:02:14 +00:00
wchen
0e06df7932 TDI-20910 fixed:Metadata_Can't successfully rename for Copybook,Saleforce,MDM,LDAP
git-svn-id: http://talendforge.org/svn/tos/trunk@82910 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 07:17:45 +00:00
yyin
582432566f TDQ-4959
git-svn-id: http://talendforge.org/svn/tos/trunk@82907 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 07:08:56 +00:00
hcyi
8cf71e3644 bug TDI-20943 fixed : No context menu for Sap Function and Sap idoc node .
git-svn-id: http://talendforge.org/svn/tos/trunk@82905 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 07:04:24 +00:00
zpbai
a8d7bfb602 SWTBot: A template way to fix the problem of empty recycle bin
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82903 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 06:56:13 +00:00
zcui
1d99e9aa8e selenium:update method maxArecordpanel
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82890 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 06:14:47 +00:00
fwang
0605b13274 bug TDI-21021 fixed:Problems with tAggregateRow
git-svn-id: http://talendforge.org/svn/tos/trunk@82878 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 05:46:02 +00:00
fwang
b1879ce11c bug TDI-20896 fixed:the same name of copy validate rule and duplicate validate rule
git-svn-id: http://talendforge.org/svn/tos/trunk@82873 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 05:35:11 +00:00
zcui
c3fafd585b Selenium MDM: remove useless import
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82860 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 04:09:43 +00:00
yyin
7f69d62b57 TDQ-4959 replace refrechDQView() with refreshDQView(Object)
TDQ-5266 fixed on trunk

git-svn-id: http://talendforge.org/svn/tos/trunk@82854 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 03:59:45 +00:00
zcui
ef86bfbda6 Selenium MDM: fixed the issue that couldn't drag and drop clumn
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82847 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 03:46:58 +00:00
cli
82e7abcc1b TDI-21005: fixed the importing item problem and the switching perspective problem.
git-svn-id: http://talendforge.org/svn/tos/trunk@82828 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 03:17:07 +00:00
plv
25b23c41fa bug TDI-20393 fixed:Retrieving schema fails on SQLServer on schema different from dbo
git-svn-id: http://talendforge.org/svn/tos/trunk@82826 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 03:13:38 +00:00
nrousseau
b58eb0e419 bug TDI-21014 fixed: fix problem with the document item from the repository.
git-svn-id: http://talendforge.org/svn/tos/trunk@82810 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-07 02:43:29 +00:00
zpbai
ca81f51682 Selenium MDM: Using the default setting for native events
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82788 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-06 01:33:14 +00:00
zcui
c4ce1182e4 selenium:QAI-7858
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82782 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-04 09:31:12 +00:00
fzhong
b619a17738 SWTBot: solve pb for Import/Export items fail on TOSDI and TOSBD build
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82771 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-04 06:44:09 +00:00
dfcao
accfe0ace7 SWTBot:modify test TalendDBItem for AddCDC when tables had exists
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82759 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-03 07:41:09 +00:00
fzhong
84882aedb0 SWTBot: modified pb for could not find active shell 'Problem Executing Operation' when creating item
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82750 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-03 05:22:04 +00:00
zpbai
c43efe2e8b SWTBot: Add the renamed folder to deleting list
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82749 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-03 04:41:59 +00:00
zpbai
06c2dad6fa SWTBot: Fixed the problem that when cleaning up created items will pop up a windows which says item couldn't be found
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82748 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-03 04:40:11 +00:00
zpbai
d0f646ea95 Selenium MDM: Enable Native Events of firefox profile
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82741 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-03 01:47:11 +00:00
fzhong
9d24e770ae SWTBot:
modified test about change database for difirent confirm modifiy dialog for TOS build and TIS build
modified method for change perspective

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82734 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-02 10:22:04 +00:00
nrousseau
405ac5425a bug TDI-20960 fixed: force the check of the name field after retrieve the list of the existing items.
git-svn-id: http://talendforge.org/svn/tos/trunk@82733 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-02 10:21:48 +00:00
zwzhao
26c38b5b8c bug TDI-20924 fixed : Project Settings --> Version Management is available in TOS BD
git-svn-id: http://talendforge.org/svn/tos/trunk@82730 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-02 09:49:22 +00:00
hwang
08b8cfdae1 TDI-20924:Project Settings --> Version Management is available in TOS BD
git-svn-id: http://talendforge.org/svn/tos/trunk@82729 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-02 09:49:22 +00:00
nrousseau
653c1180a5 Modification: avoid error in the logs for nothing for the junits
git-svn-id: http://talendforge.org/svn/tos/trunk@82724 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-05-02 05:20:22 +00:00
zpbai
f82a47658b Selenium MDM: Fix the problem of 'Warning Unresponsive script'
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82711 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-28 09:34:54 +00:00
zcui
1667e9f9fd selenium:update for workflow tests
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82710 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-28 08:35:14 +00:00
dfcao
e7872ad833 SWTBot:modify test UseCopybook for cann't find the row name
transform test UseLdapTest from tisstudio/metadata to tosstudio/metadata
       

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82706 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-28 07:12:35 +00:00
wchen
557863a300 bug TDI-20910 fixed :Metadata_Can't successfully rename
git-svn-id: http://talendforge.org/svn/tos/trunk@82703 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-28 06:36:04 +00:00
zcui
03e7c33868 selenium:update method changeCommissionCode
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82699 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-28 05:09:14 +00:00
fzhong
022f19351c SWTBot: modified pb for creating xml file metadata fail and modified tests about sql template fit for TOS BD
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82698 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-28 04:37:54 +00:00
zcui
5f0a329f2f selenium:update User.deleteUser
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82695 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-28 03:18:37 +00:00
zcui
47cdb653e8 selenium:update confiugre file
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82692 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-28 01:00:52 +00:00
zpbai
31242ad06b Selelnium MDM: Disable for script warning
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82688 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-27 11:04:49 +00:00
hjbai2
6c72cd7e77 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82680 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-04-27 09:15:49 +00:00
zcui
dc4f29dd35 selenium:
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82670 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-27 07:33:36 +00:00
zcui
b7015bffe6 selenium:update method to max record panel max
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82669 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-27 07:32:46 +00:00
dfcao
a7420d44a5 SWTBot:modify tests Utilities for shell is not close automatic
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82667 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-27 07:08:26 +00:00
dfcao
be66c6961e SWTBot:modify test GenerateAllDocTest for cann't find the node of Joblets and Job under the tree of Documentation
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82664 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-27 06:49:17 +00:00
hwang
b7348ea6be TDI-19373:fix bug <when create document, generate document root node again and again>
git-svn-id: http://talendforge.org/svn/tos/trunk@82663 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-27 06:44:40 +00:00
hjbai2
2f65dab03f selenium:change the drop method
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82662 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-27 06:39:14 +00:00
nrousseau
7daf0f694b Modification: fix problem when retrieve schema on salesforce.
git-svn-id: http://talendforge.org/svn/tos/trunk@82659 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-27 05:48:25 +00:00
zcui
9f3defe82d SELENIUM:update mdm license
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82657 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-27 04:37:51 +00:00
zcui
ea01349cb6 selenium:QAI-9230
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82656 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-27 04:31:02 +00:00
zcui
ad07b823c7 selenium:add case for d* demo change commission code workflow QAI-9230
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82652 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-27 01:55:16 +00:00
sgandon
1d591a7a46 Fix Bug TDI-20888 : edit joblet version need refresh repositoy,then updated
http://jira.talendforge.org/browse/TDI-20888
Also improved performance in the tree view and removed the Perspective Filter Menu

git-svn-id: http://talendforge.org/svn/tos/trunk@82646 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-26 16:06:00 +00:00
mwang
b4b135e4fd For bug TDI-20882
git-svn-id: http://talendforge.org/svn/tos/trunk@82633 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-26 11:14:02 +00:00
sgandon
fef6d4502a Fix Bug TDI-20646 : Visualization of ref projects is not correct in repository view
http://jira.talendforge.org/browse/TDI-20646
Forgot to commit some code
Fix Bug TDI-20862 : the button "merge ref" should not appear for project without refs
http://jira.talendforge.org/browse/TDI-20862
added a condition in the button visible expression

git-svn-id: http://talendforge.org/svn/tos/trunk@82624 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-26 09:23:32 +00:00
hcyi
ab14d8a684 bug TDI-20608 fixed: remained bugs releated to TDI-20504 .
git-svn-id: http://talendforge.org/svn/tos/trunk@82618 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-26 08:41:30 +00:00
ycbai
f1f6b47461 bug TDI-20712 fixed: tXMLMap: Import from repository fails with MDM
git-svn-id: http://talendforge.org/svn/tos/trunk@82598 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-26 06:29:36 +00:00
fgzhang
10b68996de QAI-9097
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82596 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-26 06:23:08 +00:00
zwzhao
af0c7c7413 Bug TDI-18366 fixed: Retrieve schema on hive connection throws null pointer exception
git-svn-id: http://talendforge.org/svn/tos/trunk@82592 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-26 06:16:12 +00:00
yhbai
bf840eb313 swtbot:modified some case about org.talend.swtbot.test.commons add some cases about etljob and analysis
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82577 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-26 01:59:56 +00:00
sgandon
4734c58ac8 Fix Bug TDI-20646 : Visualization of ref projects is not correct in repository view
http://jira.talendforge.org/browse/TDI-20646
Fix Bug TDI-20860 : Create jobs in remote project, jobs can not be shown under jobdesigner.
http://jira.talendforge.org/browse/TDI-TDI-20860

git-svn-id: http://talendforge.org/svn/tos/trunk@82572 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 16:45:41 +00:00
zpbai
4c0978c2f4 Selenium MDM: set the timeout for Warning of Unresponsive script
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82568 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 13:03:54 +00:00
sgandon
791a34c1b2 toom any refresh on ref projects
git-svn-id: http://talendforge.org/svn/tos/trunk@82562 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 12:31:40 +00:00
zpbai
a6c312acd2 Selenium MDM: open all MDM auto tests
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82559 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 12:09:13 +00:00
wchen
3938f7c4fd bug TDI-20858 fixed:<SVN Project>:Fail to deleted job with folder
git-svn-id: http://talendforge.org/svn/tos/trunk@82552 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 11:18:18 +00:00
qiongli
9ce2116877 TDQ-5226 TDQ-2699 handle db2 data type of "longvarchar/double/real".
git-svn-id: http://talendforge.org/svn/tos/trunk@82546 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 11:07:44 +00:00
dfcao
20ae49845d SWTBot:modify test DataViewerOnOutputPositionalTest for cann't find the file path
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82542 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 10:36:39 +00:00
fyan2
ccacddbe99 QAI-9236
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82536 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 10:21:28 +00:00
fyan2
7652c35654 QAI-9175 QAI-9228 QAI-9236
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82535 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 10:20:46 +00:00
fgzhang
0c6212a7f7 QAI-9097
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82528 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 09:59:47 +00:00
hjbai2
768276e2e7 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82523 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-04-25 09:30:56 +00:00
hjbai2
725b135f9f git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82522 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-04-25 09:29:55 +00:00
zwzhao
8e6392c9d7 bug TDI-20857 fixed : Fail to create a xml connection
git-svn-id: http://talendforge.org/svn/tos/trunk@82521 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 09:29:03 +00:00
zcui
d873fb9da8 selenium:update WorkFlowTask.sortTasksBydate
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82516 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 09:02:48 +00:00
fgzhang
fe65638909 QAI-9097
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82515 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 08:46:06 +00:00
cli
d0a1f48f13 TDI-20571: fixed the NPE.
git-svn-id: http://talendforge.org/svn/tos/trunk@82513 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 08:38:10 +00:00
fgzhang
1e178f1591 QAI-9097
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82511 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 08:09:40 +00:00
zcui
01c5a90eef selenium:add case for D* demo change commission code and approved QAI-9229
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82508 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 07:38:38 +00:00
mwang
bd30bece88 for bug TDI-20852, when closing the studio, an NPE happens. Means workbenchPage is disposed, so can not get the active page.
git-svn-id: http://talendforge.org/svn/tos/trunk@82502 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 07:12:02 +00:00
hjbai2
2c68d2e2fa selenium:add some test case QAI-9225
QAI-9226 


git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82493 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 06:39:27 +00:00
cli
ce5a34b5b7 TDI-20850: fixed the problem for esb view.
git-svn-id: http://talendforge.org/svn/tos/trunk@82491 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 06:35:51 +00:00
zpbai
b8dfd66a47 Selenium MDM: change port to 8180
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82490 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 06:30:58 +00:00
plv
7bf0b4e42c bug TDI-20750 fixed:after copy a job, open the job, and then the old version disapper.
git-svn-id: http://talendforge.org/svn/tos/trunk@82489 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 06:15:54 +00:00
zcui
29869ed457 selenium:QAI-9229
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82479 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 04:35:19 +00:00
fgzhang
895782ace7 QAI-9097
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82471 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 03:56:29 +00:00
hbhong
af48054bfc TMDM-3786:just fixed the EMF resource is inserted twice when importing items.
git-svn-id: http://talendforge.org/svn/tos/trunk@82469 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 03:51:31 +00:00
plv
4ca212c7bb bug TDI-20605 fixed:When I create a OracleDB connection,delete it,retrieve schema,the table apperance
git-svn-id: http://talendforge.org/svn/tos/trunk@82468 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 03:51:08 +00:00
zshen
fcc2d2b571 TDQ-5200 TDQ-5230 add some comment
git-svn-id: http://talendforge.org/svn/tos/trunk@82462 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 03:35:02 +00:00
zcui
64dc068278 selenium:QAI-9214
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82451 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-25 01:17:39 +00:00
nrousseau
bae12c4e14 move big data related plugins
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82449 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 17:36:39 +00:00
nrousseau
3e4b0aba48 Modification: fix a problem of duplicate for multi version items
git-svn-id: http://talendforge.org/svn/tos/trunk@82447 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 16:48:35 +00:00
nrousseau
9e941ec9a5 bug TDI-20388 fixed: set correct function when create the user (need review on webservice side)
git-svn-id: http://talendforge.org/svn/tos/trunk@82441 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 15:16:29 +00:00
nrousseau
8495ccc448 bug TDI-20549 fixed: review the fix for move items
git-svn-id: http://talendforge.org/svn/tos/trunk@82431 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 14:22:57 +00:00
mwang
8d6c51c5f2 For bug TDI-20571 to save editor when select a repository node.
git-svn-id: http://talendforge.org/svn/tos/trunk@82423 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 10:54:40 +00:00
scorreia
56dbc15589 i18n: synchronize Babili strings exported on 5.1.0RC1-2012-04-24-12-23-01
git-svn-id: http://talendforge.org/svn/tos/trunk@82417 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 10:35:50 +00:00
fzhong
68577c581c SWTBot: QAI-9197: improve tests about project management and add import method to Utilities
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82413 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 10:18:39 +00:00
fzhong
6dde673391 SWTBot: QAI-9199: solve pb for could not find finish button when creating xml file metadata and ldif file metadata
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82412 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 10:15:14 +00:00
fyan2
0481693f7c QAI-9176
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82408 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 10:10:19 +00:00
fgzhang
4aad0fea7a QAI-9097
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82406 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 10:05:35 +00:00
hjbai2
774961c154 selenium:add some test cases for QAI-9223 QAI-9227
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82405 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 09:59:42 +00:00
zcui
edeb799fd8 selenium:QAI-9214
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82394 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 09:20:39 +00:00
ycbai
7989b7457a bug TDI-20198 fixed: Remove refresh and filter button from old implementation of the view
git-svn-id: http://talendforge.org/svn/tos/trunk@82392 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 08:55:19 +00:00
zcui
b5dab630db selenium:modify clickElementByXpath
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82391 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 08:49:16 +00:00
zcui
69cca097ee selenium:QAI-9214
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82378 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 07:56:13 +00:00
zwzhao
e319c06a2d bug TDI-20714 fixed : Metadata XML file name not saved after the modification
git-svn-id: http://talendforge.org/svn/tos/trunk@82375 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 07:49:58 +00:00
ldong
dfa96237f7 Feature TDI-20362 added:Need create the i18n plugins for view plugins.
git-svn-id: http://talendforge.org/svn/tos/trunk@82374 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 07:48:28 +00:00
ldong
51ce31ff7b Feature TDI-20362 added:Need create the i18n plugins for view plugins.
git-svn-id: http://talendforge.org/svn/tos/trunk@82370 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 07:35:25 +00:00
rdubois
d6d4c267be TDI-20824 fixed: the IS_ALPHA routine were wrong if the last character (only) was a numeric
git-svn-id: http://talendforge.org/svn/tos/trunk@82364 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 06:21:25 +00:00
plv
3b2efa0154 bug TDI-20750 fixed:after copy a job, open the job, and then the old version disapper.
git-svn-id: http://talendforge.org/svn/tos/trunk@82363 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 06:12:53 +00:00
zwzhao
6fae8d7c15 bug TDI-20754 fixed : Oracle DB connection_when retrive schema, and select "All synonyms" and "select all", the studio will be in the status of non-responding
git-svn-id: http://talendforge.org/svn/tos/trunk@82362 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 06:00:25 +00:00
dfcao
755ee60d48 SWTBot:modify tests DataViewerOnAS400 for cann't retrieve shema --QAI-9163
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82360 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 04:59:46 +00:00
mwang
ababb9cdf7 For bug TDI-20571, resolve the problem that can not open the Rep View
git-svn-id: http://talendforge.org/svn/tos/trunk@82359 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 04:05:56 +00:00
zcui
38d4f6e80f selenium:update method clickElementByXpath()
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82355 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 03:35:22 +00:00
hjbai2
b1cf79956c selenium:QAI-9222
QAI-9221

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82351 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 03:28:40 +00:00
zcui
026732ad77 selenium:QAI-9214
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82349 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 03:20:31 +00:00
zcui
5d17aa48af selenium:remove some case in order to test product_demo
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82340 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-24 01:35:53 +00:00
hwang
f3bfe189eb TDI-20549:Fail to move items to a folder
git-svn-id: http://talendforge.org/svn/tos/trunk@82316 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 10:01:37 +00:00
fyan2
9929a852cc QAI-9174
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82313 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 09:47:18 +00:00
mwang
4340ea108a For bug TDI-20571, using CNF saveable protocol.
git-svn-id: http://talendforge.org/svn/tos/trunk@82310 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 09:46:28 +00:00
fyan2
f9af9dd9d0 QAI-9173
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82309 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 09:45:46 +00:00
fgzhang
fbbfc2d8f3 QAI-9097
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82302 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 09:28:34 +00:00
zwzhao
de5072d9bc bug TDI-20649 fixed : Secure file creation/modification in WorkspaceRunnable
git-svn-id: http://talendforge.org/svn/tos/trunk@82299 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 09:26:10 +00:00
zcui
805979ef35 selenium:update Login ,set timeout
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82297 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 09:24:45 +00:00
fgzhang
cdf6dc248a QAI-9097
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82284 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 08:44:36 +00:00
fgzhang
634e572d62 QAI-9097
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82269 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 07:53:27 +00:00
zcui
91a13c3234 selenium:add tests for dsc
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82267 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 07:48:23 +00:00
zcui
8aee0c68cd selenium:update method storeShowOnMapProcessImpl
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82266 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 07:45:26 +00:00
hjbai2
da2354abe1 selenium:add create/update test case in agency
QAI-9219 
QAI-9220 
 

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82260 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 07:31:55 +00:00
dfcao
530cc5ebf4 SWTBot:modify tests which are under "filter" folder for cann't find "activate filter" QAI-9178
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82253 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 07:01:02 +00:00
nrousseau
e0e1a55b3f bug TDI-20545 modified: remove the appears before for the metadata, since it cause conflict with TOP node as there is no documentation
git-svn-id: http://talendforge.org/svn/tos/trunk@82251 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 06:41:17 +00:00
fgzhang
e994b4d24c QAI-9097
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82248 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 06:22:50 +00:00
fzhong
a33fd83e35 SWTBot: QAI-9199, modified pb for creating file metadata fail.
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82238 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 05:58:11 +00:00
zcui
98f261db1b selenium:QAI-9212
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82236 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 05:56:18 +00:00
zcui
076fd9f0a3 selenium:update xpath
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82235 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 05:46:32 +00:00
nrousseau
473b9988ec Modification: avoid an error in the log for tos big data
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82233 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 05:17:31 +00:00
nrousseau
0ccfbaba75 Modification: set optional dependencies for top
git-svn-id: http://talendforge.org/svn/tos/trunk@82232 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 05:04:31 +00:00
zcui
3740418181 selenium:add case to test two ways to open work flow tasks QAI-9212
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82226 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 03:48:49 +00:00
hqzhang
87815b963c git-svn-id: http://talendforge.org/svn/tos/trunk@82223 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-04-23 03:17:09 +00:00
achen
e6ec2fdf77 TMDM-3767: mdm has CE/EE version demo project
git-svn-id: http://talendforge.org/svn/tos/trunk@82219 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 02:42:40 +00:00
achen
8756e270ad TMDM-3767: change the demo project name to MDMEEPRODUCTDEMO
git-svn-id: http://talendforge.org/svn/tos/trunk@82218 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 02:39:55 +00:00
zcui
aebcd3f1f9 selenium:QAI-9211
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82215 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-23 01:40:20 +00:00
zpbai
96fbf87fa0 SWTBot TDQ: Remove useless import.
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82187 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 11:53:53 +00:00
cli
d14ef84f25 TDI-19373: remove the unused codes
git-svn-id: http://talendforge.org/svn/tos/trunk@82177 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 10:22:32 +00:00
ycbai
61effc487b bug TDI-20657 fixed: Studio Repo View : changes the top buttons and svn description
git-svn-id: http://talendforge.org/svn/tos/trunk@82173 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 10:17:11 +00:00
ycbai
03213cf61b bug TDI-20657 fixed: Studio Repo View : changes the top buttons and svn description
git-svn-id: http://talendforge.org/svn/tos/trunk@82172 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 10:15:49 +00:00
fyan2
d53894ebee QAI-9173
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82171 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 10:14:19 +00:00
fyan2
0b70f8965d QAI-9172
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82168 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 10:13:11 +00:00
hqzhang
ee4cbe3ba7 bug TDI-20545 fixed: Need check the order of Repository Nodes.
move all the default navigator content extensions for  metadata to the plugin org.talend.repository.metadata

git-svn-id: http://talendforge.org/svn/tos/trunk@82167 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 10:12:39 +00:00
fgzhang
7810e83b53 QAI-9097
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82165 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 10:10:41 +00:00
hqzhang
385cd39b20 bug TDI-20545 fixed: Need check the order of Repository Nodes.
move all the default navigator content extensions for  metadata to the plugin org.talend.repository.metadata

git-svn-id: http://talendforge.org/svn/tos/trunk@82164 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 10:09:38 +00:00
zpbai
44285b606f Selenium MDM: Comment Video recorder
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82155 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 09:34:09 +00:00
hcyi
dc33a3c0e1 bug TDI-20726 fixed : Send different product names to registration webservice .
git-svn-id: http://talendforge.org/svn/tos/trunk@82147 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 09:07:22 +00:00
hcyi
79b1dd29da bug TDI-20726 fixed : Send different product names to registration webservice .
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82145 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 09:04:53 +00:00
cli
cbf5904696 TDI-20746: change to use the common viewer for the filter dialog.
git-svn-id: http://talendforge.org/svn/tos/trunk@82141 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 08:25:36 +00:00
plv
a8771e8e19 bug TDI-20605 fixed:When I create a OracleDB connection,delete it,retrieve schema,the table apperance
git-svn-id: http://talendforge.org/svn/tos/trunk@82137 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 08:04:47 +00:00
zcui
3d449e99e9 selenium:update QAI-9211
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82135 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 07:50:45 +00:00
ldong
b6addb0883 bug TDI-20178 fixed:Click "filter", "Route" appear under DI repository.
git-svn-id: http://talendforge.org/svn/tos/trunk@82131 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 07:02:56 +00:00
hjbai2
d7b06b65d6 selenium:update the record.java
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82126 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 06:47:30 +00:00
hjbai2
ae61c67a50 selenium:update the old test case about the product
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82119 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 06:14:44 +00:00
achen
546868d689 TMDM-3809: fix NPE while login CE
git-svn-id: http://talendforge.org/svn/tos/trunk@82114 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 05:40:53 +00:00
zcui
7f9e0c0b5b selenium:add case to test show foreign key info QAI-9211
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82111 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 05:26:20 +00:00
hjbai2
59ed4fab92 selenium:update the recordIMPLstore
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82103 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 03:17:42 +00:00
mwang
56482e2bcf For bug TDI-20744 just added IWorkspaceRunnable to run factory.run(item);
git-svn-id: http://talendforge.org/svn/tos/trunk@82102 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 03:14:52 +00:00
fgzhang
8e31bc7242 QAI-9097
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82100 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-20 02:29:05 +00:00
zpbai
b3814fdd13 Selenium MDM: Try to fix the problem that couldn't stop ScreenRecorder on Linux when met met
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82098 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 15:32:52 +00:00
zpbai
300ac25976 Selenium MDM: fixed the problem
When couldn't start video record that lots of tests will be skipped.

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82087 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 10:43:42 +00:00
zwzhao
a968cf43a0 bug TDI-18366 fixed : Retrieve schema on hive connection throws null pointer exception
git-svn-id: http://talendforge.org/svn/tos/trunk@82079 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 10:20:58 +00:00
fyan2
d97e9a031c QAI-9110
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82078 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 10:20:53 +00:00
fyan2
c7c99db53d QAI-9117
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82077 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 10:19:57 +00:00
qiongli
033a153270 TDQ-5162 TDQ-5130:if this file connection is depended by DQ analyses,should update these analyses when update schema.
git-svn-id: http://talendforge.org/svn/tos/trunk@82061 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 09:20:36 +00:00
qiongli
ceb70dbdc8 TDQ-5162 TDQ-5130:if this file connection is depended by DQ analyses,should update these analyses when update schema.
git-svn-id: http://talendforge.org/svn/tos/trunk@82060 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 09:20:07 +00:00
jsxie
90f66cbeb1 TMDM-3215:modify the the tos code to re-set mdm preference node
git-svn-id: http://talendforge.org/svn/tos/trunk@82054 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 08:48:12 +00:00
ycbai
e0529e2d4f bug TDI-20720 fixed: When Retrieve null schemas of DB JDBC error occurs
git-svn-id: http://talendforge.org/svn/tos/trunk@82052 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 08:40:31 +00:00
hjbai2
c435e81f3f selenium:update the test case store
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82050 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 08:26:42 +00:00
fgzhang
04328fab5d QAI-9097
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82040 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 07:47:23 +00:00
cli
1b10b8b379 TDI-20721: fixed the problem for export item.
git-svn-id: http://talendforge.org/svn/tos/trunk@82035 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 07:25:45 +00:00
hqzhang
21373d9d86 bug TDI-20600 fixed: Create folder and delete it ,then delete it from recycle bin again ,error occurs
git-svn-id: http://talendforge.org/svn/tos/trunk@82032 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 07:19:03 +00:00
hqzhang
0f43ed9b74 bug TDI-20600 fixed: Create folder and delete it ,then delete it from recycle bin again ,error occurs
git-svn-id: http://talendforge.org/svn/tos/trunk@82031 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 07:18:48 +00:00
hjbai2
24e0656cc5 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82029 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-04-19 07:11:16 +00:00
hjbai2
1018e263aa selenium:add some verify
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@82018 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 06:21:04 +00:00
fgzhang
58fc4c0ebc QAI-9097
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81990 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 02:59:27 +00:00
plv
3a300d392a bug TDI-20605 fixed:When I create a OracleDB connection,delete it,retrieve schema,the table apperance
git-svn-id: http://talendforge.org/svn/tos/trunk@81987 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 02:43:09 +00:00
nrousseau
c82326b656 bug TDI-20056 fixed: now when build a job, instead of simply keep the list of String of the jars needed, it will keep the object ModuleNeeded. So more easy to test later for OSGI and retrieve all the modules who are really needed to add as bundle or as lib.
git-svn-id: http://talendforge.org/svn/tos/trunk@81971 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-19 00:47:12 +00:00
zpbai
3a90604fb0 Selenium: comment the feature of recording video
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81970 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 17:07:35 +00:00
zpbai
395317615e Selenium: need parameter of testlink.id
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81968 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 15:49:18 +00:00
zpbai
7fe7282f00 Selenium: MDM
- Add the feature of generating the test results for importing the results into testlink
- Add the feature of recording video for each test case

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81959 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 12:51:09 +00:00
ycbai
21bef255d6 bug TDI-20606 fixed: When I create a OracleDB connection,export talbles later,error occured
git-svn-id: http://talendforge.org/svn/tos/trunk@81941 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 10:13:56 +00:00
hjbai2
0ad3552ca6 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81932 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-04-18 09:54:06 +00:00
cli
df26c2cf23 TDI-20695: remove the old repository view.
git-svn-id: http://talendforge.org/svn/tos/trunk@81921 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 09:17:20 +00:00
hjbai2
da4c0bcdce selenium:update the case
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81920 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 09:10:02 +00:00
hjbai2
849dd9aa93 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81915 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-04-18 08:54:57 +00:00
rdubois
cadd59e770 TDI-20599 fixed: Add the good type to HCatalog mapping types
git-svn-id: http://talendforge.org/svn/tos/trunk@81910 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 07:57:31 +00:00
achen
64ecf48ca9 TMDM-3767: add mdmproductdemo project in importing demo wizard
git-svn-id: http://talendforge.org/svn/tos/trunk@81905 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 07:24:23 +00:00
fzhong
c1a2c97983 SWTBot: QAI-758 modification: modified test TAggregateRowTest for changed widget and UpdateTableNameTest for get schema fail
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81890 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 06:12:49 +00:00
hjbai2
3218857d42 selenium:update the record.java
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81886 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 06:04:24 +00:00
fzhong
cb32d16980 SWTBot: QAI-758 modification: improve function for waiting refresh preview when creating file metadata
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81885 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 05:50:27 +00:00
zwzhao
5ecac52399 bug TDI-20537 fixed : tELTOracleMap : SQL generation doesn't interpet SQL functions correctly
git-svn-id: http://talendforge.org/svn/tos/trunk@81884 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 05:46:12 +00:00
hwang
ee999cd3b8 TDI-20656: Guess Schema doesn't work...
git-svn-id: http://talendforge.org/svn/tos/trunk@81878 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 04:02:48 +00:00
hwang
7f68edd187 TDI-20656: Guess Schema doesn't work...
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81877 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 03:59:13 +00:00
hjbai2
28d1eed5d2 selenium:update test case
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81875 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 03:35:49 +00:00
nrousseau
086d459a8c bug TDI-20716 fixed: fix retrieve schema for synonyms. it can retrieve synonyms with wrong columns in it.
git-svn-id: http://talendforge.org/svn/tos/trunk@81870 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 03:19:51 +00:00
hjbai2
e781f1524d selenium:update the test case
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81867 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-18 03:11:55 +00:00
xqliu
c5173d1cc6 TDQ-5118 TDQ-5172 modify the method "ResultSet org.talend.commons.utils.database.DB2ForZosDataBaseMetadata.getTables(String catalog, String schema, String tableNamePattern, String[] types) throws SQLException" to resolve this problem
git-svn-id: http://talendforge.org/svn/tos/trunk@81842 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 10:28:38 +00:00
hcyi
517a3682f5 bug TDI-20493 fixed : Vertica 5 Connector Does not Show Up in Connector Meta-data Section .
git-svn-id: http://talendforge.org/svn/tos/trunk@81840 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 10:25:11 +00:00
fyan2
e663e0102d QAI-7785
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81839 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 10:23:10 +00:00
hqzhang
12bed6ae42 bug TDI-20545 fixed: Need check the order of Repository Nodes
git-svn-id: http://talendforge.org/svn/tos/trunk@81829 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 10:04:17 +00:00
cli
df12348d35 TDI-20669: fixed the lost children
git-svn-id: http://talendforge.org/svn/tos/trunk@81812 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 08:38:09 +00:00
hcyi
f9f287befd bug TDI-20639 fixed : can't drag and drop mdm connection into a job .
git-svn-id: http://talendforge.org/svn/tos/trunk@81807 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 08:06:51 +00:00
zcui
bd540a9899 selenium:update launch_test.xml for server's port
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81804 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 07:27:27 +00:00
cli
22232a18c8 TDI-20569: add the content provider for generated doc folders
git-svn-id: http://talendforge.org/svn/tos/trunk@81802 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 07:24:35 +00:00
hcyi
3bdb04a4b1 bug TDI-20629 fixed : A lot of duplicate projects in project setting in version management and status management .
git-svn-id: http://talendforge.org/svn/tos/trunk@81777 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 05:39:31 +00:00
zcui
8d48021a75 selenium:add case for QAI-7465
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81757 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 03:03:54 +00:00
zcui
232530be68 selenium:add method clickCreateRecord()
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81751 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 02:34:46 +00:00
zcui
e4fbe3bac8 SELENIUM:UPDATE config file user.xml
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81746 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 02:19:40 +00:00
zcui
73838caa2e SELENIUM:add case for QAI-7910
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81745 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 02:18:08 +00:00
nrousseau
2df253f73d fix TDI-20653 TDI-20652 : update names and set module view by default
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81744 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 02:17:19 +00:00
ldong
167d02f560 Feature TDI-20505 improved:if Drag&drop a single table still create component with old system.
git-svn-id: http://talendforge.org/svn/tos/trunk@81743 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 02:14:27 +00:00
zcui
7db593793c selenium:update xpath of for add user over license
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81741 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 02:11:22 +00:00
fwang
2184c233f6 bug TDI-20305 fixed:Option "Save all" not working
git-svn-id: http://talendforge.org/svn/tos/trunk@81733 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 01:48:23 +00:00
hjbai2
595a98821c selenium:add the test case QAI-7906,and update QAI-7908 and QAI-7907
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81729 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-17 01:39:47 +00:00
fgzhang
f2eebe8d6d selenium:change parameters of svn'value
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81691 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-16 02:30:15 +00:00
sgandon
802985db61 Fix Bug TDI-20646 : Visualization of ref projects is not correct in repository view
http://jira.talendforge.org/browse/TDI-20646

git-svn-id: http://talendforge.org/svn/tos/trunk@81676 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-13 12:48:38 +00:00
mwang
3d54294153 For TDI-19914 to remote run.
git-svn-id: http://talendforge.org/svn/tos/trunk@81675 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-13 10:47:59 +00:00
zwzhao
a469039a90 bug TDI-20435 fixed : Fail to import job & jobscript together
git-svn-id: http://talendforge.org/svn/tos/trunk@81658 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-13 09:13:39 +00:00
sgandon
55c8d84087 Fix Backlog Task TDI-20618 : job edit properties,rename,finish,the name didn't change,it will be locked,reopen,it is blank
http://jira.talendforge.org/browse/TDI-20618
add workspace runnable

git-svn-id: http://talendforge.org/svn/tos/trunk@81655 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-13 08:52:18 +00:00
rdubois
d7c64d6512 Replace images for 5.1
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81647 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 14:27:46 +00:00
fwang
511033d5a4 bug TDI-20481 fixed:Need check for the Talend MDM repository node
git-svn-id: http://talendforge.org/svn/tos/trunk@81632 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 12:06:31 +00:00
nrousseau
8f67b7552d Modification: update JUnits, some tests not updated before, missing label for job
git-svn-id: http://talendforge.org/svn/tos/trunk@81627 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 11:42:45 +00:00
hwang
ba6af334c6 TDI-19916:Disable any property / schema builtin/repository
git-svn-id: http://talendforge.org/svn/tos/trunk@81624 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 11:04:30 +00:00
hcyi
004e099cb1 bug TDI-19089 fixed : Links in the welcome screen don't open in a browser window .
git-svn-id: http://talendforge.org/svn/tos/trunk@81621 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 10:50:14 +00:00
nrousseau
8984415d9d Modification: license update (took from jar)
git-svn-id: http://talendforge.org/svn/tos/trunk@81604 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 09:57:39 +00:00
zshen
7129ebd447 TDQ-5104 TDQ-5141 Remove easy mock jar, and refactoring related test classes. for org.talend.metadata.managment
git-svn-id: http://talendforge.org/svn/tos/trunk@81603 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 09:54:29 +00:00
fyan2
cacf7a2525 Modified QAI-7454
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81601 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 09:51:22 +00:00
zshen
1c9d43bb85 TDQ-5104 TDQ-5141 Remove easy mock jar, and refactoring related test classes. for org.talend.metadata.managment
git-svn-id: http://talendforge.org/svn/tos/trunk@81598 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 09:38:33 +00:00
hqzhang
3d2d9283e9 feature TDI-20504 commited: Import/Export on commandline should work as well with MDM items
git-svn-id: http://talendforge.org/svn/tos/trunk@81591 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 09:12:27 +00:00
hjbai2
d8a7c0dd94 selenium:update configure
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81590 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 09:05:43 +00:00
zwzhao
0f85315aae revert r81542 (bug TDI-20565 fixed : Fail to create a new routine)
git-svn-id: http://talendforge.org/svn/tos/trunk@81588 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 08:58:30 +00:00
hcyi
63c10beeac bug TDI-20547 fixed : Job locked automaticly after closed it .
git-svn-id: http://talendforge.org/svn/tos/trunk@81582 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 08:28:35 +00:00
xqliu
6f7d50cb19 TDQ-5141 remove easyMock from plugin "org.talend.commons.test"
git-svn-id: http://talendforge.org/svn/tos/trunk@81580 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 08:24:55 +00:00
zcui
58b2f34151 selenium:QAI-7909
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81578 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 08:21:49 +00:00
fgzhang
b6f859d6be QAI-7993
update and add xpath of configration
refactor cases of configuration

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81574 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 08:06:39 +00:00
hjbai2
5fbe91de84 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81572 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-04-12 07:56:46 +00:00
hjbai2
fff8215819 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81571 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-04-12 07:55:56 +00:00
fyan2
9ac132a022 modified QAI-7461
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81569 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 07:34:48 +00:00
dfcao
e7e2e349c2 SWTBot:modify test DataViewerOnOutputPositionalTest that cann't find CCombox
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81551 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 06:30:17 +00:00
dfcao
a4bc905ca9 SWTBot:modify Utilities the method of createTable
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81549 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 06:27:34 +00:00
hwang
d67360ddbf TDI-20549:Fail to move items to a folder
git-svn-id: http://talendforge.org/svn/tos/trunk@81547 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 06:23:59 +00:00
zcui
8859cc73f8 selenium:QAI-7909
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81543 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 05:58:51 +00:00
zwzhao
5afff27b4e bug TDI-20565 fixed : Fail to create a new routine
git-svn-id: http://talendforge.org/svn/tos/trunk@81542 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 05:47:17 +00:00
zcui
9a9d9d1efd selenium:add case test price change with valid ,not approved :QAI-7909
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81540 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 05:38:31 +00:00
nrousseau
d62a0ececb feature TDI-19914: update big data features to include oozie view
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81534 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 05:10:45 +00:00
zcui
f4a3a39fab selenium:update configure
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81532 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 05:08:17 +00:00
zcui
79607a9588 selenium:QAI-7909
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81530 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 04:56:24 +00:00
hjbai2
d5c25c4ca4 selenium:add the sleep time for some step .QAI-7908
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81528 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 04:46:54 +00:00
hjbai2
2ad98e3af1 selenium:add some search test cases about the all the view in the product container and product model. QAI-7908 Operations on Product records
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81524 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 03:23:23 +00:00
nrousseau
10c21323ac feature TDI-19909 modified: remove glassfish plugin, which is not really used
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81520 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-12 00:40:08 +00:00
mwang
8e8dc28222 For TDI-19914 to get the path from job
git-svn-id: http://talendforge.org/svn/tos/trunk@81479 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 10:58:13 +00:00
fyan2
41cd21a6de QAI-7785
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81478 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 10:47:02 +00:00
fyan2
b025c0d4c8 Implement QAI-7705 and QAI-7462
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81477 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 10:45:45 +00:00
dfcao
23cb9181fc SWTBot:add test DataViewerOnOracleSDCComponentsTest ---QAI-7413
add test FilterDBDataByConditionTest --QAI-8026
       add test FileterFileDataByConditionTest --QAI-8025

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81472 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 10:33:23 +00:00
dfcao
24d9ce7e89 SWTBot:modify that drop table when after test
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81471 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 10:30:34 +00:00
fzhong
3224dcbbbc SWTBot: add new tests about CDC, TDIQA-7419, TDIQA-7420, TDIQA-7421, TDIQA-7422, and modified some tests
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81466 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 10:18:20 +00:00
hjbai2
3570aa08fd selenium:add some test case about the product- create/update/duplicate/delete QAI-7908 Operations on Product records
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81464 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 10:13:48 +00:00
sgandon
af580a1235 Fix Bug TDI-20578 : TOS_BD shows metadata and business model
http://jira.talendforge.org/browse/TDI-20578

git-svn-id: http://talendforge.org/svn/tos/trunk@81460 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 10:06:58 +00:00
sgandon
32322ec9ef Fix Bug TDI-20578 : TOS_BD shows metadata and business model
http://jira.talendforge.org/browse/TDI-20578

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81460 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 10:06:58 +00:00
cli
92fb517a22 TDI-20544: remove the dependences view.di for view.esb.
git-svn-id: http://talendforge.org/svn/tos/trunk@81457 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 09:59:42 +00:00
plv
3a3d88a2a9 bug TDI-20436 fixed:Could not finish wizard of creating xml input after export as context
git-svn-id: http://talendforge.org/svn/tos/trunk@81452 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 09:28:15 +00:00
fgzhang
cd84a8dabb QAI-7993
selenium:
**Condifuration**
TestMenuDisplayBeforeAuthorizeAllRolesToAdmin---testMenuConfiguration()
  --change xpath of 'CommandLine/primary' and 'CommandLine/secondary'

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81446 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 08:19:19 +00:00
fgzhang
c67ee6240f QAI-7993
selenium:**Plan**
TestPlanPauseAndResume---testPlanPauseAndResume()
  --add refresh for check element trigger'pause status
TestChangeRootTaskNameOfPlan---testChangePlanRootTaskName()
  --click refresh button for mouse blur before mousedown plan 
TestAddTriggerAddFileTrigger---testAddTriggerAddFileTriggerModifyFalse()
  --change plan'status([OK]) of 'Planed task tree view'
TestAddTwoPlansCheckInformations---testCheckInformationsBetweenPlans()
  --change xpath of 'Information'

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81445 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 08:12:36 +00:00
zwzhao
0454b6cd50 bug TDI-20531 fixed : Unreasonable translatetiong when create a new "Service"
git-svn-id: http://talendforge.org/svn/tos/trunk@81441 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 07:58:56 +00:00
dfcao
ee14aa5949 SWTBot:the file for test DataViewerOnOutputPositionalTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81440 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 07:47:34 +00:00
cli
d88985296d TDI-20544: enable the perspective by default.
git-svn-id: http://talendforge.org/svn/tos/trunk@81435 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 07:26:23 +00:00
achen
d21666f69f TMDM-3522: set some private fields to protected
git-svn-id: http://talendforge.org/svn/tos/trunk@81415 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 06:17:21 +00:00
plv
a2cdc48701 bug TDI-20485 fixed:error message should show at the first step for file name exist when create File XML metadata
git-svn-id: http://talendforge.org/svn/tos/trunk@81405 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 05:34:07 +00:00
qiongli
f78f6f9d46 TDQ-5098 TDQ-4956:support chinese path when excute parse(String xmlFile).
git-svn-id: http://talendforge.org/svn/tos/trunk@81399 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 03:59:44 +00:00
ycbai
be6e730a39 feature TDI-20375 added: remove talend top buttons from palette view when open the bonita process editor.
git-svn-id: http://talendforge.org/svn/tos/trunk@81398 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 03:59:31 +00:00
zcui
d41a8a4bde selenium: add cases for task QAI-7909
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81392 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 03:24:33 +00:00
plv
25133711f5 bug TDI-20432 fixed:Metadata wizard:Fail to re-select a xml file
git-svn-id: http://talendforge.org/svn/tos/trunk@81390 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 02:59:22 +00:00
hjbai2
b24c572e5f selenium:change the test user from admin to the demo user (jennifer).the task is QAI-7908 Operations on Product records
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81385 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 02:24:12 +00:00
hjbai2
174b8cca73 selenium:change the test user from admin to the Demo user (jennifer).the task id is QAI-7907 Operations on ProductFamily records.
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81383 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-11 02:15:52 +00:00
sgandon
eff8f17b34 Fix Backlog Task TDI-20544 : Need check for ESB perspective.
http://jira.talendforge.org/browse/TDI-20544

git-svn-id: http://talendforge.org/svn/tos/trunk@81377 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 18:50:16 +00:00
fyan2
8ff003cab5 modified old and added new cases for esb conductor
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81357 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 10:52:26 +00:00
dfcao
59b8735ea8 SWTBot:Add metadata folder and move the case which are in component to it
Add test DataViewerOnOutputPositionalTest,DataViwerOnExcelTest,DataViewerOnLDIFTest,DataViewerOnWSDLTest,DataViewerOnFileMetadataWithContextTest,
       DataViewerOnMysqlWithContextTest,DataViewerOnLDIFTest
       modified  test Utilities that refactor the method of dataViewerOnDBComponents 
       
       

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81351 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 10:23:29 +00:00
cli
3d89522a55 TDI-20541: There are some problems for tooltip.
git-svn-id: http://talendforge.org/svn/tos/trunk@81349 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 10:04:29 +00:00
hjbai2
e859aec0b3 selenium:add the test case about the product
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81347 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 10:01:56 +00:00
fgzhang
9e39e1ff75 selenium:TaskUtils---changeCommandLineConfig()
--change xpaths of 'CommandLine/primary' and host'value
TestGenerateDeployRunStopPauseTaskResumeTask---testRunTaskOfItsProjectWithContainsSpaceChar()
  --add method of change commanline before execution case
  
**Plan**
AddPlan---testAddPlanAndCheckPlanInformation()
TestAddTwoPlansCheckInformations---testCheckInformationsBetweenPlans()
  --change xpath of 'Information'


git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81346 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 09:59:31 +00:00
cli
993fd9835d TDI-20542: fixed the problem for delete the folder.
git-svn-id: http://talendforge.org/svn/tos/trunk@81328 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 07:55:49 +00:00
cli
026982ae4a TDI-20542: fixed the problem when empty recycle bin.
git-svn-id: http://talendforge.org/svn/tos/trunk@81327 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 07:49:27 +00:00
hqzhang
648e390aff bug TDI-13613 reopened fixed: Guess Schema button should be disabled in schema based on file where the example file is no more availabe
git-svn-id: http://talendforge.org/svn/tos/trunk@81324 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 07:39:11 +00:00
cli
e7bba827e1 TDI-20242: enhance the codes for import/export item.
git-svn-id: http://talendforge.org/svn/tos/trunk@81310 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 07:03:44 +00:00
cli
e193ca3931 TDI-20541: disable it temp. will check it later.
git-svn-id: http://talendforge.org/svn/tos/trunk@81304 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 06:40:43 +00:00
fwang
d49dbe5abf bug TDI-20484 fixed:Fail to create a new job use create job button at the top of product menu
git-svn-id: http://talendforge.org/svn/tos/trunk@81303 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 06:40:36 +00:00
fgzhang
14d460c6c5 selenium:update cases:
change xpath of 'user.error.lastActiveAdmin' in messages_en_US.properties file	
change xpath of 'commandLine' in 'other_en_US.properties' file

TestAddProjectWithWrongSvnPassword---testAddProjectWithWrongPassword()
  --change prompt info of add project with wrong password
  

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81290 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 03:51:50 +00:00
hwang
b4401adfb0 TDI-20483:error shows in the error log when update the repository for metadata
git-svn-id: http://talendforge.org/svn/tos/trunk@81287 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 03:34:31 +00:00
cli
eb3ef6d53a TDI-20482: disable the extension point for repository view. because have done in codes manually.
git-svn-id: http://talendforge.org/svn/tos/trunk@81281 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 03:13:06 +00:00
ldong
e605a73f2e Feature TDI-20181 improved: fix a small bug.
git-svn-id: http://talendforge.org/svn/tos/trunk@81280 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 03:10:30 +00:00
hjbai2
62d0b5a11c selenium :add the product record test case
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81272 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 02:31:28 +00:00
cli
66b98c24b6 TDI-20482: fixed the miss plugin.properties.
git-svn-id: http://talendforge.org/svn/tos/trunk@81270 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 02:26:12 +00:00
hjbai2
3f9fe2b94c selenium:update the launch_tests
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81269 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 02:22:25 +00:00
hjbai2
268bff404b selenium:update the userImpl
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81264 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-10 01:31:53 +00:00
bchen
70f8c0dd15 Fix Bug TDI-17674 : diffDate() gives unexpected results on DST change
http://jira.talendforge.org/browse/TDI-17674
modified the name of method diffDateDST() to diffDateIgnoreDST()

git-svn-id: http://talendforge.org/svn/tos/trunk@81250 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-09 10:24:10 +00:00
hjbai2
3c3d7a4b5b selenium:done QAI-7907
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81235 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-09 09:42:13 +00:00
hwang
a988e5e4e3 TDI-20452:TAC- Audit is failing with a Could not execute JDBC batch update and Data truncation:ORA-12899: valeur trop grande pour la colonne "ETLTEST"."job"."DESCRIPTION" (réelle : 315, maximum : 255)
git-svn-id: http://talendforge.org/svn/tos/trunk@81224 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-09 09:06:01 +00:00
fzhong
170a329225 SWTBot: add new tests about CDC and modified test about using salesforce in job.
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81218 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-09 08:35:14 +00:00
fwang
a870b4c646 bug TDI-20233 fixed:when "export as context" while create a File Positional metadata, after finished, go back to edit the file positional metadata, error display and user can't edit it
git-svn-id: http://talendforge.org/svn/tos/trunk@81216 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-09 08:27:40 +00:00
cli
974f5f0b0d TDI-20482: Replace the old repository view and change to use the new CNF repository view.
git-svn-id: http://talendforge.org/svn/tos/trunk@81205 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-09 07:43:59 +00:00
hwang
8cd582f0b9 TDI-20452:TAC- Audit is failing with a Could not execute JDBC batch update and Data truncation:ORA-12899: valeur trop grande pour la colonne "ETLTEST"."job"."DESCRIPTION" (réelle : 315, maximum : 255)
git-svn-id: http://talendforge.org/svn/tos/trunk@81194 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-09 06:33:26 +00:00
zwzhao
b300c7d8b7 bug TDI-13355 fixed : create a joblet ,then exchange fromt "designer" to "jobscript" will throw error.
git-svn-id: http://talendforge.org/svn/tos/trunk@81189 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-09 06:09:45 +00:00
zshen
02731a738f TDQ-4917 TDQ-5009 modify code issue
git-svn-id: http://talendforge.org/svn/tos/trunk@81178 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-09 03:09:35 +00:00
hqzhang
ec2e79d0e3 bug TDI-20156 fixed: on linux, in the Create Database Connection wizard, select Teradata, don't show the "Use SQL Mode" options.
git-svn-id: http://talendforge.org/svn/tos/trunk@81173 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-09 02:49:39 +00:00
qiongli
27fedea33f TDQ-5019 create a new junit
git-svn-id: http://talendforge.org/svn/tos/trunk@81145 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 11:24:22 +00:00
nrousseau
07e823da0b feature TDI-20366: fix p2 dependency problems with datatools
git-svn-id: http://talendforge.org/svn/tos/trunk@81141 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 10:44:37 +00:00
hbhong
364e198da9 TMDM-3642:fixed RepositoryContentManager not cache the "IRepositoryContentHandler " result ,which can cause a lot of resourceSet be created when stuido is running.
git-svn-id: http://talendforge.org/svn/tos/trunk@81140 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 10:36:16 +00:00
zshen
69751e1cac TDQ-4917 TDQ-5033 remove some case which don't needn't and implement them with mock mode
git-svn-id: http://talendforge.org/svn/tos/trunk@81139 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 10:33:18 +00:00
zcui
88a06934c8 selenium:update cases about user
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81136 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 10:16:36 +00:00
hjbai2
bfb89b0de9 selenium:update the test case according the new product container
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81132 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 10:10:51 +00:00
plv
275b477408 bug TDI-20436 fixed:Could not finish wizard of creating xml input after export as context
git-svn-id: http://talendforge.org/svn/tos/trunk@81119 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 09:24:47 +00:00
fwang
1beb0a12ec bug TDI-20385 fixed:Studio Repo View : Generic metadata contextual menu in recycle bin is wrong
git-svn-id: http://talendforge.org/svn/tos/trunk@81108 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 08:30:32 +00:00
hwang
87bbda2178 TDI-19916:Disable any property / schema builtin/repository
git-svn-id: http://talendforge.org/svn/tos/trunk@81107 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 08:30:11 +00:00
nrousseau
3396aa7a36 feature TDI-20366: fix p2 dependency problems with datatools
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81098 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 07:40:41 +00:00
zpbai
0385943a62 Selenium: Add feature for downloading excel, zip file, and fixed the problem of downloading path for firefox profile
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81092 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 06:49:22 +00:00
zpbai
6633982a00 Selenium: fixed the problem of downloading excel file and setting the fixfox profile's default download path
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81088 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 06:33:51 +00:00
nrousseau
1cb2fd0ebb feature TDI-20366: fix features to remove the old datatools dependencies
git-svn-id: http://talendforge.org/svn/tos/trunk@81087 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 06:31:28 +00:00
nrousseau
288850262d feature TDI-20366: fix features to remove the old datatools dependencies
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81086 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 06:31:06 +00:00
zshen
8d5345e634 TDQ-4917 TDQ-5009 add the support to sql mode for teradata database
git-svn-id: http://talendforge.org/svn/tos/trunk@81077 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 05:35:16 +00:00
xqliu
dd1730a7e5 TDQ-4957 TDQ-5108 add a new method to test FilesUtils.getUUID(String)
git-svn-id: http://talendforge.org/svn/tos/trunk@81076 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 05:33:31 +00:00
plv
86021f18f4 bug TDI-20432 fixed:Metadata wizard:Fail to re-select a xml file
git-svn-id: http://talendforge.org/svn/tos/trunk@81069 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 03:33:47 +00:00
nrousseau
9ddb5e990a feature TDI-20366: remove old datatools plugins from svn
git-svn-id: http://talendforge.org/svn/tos/trunk@81065 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 03:00:41 +00:00
zshen
c93eae26c7 TDQ-4917 TDQ-5009 add the support to sql mode for teradata database
git-svn-id: http://talendforge.org/svn/tos/trunk@81055 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 02:26:59 +00:00
nrousseau
8b0739108b feature TDI-20366: review datatools integration in tos
git-svn-id: http://talendforge.org/svn/tos/trunk@81050 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-06 01:55:25 +00:00
zshen
facc906f6e TDQ-4917 TDQ-5009 add the support to sql mode for teradata database
git-svn-id: http://talendforge.org/svn/tos/trunk@81046 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-05 17:24:05 +00:00
nrousseau
981bae38c2 feature TDI-20366: review datatools integration in tos
git-svn-id: http://talendforge.org/svn/tos/trunk@81010 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-05 10:08:13 +00:00
fgzhang
323ff8799e selenium:update case:
Reference---multipleSameTimeReference()
         ---reference()
         ---failedReference()
 --change xpath of source project, the xpath is changed

update configuration file:
change parameter'values of project branch in 'project_reference.xml'

add methods:
User---addUser()
 --add method for add user
User---gotoUserPage()
 --add method for into user page
UserImpl---addUserImpl()
 --add method for add user
 
update methods:
Authorization---deleteAuthorization()
 --add method for del a autor
Authorization---setAuthorizationReadOnly()
 --add method for set auto to "read only"
Authorization---setAuthorizationReadAndWrite()
 --add method for set auto to "read write"
 
AuthorizationImpl---deleteAuthorizationImpl()
 --Delete an authorization(auto)
AuthorizationImpl---setAuthorizationReadOnlyImpl()
 --Turn an authorization to read-only(auto)
AuthorizationImpl---setAuthorizationReadAndWriteImpl()
 --Turn an authorization to read-write

add cases:
TestProjectAuthorization---testDeleteAuthorization()
 --Delete an authorization(auto)
TestProjectAuthorization---testSetAuthorizationReadOnly()
 --Turn an authorization to read-only(auto)
TestProjectAuthorization---testSetAuthorizationReadAndWrite()
 --Turn an authorization to read-write

add nodes of parameter and class in 'project_authorization.xml' file

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@81007 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-05 10:03:40 +00:00
ldong
d6d2bca176 Feature TDI-20181 improved:fixed a small bug about originalLength.
git-svn-id: http://talendforge.org/svn/tos/trunk@80999 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-05 09:45:20 +00:00
zcui
4322438fe3 selenium:update cases about users
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80987 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-05 09:03:17 +00:00
dfcao
c671453663 SWTBot: modified MetadataHelper that expand the validation tree
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80985 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-05 08:54:26 +00:00
plv
88fb324948 bug TDI-19844 fixed:Need to add the validation for tfileoutputmsxml and tAdvancedFileOutputXML in UI to avoid create elements with same xpath .
git-svn-id: http://talendforge.org/svn/tos/trunk@80970 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-05 07:12:46 +00:00
hwang
cba5a197ff TDI-19910:Remove all versioning from the studio
git-svn-id: http://talendforge.org/svn/tos/trunk@80963 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-05 05:59:59 +00:00
hwang
75f11dd275 TDI-19910:Remove all versioning from the studio
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80962 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-05 05:55:38 +00:00
zcui
fabf2317d0 selenium:remove test testAddUserAdminOverAllowed for bug exist
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80957 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-05 03:53:12 +00:00
hwang
160ada4ae9 TDI-20440:Gabage string instead of "Creaet job" icon on the product menu
git-svn-id: http://talendforge.org/svn/tos/trunk@80936 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-05 02:50:47 +00:00
sgandon
94d008cc3c Fix Backlog Task TDI-20354 : change svn look in the view
http://jira.talendforge.org/browse/TDI-20354
Add descriptor for svn projects

git-svn-id: http://talendforge.org/svn/tos/trunk@80926 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-04 14:25:20 +00:00
nrousseau
844f794685 TDI-20459 : remove GMF dependencies to main plugins (add missing classes)
git-svn-id: http://talendforge.org/svn/tos/trunk@80893 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-03 03:43:55 +00:00
nrousseau
e1234bcbc0 TDI-20459 : remove GMF dependencies to main plugins
git-svn-id: http://talendforge.org/svn/tos/trunk@80891 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-03 03:02:59 +00:00
nrousseau
564ffa1a70 TDI-20459 : remove GMF dependencies to main plugins
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80890 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-03 02:56:09 +00:00
amaumont
399c14fad8 merge r80878 from branch 5.0 to trunk
TDI-20225 Memory leak in TAC with item management in cache
=> SimpleCache update Constructor comment


git-svn-id: http://talendforge.org/svn/tos/trunk@80886 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-02 16:21:10 +00:00
amaumont
23d6411517 merge r80877 from branch 5.0 to trunk
TDI-20225 Memory leak in TAC with item management in cache
=> issue resolved
=> JUnit test added


git-svn-id: http://talendforge.org/svn/tos/trunk@80885 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-02 16:18:31 +00:00
fyan2
208475bc73 Refactor to selenium2
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80863 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 10:22:26 +00:00
fgzhang
851311e143 selenium:add methods:
ReferenceImpl---referenceMDMProToDIProReferenceImpl()
  --darg and drop a MDM'pro to DI'pro
ReferenceImpl---referenceMDMProToDQProReferenceImpl()
  --darg and drop a MDM'pro to DQ'pro
ReferenceImpl---referenceMDMProToMDMProReferenceImpl()
  --darg and drop a MDM'pro to MDM'pro
ReferenceImpl---referenceDQProToDQProReferenceImpl()
  --darg and drop a DQ'pro to DQ'pro
ReferenceImpl---referenceDIProToDIProReferenceImpl()
  --darg and drop a DI'pro to DI'pro
  
add cases:
TestProjectReference---testReferenceMDMProToDIPro()
  --darg and drop a MDM'pro to DI'pro
TestProjectReference---testReferenceMDMProToDQPro()
  --darg and drop a MDM'pro to DQ'pro
TestProjectReference---testReferenceMDMProToMDMPro()
  --darg and drop a MDM'pro to MDM'pro
TestProjectReference---testReferenceDQProToDQPro()
  --darg and drop a DQ'pro to DQ'pro
TestProjectReference---testReferenceDIProToDIPro()
  --darg and drop a DI'pro to DI'pro
  
add parameter nodes and class nodes to 'project_reference.xml' file

update method:
Project---deleteProject()

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80862 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 09:59:10 +00:00
cli
1f0313faf4 TDI-20376: add most of action provider for recycle bin.
git-svn-id: http://talendforge.org/svn/tos/trunk@80860 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 09:50:55 +00:00
xqliu
c66803ed8d TDQ-4957 TDQ-5065 modify the method FilesUtils.getUUID(String xmlFile) to resolve this bug
git-svn-id: http://talendforge.org/svn/tos/trunk@80857 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 09:41:19 +00:00
ldong
234e597413 Feature TDI-20181 improved:Modify the EMF model to be able to save original size of the column.
git-svn-id: http://talendforge.org/svn/tos/trunk@80855 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 09:39:25 +00:00
ldong
19c03d6f34 Feature TDI-20181 improved:Modify the EMF model to be able to save original size of the column.
git-svn-id: http://talendforge.org/svn/tos/trunk@80854 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 09:38:39 +00:00
msjian
ea35eeb61d TDQ-4794: update to source to jfreechart-1.0.12
git-svn-id: http://talendforge.org/svn/tos/trunk@80852 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 09:19:26 +00:00
hjbai2
4ec5d92ba2 selenium:update the test case about the journal record
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80848 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 08:18:57 +00:00
msjian
c6fa882377 TDQ-4794: update to jfreechart-1.0.12-expermental.jar, swtgraphics2d.jar,jfreechart-1.0.12-swt.jar, jcommon-1.0.15(jfreechart-1.0.12)
git-svn-id: http://talendforge.org/svn/tos/trunk@80844 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 08:06:01 +00:00
cli
998801328f TDI-20376: add most of action providers for DI.
git-svn-id: http://talendforge.org/svn/tos/trunk@80831 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 07:12:43 +00:00
wchen
e482a90033 bug TDI-20296 fixed: software update functionality does not work in Studio
git-svn-id: http://talendforge.org/svn/tos/trunk@80830 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 07:07:25 +00:00
zpbai
8753769d18 Selenium: restore org.talend.selenium.mdm.test
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80827 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 06:39:28 +00:00
zpbai
1279b593b0 Selenium: remove useless files
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80826 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 06:06:35 +00:00
zpbai
bc66089870 Selenium: remove useless committed files
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80825 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 06:00:11 +00:00
zpbai
45d0ed0082 Selenium: remove useless committed files
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80824 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 05:59:10 +00:00
zpbai
5e8adbc0f6 Selenium: Fixed the problem that double count for the failure tests
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80822 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 05:27:08 +00:00
fzhong
09f285565b SWTBot: modified tests about deleting folder and refactor tests about folder
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80818 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 04:05:48 +00:00
hwang
beb3ee5405 TDI-19909:Remove all "studio" LGPL jars from the build
git-svn-id: http://talendforge.org/svn/tos/trunk@80814 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 03:35:43 +00:00
hwang
b7efed9706 TDI-19909:Remove all "studio" LGPL jars from the build
git-svn-id: http://talendforge.org/svn/tos/trunk@80807 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 03:19:21 +00:00
hwang
98c02e1cf7 TDI-19909:Remove all "studio" LGPL jars from the build
git-svn-id: http://talendforge.org/svn/tos/trunk@80805 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 03:13:23 +00:00
hwang
a7eb9ee714 TDI-19909:Remove all "studio" LGPL jars from the build
git-svn-id: http://talendforge.org/svn/tos/trunk@80801 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 02:53:01 +00:00
fgzhang
917ebbbd1f selenium:change parameter in method(testReferenceDIProToDQPro)
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80800 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 02:46:31 +00:00
fgzhang
e2e0d89d33 selenium:update method:
Reference---failedReference()
  --change xpath of targetProject
add parameter nodes and class nodes to 'project_reference.xml'

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80798 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 01:50:02 +00:00
fgzhang
c8342f3199 selenium:add methods:
ReferenceImpl---referenceDIProToDQPro()
  --darg and drop a DI'pro to DQ'pro
             ---referenceDQProToDIPro()
  --darg and drop a DQ'pro to DI'pro
             ---referenceMDMProToDQPro()
  --darg and drop a MDM'pro to DQ'pro
             ---referenceMDMProToDIPro()
  --darg and drop a MDM'pro to DI'pro  
             ---levelRestrictionReferenceImpl
  --Drap n' drop is enabled only on project at level 1 (directly under type node)

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80797 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 01:47:42 +00:00
fgzhang
6f9ff764d9 selenium:add cases:
testLevelRestriction()
  --Drap n' drop is enabled only on project at level 1 (directly under type node)
testReferenceDIProTODQPro()
  --darg and drop a DI'pro to DQ'pro
testReferenceDQProToDIPro()
  --darg and drop a DQ'pro to DI'pro
testReferenceMDMProToDQPro()
  --darg and drop a MDM'pro to DQ'pro
testReferenceMDMProToDIPro()
  --darg and drop a MDM'pro to DI'pro  

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80796 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 01:47:00 +00:00
zcui
7cc67bdb25 selenium:add cases testUserLoginWithNewRole
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80795 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-04-01 01:22:05 +00:00
zpbai
eaa2010f20 SWTBot: update the feature for deleting created folders
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80794 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-31 16:10:29 +00:00
yhbai
fcada75608 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80792 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-03-31 10:18:36 +00:00
fyan2
bf09fc5020 refactor case for ESB Conductor
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80791 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-31 10:16:21 +00:00
ycbai
5e8c644013 feature TDI-20313 added: When import an XSD in the tXmlMap it should set optional automatically.
git-svn-id: http://talendforge.org/svn/tos/trunk@80774 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-31 08:48:32 +00:00
hjbai2
f27362830d selenium:add a auto test case about the journal
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80772 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-31 08:08:13 +00:00
zcui
fcff1d6bc2 selenium:add case of user:add user with customized role
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80771 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-31 08:03:03 +00:00
qiongli
8bec98bee6 TDQ-5032 TDQ-4773:Optimize code(avoid NPE for junit test).
git-svn-id: http://talendforge.org/svn/tos/trunk@80755 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-31 04:17:26 +00:00
msjian
feb77af161 TDQ-4794 modify the dependency of jfreechart.jar, update to 1.0.12
git-svn-id: http://talendforge.org/svn/tos/trunk@80752 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-31 04:00:09 +00:00
ycbai
01d2266072 bug TDI-20320 fixed: In reference project, choose any item, click edit properties can change the status and save successfully.
git-svn-id: http://talendforge.org/svn/tos/trunk@80748 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-31 03:56:38 +00:00
yyin
cd9c6b40cf TDQ-4929 : the genereated job can not run successfully by "remove duplicate" for columlns contains "()"
TDQ-5017: fixed it on trunk.

git-svn-id: http://talendforge.org/svn/tos/trunk@80747 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-31 03:52:28 +00:00
sgandon
ce1640bdae Fix Backlog Task TDI-20354: change svn look in the view
http://jira.talendforge.org/browse/TDI-20354
created a talend tool bar and adding svn, refresh and filter button

git-svn-id: http://talendforge.org/svn/tos/trunk@80742 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-30 15:51:12 +00:00
cli
b91fefb62a TDI-20198:add the activing filter in the toolbar
git-svn-id: http://talendforge.org/svn/tos/trunk@80720 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-30 09:56:32 +00:00
hqzhang
64e4834d3d Bug TDI-13613 fixed: Guess Schema button should be disabled in schema based on file where the example file is no more available.
The final solution is, do not disable the guess schema button, just prompt a message to tell users that file does not exist.

git-svn-id: http://talendforge.org/svn/tos/trunk@80713 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-30 09:10:16 +00:00
cli
a48cbef2f5 TDI-20257: remove the action provider to view.di.
git-svn-id: http://talendforge.org/svn/tos/trunk@80707 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-30 08:53:32 +00:00
achen
21fa370937 TMDM-3665:rename project name
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80703 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-30 08:40:27 +00:00
achen
dfab81fc77 TMDM-3665 rename project name
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80701 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-30 08:28:32 +00:00
fyan2
56c8b16b13 added test cases for ESB Condutor
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80694 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-30 07:44:10 +00:00
fyan2
a7f1c57053 Added test cases for ESB Conductor
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80690 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-30 07:27:21 +00:00
hcyi
a241d34c35 bug TDI-19971 fixed : Can not use context variables of type "Document" .
git-svn-id: http://talendforge.org/svn/tos/trunk@80687 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-30 07:16:03 +00:00
fyan2
9e14345e1c git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80682 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-03-30 07:08:00 +00:00
cli
0d8af8c63d TDI-20257: remove the dependencies for the org.talend.repository.
git-svn-id: http://talendforge.org/svn/tos/trunk@80681 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-30 07:01:12 +00:00
ldong
eeb2ddcc05 Feature TDI-20361 added:Need GUI team another support with schema originalType.
git-svn-id: http://talendforge.org/svn/tos/trunk@80672 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-30 06:17:52 +00:00
ldong
3b6d240898 Feature TDI-20361 added:Need GUI team another support with schema originalType.
git-svn-id: http://talendforge.org/svn/tos/trunk@80671 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-30 06:12:59 +00:00
qiongli
1a25712f74 TDQ-5008 TDQ-4773 remove SQL Explorer only when it is confirmded to physical delete.
git-svn-id: http://talendforge.org/svn/tos/trunk@80666 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-30 05:46:28 +00:00
hjbai2
bb5eaaca25 seleniumt:update the locator_en_us.properties
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80655 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-30 03:07:27 +00:00
achen
5cf6059b0b TMDM-3665:SWTBot test project refresh
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80654 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-30 02:47:22 +00:00
sgandon
1c4841a320 Fix Backlog Task TDI-20354: change svn look in the view
http://jira.talendforge.org/browse/TDI-20354
created a svn button in the toolbar

git-svn-id: http://talendforge.org/svn/tos/trunk@80651 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 16:58:32 +00:00
fyan2
97f7b19e0c Modified method of addConductor
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80641 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 10:48:33 +00:00
fyan2
60285db66f refactor some test cases for the change of ESB conductor
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80639 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 10:31:59 +00:00
zcui
f36c778a84 selenium:update login.xml
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80638 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 10:16:51 +00:00
hwang
546c1f897e TDI-19909:Remove all "studio" LGPL jars from the build
git-svn-id: http://talendforge.org/svn/tos/trunk@80630 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 09:39:18 +00:00
fyan2
e2e146113f git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80628 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-03-29 09:28:42 +00:00
hwang
45502160db TDI-19909:Rename old test plugin according to new changes
git-svn-id: http://talendforge.org/svn/tos/trunk@80627 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 09:27:15 +00:00
hjbai2
df6962d399 selenium:update the test case about record
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80623 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 07:35:58 +00:00
nrousseau
7340070277 feature TDI-19909: fix problems with features and remove dependency to old library not used anymore
git-svn-id: http://talendforge.org/svn/tos/trunk@80619 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 06:28:44 +00:00
zcui
5075443ab9 selenium:add case TestWelcomePage
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80618 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 06:17:49 +00:00
zcui
a5957fc4c4 selenium:add case TestWelcomePage
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80617 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 06:17:14 +00:00
fgzhang
3211c56c01 selenium:add two suite of 'project_authorization' and 'project_reference'
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80613 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 05:58:27 +00:00
fgzhang
56f7274173 selenium:change cases execution order
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80611 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 05:46:50 +00:00
fgzhang
a3ea962fc2 selenium:change xpath of source pro in method(reference)
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80610 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 05:45:36 +00:00
hwang
b7582eda19 TDI-19909:Remove all "studio" LGPL jars from the build
git-svn-id: http://talendforge.org/svn/tos/trunk@80608 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 05:32:49 +00:00
hwang
1b824eb66d TDI-19909:Remove all "studio" LGPL jars from the build
git-svn-id: http://talendforge.org/svn/tos/trunk@80597 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 03:12:56 +00:00
ycbai
ccdd751618 bug TDI-20204 fixed: creating XML metadata from XSD file
git-svn-id: http://talendforge.org/svn/tos/trunk@80592 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-29 02:14:21 +00:00
sgandon
73e660af0a Fix Backlog Task TDI-20376 : create action providers for all content providers
http://jira.talendforge.org/browse/TDI-20376
Change the global treenavigator action provider to action provider related to content provider.

git-svn-id: http://talendforge.org/svn/tos/trunk@80581 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 16:43:48 +00:00
sgandon
c032cf4643 Fix Backlog Task TDI-20198 : Remove refresh and filter button from old implementation of the view
http://jira.talendforge.org/browse/TDI-20198
fixed the plugin.xml to make the refresh button re-appear.

git-svn-id: http://talendforge.org/svn/tos/trunk@80580 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 14:19:03 +00:00
zpbai
899e924bbc Selenium: rename configuration file's name.
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80576 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 12:20:34 +00:00
fzhong
8d7766c137 SWTBot: add new cases for CDC and fixed some tests for database and context
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80572 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 10:26:00 +00:00
fgzhang
f77a2a2d25 selenium:TestProjectReference---testDeleteRefProDisplay()
--delete a reference project 
                    ---testRefBranchToTrunk()
  --refencece branch to other trunk                  
                    ---testRefBranchToBranch()
  --refencece branch to other branch                  
                    ---testRefTrunkToBranch()
  --refencece trunk to other branch      

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80569 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 10:13:03 +00:00
fgzhang
4ade37cc01 selenium:change method(selectDropDownList)
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80567 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 10:09:36 +00:00
fgzhang
3af236d67c selenium:add test nodes and parameter nodes
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80566 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 10:08:49 +00:00
fgzhang
fbe48525fc selenium:***---***project
Project---addBranch()
  --add method for add branch
project---deleteBranch()
  --add method for delete a branch  
***---***reference
Reference---checkRefProDisplay()
  --add method for check delete a refernce project

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80564 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 10:02:52 +00:00
fgzhang
db25e19cc9 selenium**--**projectImpl
ProjectImpl---addBranchProjectImpl()
  --add method for add branch
           ---deleteBranchProjectImpl()
  --add method for delete a branch  
ReferenceImpl---deleteRefproDispalyReferenceImpl()
  --add method for delete a branch  
             ---referenceBranchToTrunkReferenceImpl()
  --add method for refencece branch to other trunk           
             ---referenceBranchToBranchReferenceImpl()
  --add method for refencece branch to other branch  
             ---referenceTrunkToBranchReferenceImpl()
  --add method for refencece trunk to other branch  

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80563 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 10:02:23 +00:00
dfcao
1d0fdcc363 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80562 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-03-28 09:59:19 +00:00
dfcao
fff581f23c SWTBot: modified test filterItemsTest that unselect routines
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80561 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 09:58:01 +00:00
fgzhang
cc8f30854c selenium:update case:
***---****plan:
TestAddTriggerAddFileTrigger---testAddTriggerAddFileTriggerExist()
  --change file path of create file

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80559 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 09:53:19 +00:00
fgzhang
c1ce317f6b selenium:update all xpath
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80558 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 09:52:16 +00:00
fgzhang
a49ec8f345 selenium:***----****configuration:
update configuration:
change xpath of all items in configuration

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80557 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 09:51:51 +00:00
fgzhang
173de6cc4c selenium:update cases:
***---****task:
testRemoveTaskWithComplicatedItems()
 --add a waittime after save filetrigger
TestGenerateDeployRunStopPauseTaskResumeTask---testGenerateTask()
                                            ---testDeployTask()
                                            ---testGenerateTaskWithLatestJob() 
                                            ---testDeployTaskWithLatestJob()
                                            ---testAddSimpleTriggerToGeneratingTask()
                                            ---testGenerateTaskUsingRemoteWrongCommandLine()
TestCheckRegenerateTask---testCheckRegenerateTask()
 --add refresh after click generate and deploy
TaskUtils---changeCommandLineConfig()
 --change xpath of comandlinehost/input
TestAddTriggerAddFileTrigger---testAddTriggerAddFileTriggerAddExist()
 --add refresh after add filetrigger check exist


git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80556 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 09:51:23 +00:00
hwang
8a546289ce TDI-19909:Remove all "studio" LGPL jars from the build
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80553 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 09:25:50 +00:00
hwang
400c5d1542 TDI-19909:Remove all "studio" LGPL jars from the build
git-svn-id: http://talendforge.org/svn/tos/trunk@80551 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 09:12:39 +00:00
bchen
ff8f2ccd7a Fix Bug TDI-17674 : diffDate() gives unexpected results on DST change
http://jira.talendforge.org/browse/TDI-17674
add new diffDateDST() operation to calculate the difference between two dates consider DST

git-svn-id: http://talendforge.org/svn/tos/trunk@80548 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 09:07:58 +00:00
wchen
7c7b4f1187 bug TDI-20192 fixed:MDMInput - Unable to retrieve MDM Entities
git-svn-id: http://talendforge.org/svn/tos/trunk@80544 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 08:42:18 +00:00
bchen
151444eb32 Fix Bug TDI-17674 : diffDate() gives unexpected results on DST change
http://jira.talendforge.org/browse/TDI-17674
add new diffDateDST() operation to calculate the difference between two dates consider DST

git-svn-id: http://talendforge.org/svn/tos/trunk@80540 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 08:22:50 +00:00
hjbai2
91904a82f0 selenium :add some test cases about the record, include create/delete/update/search/duplicate/restore the record from the recycle
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80539 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 08:13:58 +00:00
ldong
3761f68796 Feature TDI-20181 added:Modify the EMF model to be able to save original size of the column.
git-svn-id: http://talendforge.org/svn/tos/trunk@80536 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 07:44:15 +00:00
hwang
0b673706c0 TDI-19909:Remove all "studio" LGPL jars from the build
git-svn-id: http://talendforge.org/svn/tos/trunk@80534 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 07:36:42 +00:00
ldong
f2307877f4 Feature TDI-20181 added:Modify the EMF model to be able to save original size of the column.
git-svn-id: http://talendforge.org/svn/tos/trunk@80533 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 07:36:00 +00:00
cli
1470d27cb2 TDI-20198: remove the refresh and filter action to ActionBar.
git-svn-id: http://talendforge.org/svn/tos/trunk@80529 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 07:25:38 +00:00
mwang
f17ce0adf8 for bug TDI-19166
git-svn-id: http://talendforge.org/svn/tos/trunk@80507 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 05:54:53 +00:00
ldong
6b958e6fb8 bug TDI-20245 fixed:the file settings is inconsistent when edit the EBCDIC connection.
git-svn-id: http://talendforge.org/svn/tos/trunk@80478 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 03:00:35 +00:00
zcui
6ac55ab596 selenium:update license
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80473 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 02:52:21 +00:00
zcui
ce501c44df selenium:add cases of license and login for mdm
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80472 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 02:51:02 +00:00
zcui
c429028f61 selenium:add cases of license and login for mdm
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80471 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 02:50:00 +00:00
hcyi
ded5a3738b bug TDI-20317 fixed : in configure contexts, new a context, close directly will add a null-name one .
git-svn-id: http://talendforge.org/svn/tos/trunk@80448 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 02:03:28 +00:00
hcyi
9e58f2e13a bug TDI-19971 fixed : Can not use context variables of type "Document" .
git-svn-id: http://talendforge.org/svn/tos/trunk@80442 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-28 01:56:40 +00:00
ycbai
8be80f8f2d bug TDI-20063 fixed: DB connection_Some garbage strings on File XML retrieve schema page.
git-svn-id: http://talendforge.org/svn/tos/trunk@80402 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-26 07:40:50 +00:00
nrousseau
a7dcc60b01 Modification: fix a problem of NPE appears only in the repository view for the build TOS BD.
git-svn-id: http://talendforge.org/svn/tos/trunk@80379 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-23 10:16:56 +00:00
dfcao
6e64e1cac4 SWTBot: add DataViewerOnFileDelimitedTest,DataViewerOnRegexTest,DataViewerOnXMLTest,
refactor the dataViewer of Utilites which is used by DataViewerOnDatabasesComponentsTest ,DataViewerOnFilesComponentsTest and DataViewOnLadpTest


git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80344 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-22 10:21:58 +00:00
zpbai
1d06b4a445 Selenium: update the global configuration file
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80334 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-22 10:06:28 +00:00
fgzhang
2447abe76e selenium:add file for test project reference
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80328 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-22 09:10:14 +00:00
fgzhang
431bc036a6 selenium:add method(selectDropDownList) for drop-down list
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80326 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-22 08:57:53 +00:00
wchen
a5806c7cc3 bug TDI-19883 fixed : revert the fix 79614
git-svn-id: http://talendforge.org/svn/tos/trunk@80300 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-22 07:07:40 +00:00
cli
4791322829 TDI-20257: refactor and remove the org.talend.core first.
git-svn-id: http://talendforge.org/svn/tos/trunk@80286 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-22 05:56:08 +00:00
cli
79d01ca00a TDI-20197: fixed the NPE for getLable on ProjectRepositoryNode.
git-svn-id: http://talendforge.org/svn/tos/trunk@80285 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-22 05:46:03 +00:00
mwang
486c35ffa8 For bug TDI-19166, added three testing flows to verify
git-svn-id: http://talendforge.org/svn/tos/trunk@80276 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-22 03:52:06 +00:00
cli
b4683b2546 TDI-20256: disable it on trunk only temp.
git-svn-id: http://talendforge.org/svn/tos/trunk@80273 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-22 03:37:49 +00:00
sgandon
497818d0e9 Fix New Feature TDI-19373 : Studio : Repository view, only one view should exist for all products
http://jira.talendforge.org/browse/TDI-19373
fixed db connection bug, Query, views and synonyme where not shown

git-svn-id: http://talendforge.org/svn/tos/trunk@80254 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-21 16:18:52 +00:00
scorreia
4e839b19f2 i18n: synchronize Babili strings exported on 5.1.0M1-2012-03-21-15-10-59
git-svn-id: http://talendforge.org/svn/tos/trunk@80250 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-21 14:16:18 +00:00
wliu
bb69995bc7 Fix Feature TDI-18966: when setting optional on the input loop node, then the loop nodes can be unavailable in the source file.
http://jira.talendforge.org/browse/TDI-18966

git-svn-id: http://talendforge.org/svn/tos/trunk@80240 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-21 11:07:21 +00:00
sizhaoliu
44c0e87df5 TDQ-4823 TDQ-4968 handle column names correctly for postgresql, mysql and oracle
- replace guessed column names by columns in query if the numbers of the 2 collections are identical.
- improve error messages for "guess schema" command

git-svn-id: http://talendforge.org/svn/tos/trunk@80231 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-21 10:11:49 +00:00
cli
258bfc434f TDI-20197: Temp to disable the CNF extension point in repository.mdm for TOP.
git-svn-id: http://talendforge.org/svn/tos/trunk@80230 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-21 10:10:50 +00:00
cli
78c2075733 TDI-20197: added the jobscript, headerFooter and rules. also add some icons and refactor some codes.
git-svn-id: http://talendforge.org/svn/tos/trunk@80221 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-21 09:45:22 +00:00
fgzhang
e98be9a320 selenium:testDownloadBiglogsAndCheckIt()
--check download logs

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80201 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-21 07:08:31 +00:00
wliu
5c727b13b3 Fix Feature TDI-18966: when setting optional on the input loop node, then the loop nodes can be unavailable in the source file.
http://jira.talendforge.org/browse/TDI-18966

git-svn-id: http://talendforge.org/svn/tos/trunk@80200 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-21 07:01:31 +00:00
fgzhang
fdcb79383b selenium:
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80199 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-21 06:44:45 +00:00
fgzhang
a02aa68484 selenium:TestProjectReference---testDeleteRefProDisplay()
--TDIQA-5344:projects display(auto)
TestProjectReference---testRetrievePeoject()
  --TDIQA-378:Retrieve(auto)
TestProjectReference---testRemoveReference()
  --TDIQA-382:Remove reference(auto)

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80198 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-21 06:44:00 +00:00
fgzhang
ed608c17b4 selenium:Project---addProject()
--add method for creation project
Project---gotoProject()
  --add method for into project page
Project---failedDeleteProject()
  --add method for check delete project info of delete failed
ProjectImpl---addProjectImpl()
  --add method for creation project
Reference---checkRefProDisplay()
         ---removeReference()

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80197 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-21 06:36:31 +00:00
nrousseau
390ebf59e1 bug TDI-19886 fixed: fix problem of memory, re-enable the dispose removed by the previous commit.
git-svn-id: http://talendforge.org/svn/tos/trunk@80195 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-21 06:12:38 +00:00
fzhong
5258d8def9 SWTBot: modify tests about salesforce for did not clean up repository
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80186 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-21 03:20:10 +00:00
rdubois
b31bcbb89c TDI-20230: add the mapping type for HCatalog
git-svn-id: http://talendforge.org/svn/tos/trunk@80177 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 21:42:25 +00:00
sgandon
473e168f3f Fix New Feature TDI-19373 : Studio : Repository view, only one view should exist for all products
http://jira.talendforge.org/browse/TDI-19373
Fixed the adapter not loaded issue.

git-svn-id: http://talendforge.org/svn/tos/trunk@80176 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 20:14:46 +00:00
sgandon
c092170cd7 Fix New Feature TDI-19373 : Studio : Repository view, only one view should exist for all products
http://jira.talendforge.org/browse/TDI-19373
removed the ProjectRepoNode as a root and created an adapter

git-svn-id: http://talendforge.org/svn/tos/trunk@80172 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 17:04:16 +00:00
sgandon
3857c22756 Fix New Feature TDI-19373 : Studio : Repository view, only one view should exist for all products
http://jira.talendforge.org/browse/TDI-19373
refactor

git-svn-id: http://talendforge.org/svn/tos/trunk@80171 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 14:54:18 +00:00
sgandon
926d37303c Fix New Feature TDI-19373 : Studio : Repository view, only one view should exist for all products
http://jira.talendforge.org/browse/TDI-19373
refactor

git-svn-id: http://talendforge.org/svn/tos/trunk@80170 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 14:54:13 +00:00
wliu
4ec4479e19 Fix Feature TDI-18966: when setting optional on the input loop node, then the loop nodes can be unavailable in the source file.
http://jira.talendforge.org/browse/TDI-18966

git-svn-id: http://talendforge.org/svn/tos/trunk@80162 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 11:39:11 +00:00
dfcao
2ad994e1ff SWTBot: add DataViewerOnDB2Test
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80149 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 10:12:44 +00:00
hjbai2
05e16023a2 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80148 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-03-20 10:12:28 +00:00
dfcao
48be76a8dd SWTBot: modified test UseHL7Test about cancel set the component type before drag it to job
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80147 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 10:11:57 +00:00
fwang
0205ae95a4 bug TDI-19892 fixed:DB connection_Create a mysql connection, open the SQL Builder then click ok, will show error in log.
git-svn-id: http://talendforge.org/svn/tos/trunk@80144 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 09:54:37 +00:00
fzhong
cfd845da98 SWTBot: modify test ChangeDbConnectionForCDCTest that could not find table to delete
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80137 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 09:31:44 +00:00
mwang
7308ebfc52 Clean up the codes
git-svn-id: http://talendforge.org/svn/tos/trunk@80136 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 09:19:35 +00:00
fyan2
440d0a5c2b git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80135 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-03-20 09:05:44 +00:00
fyan2
1489d6cc32 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80121 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-03-20 08:28:04 +00:00
fyan2
02052ae703 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80119 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-03-20 08:20:46 +00:00
cli
7f946df0ed TDI-19373: add some repository content providers
git-svn-id: http://talendforge.org/svn/tos/trunk@80114 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 08:09:00 +00:00
ycbai
1fac63fb16 feature TDI-19826 added: Improve the model of the xsd for MDM when import in the tXmlMap.
git-svn-id: http://talendforge.org/svn/tos/trunk@80112 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 08:05:07 +00:00
mwang
026190b661 For bug TDI-8574, Before using name to distinguish between IContextParameter, now using sourceId + name.
git-svn-id: http://talendforge.org/svn/tos/trunk@80103 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 07:30:16 +00:00
mwang
7c9d08eda1 For bug TDI-8574, Before using name to distinguish between IContextParameter, now using sourceId + name.
git-svn-id: http://talendforge.org/svn/tos/trunk@80102 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 07:29:17 +00:00
mwang
2fe2eda4a0 For bug TDI-8574, Before using name to distinguish between IContextParameter, now using sourceId + name.
git-svn-id: http://talendforge.org/svn/tos/trunk@80101 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 07:28:03 +00:00
fzhong
bf5fd0e008 SWTBot: modify tests fail affected by method for cleanning up repository
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80097 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 07:04:56 +00:00
fgzhang
ac8e08aab1 selenium:***---****config files:
change xpath of configuration'items in 'other_en_US.properties' file

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80079 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 03:28:50 +00:00
fgzhang
274f3e0509 selenium:update cases:
***---****audit:
Audit---typeWordsInConfigurationMenu()
     ---AssertEqualsInConfigurationMenu()	
     ---AssertEqualsInConfigurationMenu()
 --removed some judge and loop, add press enter keys after changed input value
TestChangeAuditReportStoredPathInConfiguration---testChangeAuditReportStoredPathInConfiguration()
 --change xpath	 of 'reportStoredPath'

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80078 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 03:25:51 +00:00
zcui
6024be4024 selenium:add cases for TMDMQA-5772,TMDMQA-5489
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80069 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 02:21:19 +00:00
zcui
37c909a3f1 selenium:add cases for TMDMQAI-5772,TMDMQA-5489
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80066 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 02:14:16 +00:00
zcui
8d77700942 selenium:update TestUser and add cases for TMDMQA-5772,TMDMQA-5489
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80064 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-20 02:11:49 +00:00
sgandon
4f73df387a TDI-9010 : rename the folder to model.tac instead of tac.model
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80050 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-19 15:06:53 +00:00
nhaumont
9dbcf19ce8 Selenium : refactoring MDM test plugin for compliance with Talend standards
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80045 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-19 13:57:20 +00:00
sgandon
15ca561a97 TDI-9010 : move the org.talend.tac.model to tis_shared
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80043 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-19 13:11:15 +00:00
hjbai2
a4c255a9d8 selenium add three record test cases create delete and update
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80017 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-19 08:36:42 +00:00
hjbai2
59172ddbfa git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80016 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-03-19 08:33:56 +00:00
hjbai2
8888cf41c6 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80015 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-03-19 08:31:59 +00:00
hjbai2
6524ce4f5a add three new test about the record
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80014 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-19 08:24:52 +00:00
dfcao
52601866de SWTBot: modified test FilterItemByStatusTest the editProperties method
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@80012 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-19 08:02:08 +00:00
zwzhao
ebb1b89fd3 feature TDI-19827 : TAC Model change: Studio need to adapt when retrieve projects from TAC.
git-svn-id: http://talendforge.org/svn/tos/trunk@80004 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-19 05:35:44 +00:00
zshen
4363bd4405 add test project for org.talend.metadata.managment
git-svn-id: http://talendforge.org/svn/tos/trunk@80001 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-19 05:26:41 +00:00
zpbai
577e10eeca SWTBot: Add the feature for deleting created folders
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79977 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-16 10:33:11 +00:00
fzhong
a5ad6a47ac SWTBot: add new tests about CDC and refactor tests about cleanning up repository
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79976 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-16 10:33:03 +00:00
hqzhang
c59f2e5568 Bug TDI-20080 fixed: Move a job into Referential view does'nt work or is not smooth.
Root cause for moving job is not smooth as before:

Before really move the job, the code checks whether the job is locked or not, this check spends some time because it will not only check the local user, but also the remote users. And current there is a check every time dragging a job to a new target(including folders and jobs), so it will wait at every job and folder which the job might pass when dragging it to another folder.

Fix Solution: 
Do not check the lock status when draging a job until the draging is finished, before really moving the job, check the lock status, if it's locked,  prompt a message to tell users that the job is locked

Root cause for moving job doesn't work:

When the mouse moves over the drop target, if it's a valid drop, RepositoryDropAdapter records the event.detail as operation(DND.DROP_MOVE, DND.DROP_COPY, DND.DROP_DEFAULT), and when drop the object, we perform the copying or moving operation according to the recorded operation(DND.DROP_MOVE, DND.DROP_COPY,DROP_DEFAULT).  Sometimes when moving  over the drop target, the operation is recorded as DND.DROP_DEFAULT, but when dropping the object, the event.detail == DND.DROP_MOVE. This could be a bug of eclipse, as the recorded operation does not match the actually operation.

Fix Solution: 
Record the drop event, and distinguish the operation type by the drop event.

git-svn-id: http://talendforge.org/svn/tos/trunk@79973 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-16 10:26:36 +00:00
dfcao
138820241e SWTBot: add DataViewerOnInformixTest,DataViewerOnMSSQLtTest,DataViewerOnOracleTest,DataViewerOnPostgresqlTest,DataViewerOnTeradataTest,DataViewerOnLadpTest,DataViewerOnAS400Test
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79968 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-16 09:46:02 +00:00
fyan2
d6352ee0c5 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79939 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-03-16 07:00:27 +00:00
dfcao
43ccef7fbb SWTBot: modified all tos test to add repositories list
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79936 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-16 06:33:04 +00:00
dfcao
2fd1f3df9c SWTBot: modified all tis test to add repositories list
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79928 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-16 03:41:46 +00:00
dfcao
8dac3ea2e0 SWTBot: modified the dataViwerOnDBComponent method of DataViewOnMySQLTest and modified the delete method
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79926 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-16 03:35:01 +00:00
nrousseau
404063d975 TDI-19912: branding update and SQL Templates update
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79924 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-16 03:30:23 +00:00
nrousseau
f5aea9eee1 TDI-19912: branding update and SQL Templates update
git-svn-id: http://talendforge.org/svn/tos/trunk@79923 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-16 03:30:11 +00:00
zcui
266212a727 selenium:add cases testAddUserWebOverAllowedInactive
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79916 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-16 02:30:43 +00:00
amaumont
37f57eecfb StatisticsTracer Simplified for not concurrent measures.
git-svn-id: http://talendforge.org/svn/tos/trunk@79912 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 15:14:41 +00:00
nhaumont
bf8290fd90 SWTBot : fix Data viewer test case
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79906 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 14:01:45 +00:00
amaumont
2e7f976c18 Simply StatisticsTracer
git-svn-id: http://talendforge.org/svn/tos/trunk@79897 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 11:06:17 +00:00
ycbai
85e6487c52 bug TDI-19293 fixed: TAC- Audit is failing with a Could not execute JDBC batch update and Data truncation: Data too long for column 'STATUS' errors
git-svn-id: http://talendforge.org/svn/tos/trunk@79896 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 11:01:23 +00:00
zcui
fa6dda5835 cases added:
testAddUserAllowedAdmin
testAddUserAllowedWeb
testAddUserWebOverAllowed

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79875 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 09:21:51 +00:00
zcui
a4f08eff29 cases added:
testAddUserAllowedAdmin
testAddUserAllowedWeb
testAddUserWebOverAllowed

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79874 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 09:20:30 +00:00
zcui
c11ddef89b selenium:add cases testAdduserAllowedAdmin,testAddUserAllowedWeb,testAddUserWebOverAllowed
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79873 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 09:18:13 +00:00
zcui
4288d9a1f1 selenium:update method logout of login
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79871 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 09:16:34 +00:00
zcui
69e36990d6 selenium:update Base.java ,add method named getValue
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79870 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 09:15:03 +00:00
fyan2
652f5c9dee git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79865 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-03-15 08:53:22 +00:00
fyan2
8edef8e020 Added case of ESBConductor context
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79860 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 08:41:43 +00:00
dfcao
98220cd201 SWTBot: modified Utilities
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79844 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 07:20:27 +00:00
zpbai
eb54609b63 SWTBot: Add the feature of deleting created items. It works for all the products.
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79840 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 06:38:43 +00:00
fzhong
cef9e53a4f SWTBot: modify ExteralComponentsTest for update the function name 'Numeric.sequence' in setting of tRowGenerator
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79832 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 05:53:44 +00:00
fzhong
2cf00bcaa7 SWTBot: modify test ChangeDatabaseAndRetrieveSchemaTest for did not get righ errorlog
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79828 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 04:49:02 +00:00
nrousseau
9b3a0179f7 Modification: remove all the javacSource and javacTarget settings in the build.properties
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79802 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 02:45:14 +00:00
nrousseau
33e452d8be Modification: remove all the javacSource and javacTarget settings in the build.properties
git-svn-id: http://talendforge.org/svn/tos/trunk@79801 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 02:41:17 +00:00
fzhong
e84eb591e4 SWTBot: modify method 'beginCreationWizard' to make it ok if the title is null.
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79800 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-15 02:27:44 +00:00
sgandon
6d34361eb9 TDI-19373 : update the framework for metadata providers
using single ProjectRepoNode

git-svn-id: http://talendforge.org/svn/tos/trunk@79797 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-14 23:38:01 +00:00
sgandon
e72bba2bc5 Fix TDI-13455 : Studio : Widget is disposed
http://jira.talendforge.org/browse/TDI-13455
Fixed one issue in talend tool bar that may be the cause.

git-svn-id: http://talendforge.org/svn/tos/trunk@79795 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-14 16:44:19 +00:00
fyan2
64205b546b git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79778 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-03-14 09:17:25 +00:00
dfcao
cf0d9ea0e7 SWTBot: modified Utilities
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79763 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-14 07:35:39 +00:00
dfcao
f97a44e56e SWTBot: modified UseAdvanceWebServiceTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79762 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-14 07:33:13 +00:00
fgzhang
becf84f918 selenium:AuthorizationImpl---authorizationImpl()
---reAuthorization()
 --add a parameter of user info, add assert

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79749 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-14 03:33:09 +00:00
fgzhang
94f11f21be selenium:WebDriverBase---dragAndDrop()
--change dragDrop method(detach)

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79747 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-14 03:31:16 +00:00
fgzhang
f874b2a8bc selenium:TestProjectAuthorization---testAuthorization()
--TDIQA-251:Simply create a authorization
TestProjectAuthorization---testReAuthorization()
 --TDIQA-257:Create an authorization that already exists

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79746 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-14 03:30:29 +00:00
fgzhang
e1aaf1d8e0 selenium:add file for config authorization of project_authization.xml
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79745 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-14 03:28:40 +00:00
zpbai
ca5c448c06 Selenium: added mdm auto tests basic framework and added simple test case
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79730 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-13 12:33:02 +00:00
fzhong
4345d67e26 SWTBot: refactor tests about using using common @AfterClass to cleanup perspective
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79723 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-13 10:38:22 +00:00
fzhong
aa000c447d SWTBot: refactor test about copybook and embeddedrules
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79721 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-13 10:25:28 +00:00
fzhong
9a406adada SWTBot: refactor test about copybook and embeddedrules
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79719 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-13 10:22:15 +00:00
jzhao
664b959c23 Fix Bug TDI-20032 :The encoding of XML header is unable to change, when read a document as input directly
http://jira.talendforge.org/browse/TDI-20032

git-svn-id: http://talendforge.org/svn/tos/trunk@79707 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-13 09:13:55 +00:00
zpbai
ce0c166915 Selenium: Add common action for isElementPresent
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79695 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-13 06:59:23 +00:00
hcyi
84f2fe324e bug TDI-20011 fixed : When click 'guess schema' in the retrieving schema dialog, it dose not work at all .
git-svn-id: http://talendforge.org/svn/tos/trunk@79694 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-13 06:45:17 +00:00
fwang
2390defae6 bug TDI-20018 fixed:Create a oracle DB connection, Retrieve schema, select 'all synonyms' then 'select all' will show errors in error log
git-svn-id: http://talendforge.org/svn/tos/trunk@79683 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-13 05:38:54 +00:00
zpbai
649acd5114 Selenium: Add the feature to implement auto tests with webdriver, there is a simple case for authorization
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79666 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-13 01:46:15 +00:00
fzhong
0cab09a680 SWTBot: add tests about 'Change Data Capture'
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79650 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-12 09:41:43 +00:00
fyan2
69906204be git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79649 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-03-12 09:37:11 +00:00
dfcao
51c361c249 SWTBot: add DataViewerOnDatabasesComponentTest,DataViewerOnFlieComponentTest,DataViewerOnMySQLTest,TunitTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79646 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-12 09:14:45 +00:00
fwang
cb9f97b1b3 bug TDI-19945 fixed:create a xmloutput,drag it to job,default is tfileinputxml,there is error sign on it
git-svn-id: http://talendforge.org/svn/tos/trunk@79644 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-12 08:46:55 +00:00
fyan2
7ef7d5bb72 added test cases of test deploy with inactive runtime and select feature
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79637 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-12 08:12:36 +00:00
fyan2
799adaec2a added test suit of esbconductor.xml
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79636 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-12 08:11:22 +00:00
fyan2
6d369d01ee added configuration for test cases of inactive runtime server and select feature
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79632 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-12 08:10:30 +00:00
wchen
e7053bd499 bug TDI-7644 fixed:Metadata wizard's total step number is wrong when create a new Excel file
git-svn-id: http://talendforge.org/svn/tos/trunk@79623 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-12 07:40:11 +00:00
hcyi
b9d623280b bug TDI-19883 fixed : Artifacts imported to a SVN controlled project are not committed to SVN and are lost after restart .
git-svn-id: http://talendforge.org/svn/tos/trunk@79614 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-12 07:02:47 +00:00
wchen
aa4d3cbf26 feature TDI-20034 added: Add implementation of the tXmlMap for the "manual" part
git-svn-id: http://talendforge.org/svn/tos/trunk@79612 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-12 07:00:03 +00:00
wwang
ec37fa99eb fix Bug TDI-18966: Never change the original lookup information object state
git-svn-id: http://talendforge.org/svn/tos/trunk@79598 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-12 03:46:39 +00:00
ycbai
761831a8ed feature TDI-20035 added: Modify the XSD parsing to be able to detect optional elements
git-svn-id: http://talendforge.org/svn/tos/trunk@79596 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-12 03:18:02 +00:00
sgandon
3f60385ded TDI-19373 : IRepoView interface has changed recently so fixed to avoid compilation error.
git-svn-id: http://talendforge.org/svn/tos/trunk@79594 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-09 23:47:16 +00:00
sgandon
cc21d71dd3 TDI-19373 : update the readme.txt
git-svn-id: http://talendforge.org/svn/tos/trunk@79590 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-09 14:15:55 +00:00
sgandon
23f2e3537d TDI-19373 : creating first common repo navigator view project for svn
Delete binary classes

git-svn-id: http://talendforge.org/svn/tos/trunk@79589 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-09 14:09:10 +00:00
sgandon
47fa5a5e84 TDI-19373 : creating first common repo navigator view project
git-svn-id: http://talendforge.org/svn/tos/trunk@79586 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-09 13:58:00 +00:00
sizhaoliu
6c9f463831 TDQ-4828 Add where clause for DQ rule in tOracleInvalidRows
git-svn-id: http://talendforge.org/svn/tos/trunk@79581 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-09 11:01:43 +00:00
fwang
2723d04588 bug TDI-19945 fixed:create a xmloutput,drag it to job,default is tfileinputxml,there is error sign on it
git-svn-id: http://talendforge.org/svn/tos/trunk@79559 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-09 07:48:06 +00:00
wchen
64cb806767 bug TDI-19920 fixed:Create proper listeners for the ProxyRepositoryFactory for the creation / modification / deletion of items
git-svn-id: http://talendforge.org/svn/tos/trunk@79551 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-09 06:24:17 +00:00
zpbai
b280483e4c SWTBot: Remove TalendSwtBotForTos from common SWTBot test
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79528 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-08 11:33:43 +00:00
cli
b5d32ca007 TDI-19886: revert the commit to enable dispose.
git-svn-id: http://talendforge.org/svn/tos/trunk@79507 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-08 08:22:39 +00:00
wchen
ebb96b3417 feature TDI-19717,TDI-19716,TDI-19719,TDI-19720,TDI-19721 added: Need to add the possibility to use choices / substitution groups in the tXmlMap
git-svn-id: http://talendforge.org/svn/tos/trunk@79469 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-08 01:52:03 +00:00
zshen
f4df9026d8 TDQ-4757 TDQ-4863 init Repositor after create project in commandLine.
git-svn-id: http://talendforge.org/svn/tos/trunk@79440 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-07 09:07:24 +00:00
wchen
272cddab82 bug TDI-20033 fixed:Two folders generate under doc folders when rename an eixst job
git-svn-id: http://talendforge.org/svn/tos/trunk@79431 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-07 08:44:42 +00:00
ycbai
934fcd347f bug TDI-8357 fixed: Salesforce wizard steps are still displayed as File steps
git-svn-id: http://talendforge.org/svn/tos/trunk@79421 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-07 08:17:00 +00:00
fwang
ed22de318a bug TDI-19859 fixed:Copyright header in generated code and system routines is still set to 2010
git-svn-id: http://talendforge.org/svn/tos/trunk@79418 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-07 08:12:37 +00:00
fgzhang
0fb433805f selenium: add case for test commandline command help
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79404 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-07 07:40:14 +00:00
zcui
e05a044ed2 selenium:update for TestBranchManageAdd
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79402 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-07 07:34:18 +00:00
zcui
a1dd496481 selenium:update for TestLicenseAccountsCount
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79401 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-07 07:33:39 +00:00
zcui
791da2aa21 selenium:add method deleteAllPlan to Plan
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79400 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-07 07:31:37 +00:00
fgzhang
8a7190c12b selenium:add file for test commandline
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79399 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-07 07:31:24 +00:00
zcui
41f62f989d selenium:update for TestTokenINDbconfigPage
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79398 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-07 07:30:53 +00:00
zpbai
d4561caf9d Selenium: Add default value for commandline server and port
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79396 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-07 07:08:43 +00:00
zpbai
024de88302 Selenium: Add the feature for Commandline
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79384 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-07 05:25:06 +00:00
qiongli
ad8932db01 TDQ-4858 TDQ-4732 use the common method to create statement both DI and DQ.
git-svn-id: http://talendforge.org/svn/tos/trunk@79366 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-07 03:03:20 +00:00
fzhong
63659156a3 SWTBot: improve Utilities.java for clean up repository and modified tests for project management with clean up method
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79317 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-06 10:43:54 +00:00
fzhong
0065d8cd1a SWTBot: modify Utilities.java for clean up repository
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79313 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-06 10:15:11 +00:00
wwang
c659eb271e fix Bug TDI-18966: Support optional elements as loop element
git-svn-id: http://talendforge.org/svn/tos/trunk@79306 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-06 09:39:59 +00:00
cli
efbde14429 TDI-19886: optimize the repository node.
git-svn-id: http://talendforge.org/svn/tos/trunk@79302 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-06 09:34:34 +00:00
wliu
5b42835a8d Fix Bug TDI-19897 : add the new java file: UnicodeReader.java
Add a tuj

git-svn-id: http://talendforge.org/svn/tos/trunk@79289 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-06 07:46:10 +00:00
fwang
91b7cd4945 bug TDI-19859 fixed: Copyright header in generated code and system routines is still set to 2010
git-svn-id: http://talendforge.org/svn/tos/trunk@79258 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-06 03:19:44 +00:00
ycbai
d78230848a bug TDI-19969 fixed: Retrieve salesforce module results in duplicate metadatas.
git-svn-id: http://talendforge.org/svn/tos/trunk@79238 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-05 10:02:38 +00:00
zwzhao
7abdd33b1b USV-18 : Uniserv Metadata extension: Component content could not be read from repository - there is no metadata suggestion list
git-svn-id: http://talendforge.org/svn/tos/trunk@79215 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-05 07:22:49 +00:00
hwang
53a592a821 TDI-19555:Problems of generation of query when the db connection doesn't hold any schema info
git-svn-id: http://talendforge.org/svn/tos/trunk@79184 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-02 10:13:35 +00:00
hcyi
037b2bde2c bug TDQ-1625 fixed : sybase connections created by DI and DQ are different with each other .
git-svn-id: http://talendforge.org/svn/tos/trunk@79176 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-02 08:42:27 +00:00
zwzhao
06dcb0d0c5 USV-17 : Uniserv Metadata extension: Component setting could not be saved into the repository
git-svn-id: http://talendforge.org/svn/tos/trunk@79164 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-02 06:24:35 +00:00
hcyi
a2cf7169a5 bug TDI-19622 modified : Startup screen needs text changes , Need to modify other brandings like esb, cloudee .
git-svn-id: http://talendforge.org/svn/tos/trunk@79151 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-02 03:25:28 +00:00
nrousseau
e9011d1bd1 bug TDI-19389 fixed: set label at the same time as the display name in the properties when create the item
git-svn-id: http://talendforge.org/svn/tos/trunk@79149 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-02 02:19:40 +00:00
hwang
cde78d899b TDI-19731 Prepare OEM for Hortonworks
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79148 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-02 02:18:32 +00:00
hwang
7b4722a838 TDI-19731 Prepare OEM for Hortonworks
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79126 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-01 09:24:12 +00:00
mwang
64c6448cf1 For bug 12596. When exporting as Context from DB connection, modify the variables, then finish. The changed contexts will not be saved in DB connection instead of original context value.
JobContextManager.getNameMap() this is used to store the changed context variables.

git-svn-id: http://talendforge.org/svn/tos/trunk@79121 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-01 09:05:38 +00:00
amaumont
a6981e2747 TDI-19745 Change the EMF data model to store the new data
=> compilation error fixed
=> new fields ExecutionPlanPart.useParallel and ExecutionPlanPart.maxThreads

git-svn-id: http://talendforge.org/svn/tos/trunk@79112 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-01 08:11:50 +00:00
fgzhang
ad108b75df selenium:add node of class in esbconductor.xml
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79111 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-01 08:04:48 +00:00
fgzhang
b4a2ca7f66 selenium:add method(clearService) for clear all servers
change method(deleteOk) in ESBConductorUtils
modified cases of use delete method'cases

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79110 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-01 08:04:10 +00:00
zcui
5ef5eee610 selenium:add cases about task sort by label
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79105 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-01 07:45:27 +00:00
hwang
97b2c44103 TDI-19731 Prepare OEM for Hortonworks
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79102 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-01 06:30:33 +00:00
hwang
80e3289056 TDI-19731 Prepare OEM for Hortonworks
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79101 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-01 06:28:49 +00:00
hcyi
db14f7ce18 bug TDI-19089 modified : Links in the welcome screen don't open in a browser window .
git-svn-id: http://talendforge.org/svn/tos/trunk@79099 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-01 05:31:16 +00:00
hwang
eecc45d199 TDI-19731 Prepare OEM for Hortonworks
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79098 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-01 05:09:28 +00:00
hqzhang
7b270e5f41 Bug TDI-19965 fixed: Display same name after copy/duplicate job
git-svn-id: http://talendforge.org/svn/tos/trunk@79097 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-01 05:08:26 +00:00
ycbai
2aedb96ed6 feature TDI-19696 modified: Modify the model to be able to handle substitutions
git-svn-id: http://talendforge.org/svn/tos/trunk@79092 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-03-01 02:24:26 +00:00
zshen
555474a2f7 TDQ-4313 TDQ-4536 unqiue displayName and label
git-svn-id: http://talendforge.org/svn/tos/trunk@79082 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-29 16:15:14 +00:00
xqliu
f327fd6d6c TDQ-3625 TDQ-4689 Fix it on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@79077 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-29 11:49:58 +00:00
jyhu
17212d8f60 Fix Bug TDI-19651 : Support the Document type in tJMSInput and tJMSOutput.
http://jira.talendforge.org/browse/TDI-19651 

git-svn-id: http://talendforge.org/svn/tos/trunk@79074 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-29 11:24:45 +00:00
wchen
d79aa4ec6c bug TDI-19862 fixed:MDM Schema metadata is inconsistent when the loop element is part of the fields to extract
git-svn-id: http://talendforge.org/svn/tos/trunk@79060 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-29 08:31:19 +00:00
fgzhang
5e707c53ba selenium:EsbUtil---AssertEqualsInConfigurationMenu()
---AssertEqualsInConfigurationMenu()
       ---typeWordsInConfigurationMenu()
  --removed codes of some judge
       ---modifyEsbConfigurationInConfigurationPage()


git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79046 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-29 07:49:48 +00:00
fgzhang
ee71c5b6ca selenium: change xpath of esb'localtor and esb'monitor
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79043 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-29 07:46:25 +00:00
zcui
fb6e5dabf4 selenium:update licenseaccountcout
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79034 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-29 06:43:09 +00:00
fgzhang
6b413c72a0 selenium:TestCheckLogs---testLastPageFirstPage()
--change xpath of firstpage

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@79031 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-29 06:20:19 +00:00
rdubois
798d62b87a TDI-19941 fixed: Manage the "real" ON_COMPONENT_OK in the virtual components.
git-svn-id: http://talendforge.org/svn/tos/trunk@79005 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 15:56:27 +00:00
sizhaoliu
4a16cd3e68 TDQ-4805 TDQ-4810 TDQ-4811 TDQ-4812 TDQ-4813
-added the possibility to retrieve DQ Rules from tOracleInvalidRows component
-fixed related problems.

git-svn-id: http://talendforge.org/svn/tos/trunk@79002 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 11:58:27 +00:00
hqzhang
3e13978c6d Code changes for TDI-19527: add one attribute(displayName) on the property.
For DI / ESB,  keep as much as possible label = displayName

git-svn-id: http://talendforge.org/svn/tos/trunk@78988 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 10:10:29 +00:00
wchen
ab4aea89ba bug TDI-19886 fixed : Fix some NPE problem when use actions form repository
git-svn-id: http://talendforge.org/svn/tos/trunk@78977 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 09:44:36 +00:00
fwang
427591cd5b bug TDI-19547 fixed:Retreive db2 synonym don't work
git-svn-id: http://talendforge.org/svn/tos/trunk@78974 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 09:06:17 +00:00
ycbai
0bb17982c2 feature TDI-19696 modified: Modify the model to be able to handle substitutions
git-svn-id: http://talendforge.org/svn/tos/trunk@78969 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 08:36:09 +00:00
hwang
9a252c4323 TDI-19731 Prepare OEM for Hortonworks
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78968 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 08:02:53 +00:00
hwang
81d4115ab5 TDI-19731 Prepare OEM for Hortonworks
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78967 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 07:59:57 +00:00
hwang
9f133a02c2 TDI-19731 Prepare OEM for Hortonworks
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78966 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 07:57:44 +00:00
hwang
a566270451 git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78965 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-02-28 07:56:30 +00:00
hwang
8d5a79cf50 TDI-19731 Prepare OEM for Hortonworks
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78963 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 07:12:58 +00:00
hwang
839543740d TDI-19731 Prepare OEM for Hortonworks
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78950 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 03:25:17 +00:00
hwang
9ee53024ff TDI-19731 Prepare OEM for Hortonworks
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78948 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 03:19:04 +00:00
hwang
b84f08985c TDI-19731 Prepare OEM for Hortonworks
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78946 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 03:13:26 +00:00
hwang
9d60a5f757 TDI-19731 Prepare OEM for Hortonworks
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78944 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 03:08:24 +00:00
hwang
2d911e896e TDI-19731 Prepare OEM for Hortonworks
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78942 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 03:04:21 +00:00
hwang
b1040d5d0d TDI-19731 Prepare OEM for Hortonworks
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78940 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-28 03:03:45 +00:00
zshen
566e8f52b0 TDQ-4604 TDQ-4605
to fix the issue which have duplicate SystemIndicator in dqView after import 4.1.3 workspace

git-svn-id: http://talendforge.org/svn/tos/trunk@78924 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-27 10:45:16 +00:00
ycbai
662e800828 feature TDI-19696 modified: Modify the model to be able to handle substitutions
git-svn-id: http://talendforge.org/svn/tos/trunk@78914 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-27 09:40:21 +00:00
hwang
5ba5258031 TDI-17274:after click trowgenerator column,close the dialog,there is error
git-svn-id: http://talendforge.org/svn/tos/trunk@78913 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-27 09:36:40 +00:00
zcui
40867c9183 selenium:update for plan.xml
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78907 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-27 09:11:42 +00:00
cli
b10907de8d TDI-19886: enhance the problem for model of repository view.
git-svn-id: http://talendforge.org/svn/tos/trunk@78900 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-27 08:49:47 +00:00
ycbai
375ba20501 feature TDI-19696 modified: Modify the model to be able to handle substitutions
git-svn-id: http://talendforge.org/svn/tos/trunk@78885 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-27 08:00:22 +00:00
ycbai
9ec6d166c5 feature TDI-17933 added: CommandLine: Add dependencies argument for ChangeVersion and ChangeStatus Command
git-svn-id: http://talendforge.org/svn/tos/trunk@78876 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-27 07:27:57 +00:00
zwzhao
665ccb1700 bug TDI-19603 fixed : revert to 77219
git-svn-id: http://talendforge.org/svn/tos/trunk@78873 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-27 07:17:54 +00:00
zwzhao
e58f69cd37 bug TDI-19603 fixed : revert r78244
git-svn-id: http://talendforge.org/svn/tos/trunk@78867 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-27 07:04:09 +00:00
scorreia
e45cfa9365 i18n: synchronize Babili strings exported on 2012-02-24-16-22-24
git-svn-id: http://talendforge.org/svn/tos/trunk@78850 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-24 17:02:28 +00:00
hqzhang
e31fa709cb bug TDI-19113 fixed:String truncation when do retrieve schema.
git-svn-id: http://talendforge.org/svn/tos/trunk@78843 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-24 11:14:20 +00:00
zcui
b74b2a446a selenium:update for class TestJobAnalyses
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78815 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-24 06:28:23 +00:00
hcyi
db0e93b100 bug TDI-8867 fixed : "generate job " disappear on AMC perspective ,when create a jobscript on TIS .
git-svn-id: http://talendforge.org/svn/tos/trunk@78810 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-24 06:12:21 +00:00
fzhong
6c0de2f94a SWTBot: add test ImportCustomComponentToPaletteTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78788 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-24 02:55:19 +00:00
fwang
298ec6875f bug TDI-19420 fixed:Specific keyworks should be forbidden as link name
git-svn-id: http://talendforge.org/svn/tos/trunk@78786 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-24 02:30:55 +00:00
fgzhang
4182d9bb49 selenium:because this is had a bug on linux, so removed the config files for liunx execution auto
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78780 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-24 01:25:44 +00:00
zwzhao
62762cf67e bug TDI-18524 fixed : teradata db export as context,when retrieve schema it always spending
git-svn-id: http://talendforge.org/svn/tos/trunk@78767 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-23 10:06:56 +00:00
hqzhang
852ff591b0 Code changes for TDI-19754. Using mapping file to recognize the DB type of ODBC and JDBC connection.
git-svn-id: http://talendforge.org/svn/tos/trunk@78755 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-23 08:31:15 +00:00
fgzhang
209af2f0e3 selenium:ESBConductorUtils---typeWordsInConfigurationMenu()
--add wait time(2s) before full input

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78753 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-23 08:19:12 +00:00
ycbai
81e2632eae feature TDI-17930 added: fix the bug of the tRunJob if latest function.
git-svn-id: http://talendforge.org/svn/tos/trunk@78745 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-23 06:55:12 +00:00
zwzhao
37892cea0c bug TDI-18524 fixed : teradata db export as context,when retrieve schema it always spending
git-svn-id: http://talendforge.org/svn/tos/trunk@78737 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-23 05:44:43 +00:00
plv
3fc6e6f013 bug TDI-16706 fixed:pository filter not support HL7 and MDM
git-svn-id: http://talendforge.org/svn/tos/trunk@78732 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-23 03:51:58 +00:00
mwang
f6335a6214 for bug TDI-19166, For this FreePortFinderTest test case, I found the the method isPortFree() of FreePortFinder has a problem. When mutil-threads invoke the method concurrently, will got the repetition port, so my idea is using a set to store all the ports that are provided by this class, if port is no longer to use, remember to call the mothod removePort(port) to remove the port.
git-svn-id: http://talendforge.org/svn/tos/trunk@78727 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-23 02:43:53 +00:00
hcyi
aa1ebcfc09 bug TDI-19622 fixed : Startup screen needs text changes .
git-svn-id: http://talendforge.org/svn/tos/trunk@78725 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-23 02:27:10 +00:00
zcui
4be4c8175d selenium:add testGroupESBConductorOfService
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78710 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 09:58:14 +00:00
fgzhang
0f9e38470f selenium:Add exist auto tests from trunk 5.0 to trunk
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78709 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 09:55:53 +00:00
dfcao
2955afeddd SWTBot: add IterateLinkTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78705 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 09:43:32 +00:00
fzhong
81e3277450 SWTBot: modify test UpdateDependentJobsTest for could not find shell 'Modification'
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78700 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 09:25:01 +00:00
ycbai
31bb19b554 feature TDI-19712 modified: Adapt the display of the xml repository / dialog for tAdvancedFileOutputXml
git-svn-id: http://talendforge.org/svn/tos/trunk@78690 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 08:38:45 +00:00
zcui
6a3c524770 selenium:update login
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78685 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 07:43:25 +00:00
zcui
e77526588e selenium:update login
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78684 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 07:43:01 +00:00
zcui
92f3d61bd5 selenium:add cases about connection to trunk:
testJobAnalyseWithMSSQL ,testJobAnalyseWithORACLE 

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78683 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 07:41:00 +00:00
fgzhang
0d65aaef59 selenium: add parameters of esb conductor
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78682 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 07:40:59 +00:00
zcui
664ff5a6ea selenium:add cases about connection to trunk:
testJobAnalyseWithMSSQL ,testJobAnalyseWithORACLE 

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78681 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 07:40:17 +00:00
fgzhang
5ac6b454c7 selenium:Add exist auto tests from trunk 5.0 to trunk
EsbConductorUtil---AssertEqualsInConfigurationMenu()
       ---AssertEqualsInConfigurationMenu()
       ---typeWordsInConfigurationMenu()
  --add methods for test esbconductor config info in configuration page
add cases:
TestConfigurationESBConductor---testConfigurationESBConductorIsWrong()
 --add case for test set wrong config info and check prompt info in configuration page
                             ---testConfigurationESBConductorIsOk()
 --set right config info to esbConductor items, check per items status 

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78680 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 07:35:05 +00:00
mwang
4c854bdb56 For bug TDI-19166 , As i know, averageWorkTime * executionsCount <= totalTime and we can got the length of fix line string.
git-svn-id: http://talendforge.org/svn/tos/trunk@78669 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 07:10:51 +00:00
plv
205a571c6b bug TDI-19623 fixed:Welcome screen needs small text adjustments
git-svn-id: http://talendforge.org/svn/tos/trunk@78667 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 07:02:03 +00:00
fgzhang
2753fa5e53 selenium: add config file of 'forget pass word'
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78655 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 05:41:02 +00:00
fgzhang
82a75a1766 selenium:removed config file of 'forget password'
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78654 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 05:40:22 +00:00
wwang
e518035714 fix Bug TDI-18966: Support optional elements as loop element
git-svn-id: http://talendforge.org/svn/tos/trunk@78652 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 05:28:18 +00:00
fgzhang
61f29df4c1 selenium: change suite name of cloud license
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78651 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 05:25:23 +00:00
fgzhang
0f1b8905d8 selenium:change parameter'value of ldap info
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78649 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 05:20:50 +00:00
fgzhang
7c6763b1ae selenium:change mail'value of smtp info
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78645 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 05:08:20 +00:00
fgzhang
38e855b183 selenium:TestSamServerNotRunning---testSamServerNotRunning()
--add a judge of offOnline

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78638 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 03:31:02 +00:00
fgzhang
fcb3611bf7 selenium:service locator:
EsbUtil---AssertEqualsInConfigurationMenu()
       ---AssertEqualsInConfigurationMenu()
       ---typeWordsInConfigurationMenu()
  --removed codes of some judge
       ---modifyEsbConfigurationInConfigurationPage()
TestServiceLocator---testSetESBSamServer()
                  ---testSetESBSamServerWithWrongUrl()
  --add a judge of offOnline

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78636 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 03:30:04 +00:00
fzhong
a9d0f0ff90 SWTBot: update test OpenAnotherVersionOfJobTest for could not find save button on tool bar
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78627 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-22 02:46:30 +00:00
zwzhao
12962428f6 bug TDI-19794 fixed : Saving tFileInputXML to Metadata Repository Preview Mode
git-svn-id: http://talendforge.org/svn/tos/trunk@78607 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-21 10:02:45 +00:00
zcui
e1cf4da7b3 selenium:update cases of plan on trunk
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78606 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-21 10:00:59 +00:00
zcui
546a2b0f85 selenium:update cases of plan on trunk
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78605 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-21 09:59:58 +00:00
zcui
2499709adf selenium:update cases of privilege
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78603 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-21 09:34:50 +00:00
zcui
76a463d326 selenium:update cases of privilege
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78602 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-21 09:34:15 +00:00
dfcao
7bdda46fcf SWTBot: modified UseHL7Test
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78594 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-21 08:09:36 +00:00
ycbai
b328c28f45 feature TDI-19696 TDI-19711 TDI-19712 added.
git-svn-id: http://talendforge.org/svn/tos/trunk@78592 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-21 07:55:22 +00:00
fzhong
274518e520 SWTBot: modify test VariablesTabTest for could not find add button, and update new tests' title to 2012
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78590 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-21 07:54:25 +00:00
fgzhang
869f5ff017 selenium:task
TestAddTriggerAddCronTrigger---testAddTriggerAddCronTrigger()
TestGenerateDeployRunStopPauseTaskResumeTask---	testPauseTaskResumeTask()
  --change value of tigger'year


git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78586 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-21 06:47:39 +00:00
dfcao
3207b84c1c SWTBot: modified the ftp connection password
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78584 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-21 06:36:17 +00:00
dfcao
e5a306bf75 SWTBot: modified the beginEditWizard method of TalendJobletItem
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78583 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-21 06:34:49 +00:00
zcui
3556e92abd selenium:update launch_test_china.xml
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78577 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-21 05:04:50 +00:00
zcui
7cfbaa39dd selenium:update launch_test_china.xml
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78576 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-21 05:04:29 +00:00
fwang
a03dff20ff bug TDI-19758 fixed:Retrieve synonym Schema(MSSQL) successfully with error
git-svn-id: http://talendforge.org/svn/tos/trunk@78565 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-21 02:11:30 +00:00
plv
9d0920dbeb bug TDQ-1580 fixed:Cancel an increased Document versionning does not work
git-svn-id: http://talendforge.org/svn/tos/trunk@78564 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-21 01:49:50 +00:00
fzhong
de4f039f5a SWTBot: modify test ExportAsContextForXmlTest that could not close shell
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78556 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 10:38:47 +00:00
fzhong
bf305c1b89 SWTBot: modify test for adding new dialog for change database test
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78555 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 10:37:48 +00:00
fzhong
1979918616 SWTBot: modify test TRunJobTest for could not find job for tRunJob component
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78554 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 10:36:05 +00:00
fzhong
e52fe96c54 SWTBot: update editor title of business model and modified test SaveAsForBusinessModelTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78553 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 10:34:44 +00:00
zcui
0fcd591574 selenium:add method selectDropDownListByClickArrow to Base
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78550 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 10:02:27 +00:00
zcui
e87a1ea486 selenium:add method selectDropDownListByClickArrow to Base
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78549 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 10:02:04 +00:00
hwang
5c673d1eb1 TDI-19555:Problems of generation of query when the db connection doesn't hold any schema info
git-svn-id: http://talendforge.org/svn/tos/trunk@78547 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 09:55:34 +00:00
zcui
4c7f54a3e0 selenium:update cases of grid
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78546 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 09:55:29 +00:00
zcui
63f1de6fed selenium:update cases of grid
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78545 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 09:54:57 +00:00
zcui
e810346603 selenium:update cases of audit
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78543 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 09:49:31 +00:00
zcui
aff2bd7643 selenium:update cases of audit
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78542 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 09:48:50 +00:00
zcui
d1bf9a3b93 selenium:update cases of connection
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78541 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 09:47:39 +00:00
zcui
14982d849c selenium:update cases of connection
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78540 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 09:47:03 +00:00
fgzhang
984c401608 selenium:modified cases:
TestAddTaskBaseBranchProject---testRemoveTaskWithComplicatedItems()
  --changed time interval, add a judge of task'status

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78538 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 09:11:52 +00:00
zcui
cffd1f55af selenium:update configure xml file of project
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78525 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 07:25:04 +00:00
zcui
8b2f27186e selenium:update projects
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78524 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 07:24:17 +00:00
zcui
f1368dcad3 selenium:update cases of projects on trunk 5.1.0
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78521 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 07:18:45 +00:00
fgzhang
00f6c7a561 selenium:menu
modified cases:
TestMenuDisplayBeforeAuthorizeAllRolesToAdmin---testMenuConfiguration()
  --removed codes of check xpath(//div[contains(text(),'Extended configuration (1 Parameter')])
  --change xpath of ' Dashboard (1 Parameter'
                                             ---testMenuProjectAuthorization()
  --change xpath of DI/DQ/MDM in "ProjectAuthorization" page
TestMenuDisplayAfterAuthorizeAllRolesToAdmin---testMenuDashboardExpend()
TestMenuDisplayAfterChangeLicenseToCLOUD---testMenuDisplayAfterChangeLicenseToCLOUD()
  --removed codes of check soa
TestMenuDisplayAfterAuthorizeAllRolesToAdmin---testMenuSoaDashboard()
                                            ---testMenuSoaManager()
  --removed case of soa

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78473 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 03:26:33 +00:00
fgzhang
9b4e314c54 selenium:update license to latest version for test 5.1.0 trunk
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78442 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 02:35:03 +00:00
fgzhang
2dce88cacb selenium:update license to latest version for test 5.1.0 trunk
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78441 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 02:34:39 +00:00
fzhong
76b1f45f5b SWTBot: add test TAggregateRowTest and TSortRowTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78426 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-20 01:57:01 +00:00
msjian
8221bb2b2a TDQ-4693 (TDQ-4559): Add "switch context" menu on file connection
git-svn-id: http://talendforge.org/svn/tos/trunk@78412 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-17 10:09:39 +00:00
dfcao
a69a7cc611 SWTBot: add test RunJobTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@78406 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-17 10:01:22 +00:00
cli
7c46ad1c27 TDI-19230: enhance the performance for review dialog.
git-svn-id: http://talendforge.org/svn/tos/trunk@78359 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-17 05:14:01 +00:00
wchen
7aab2af2ec bug TDI-19751 fixed:fix a Routine can't be cast to Bean problem when logon a main project with referenced project and sub-ref.
git-svn-id: http://talendforge.org/svn/tos/trunk@78346 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-17 03:22:06 +00:00
zshen
e58524fc7a TDQ-4313 TDQ-4402
add a method to compute dependency for indicator.
add one adjust for decide whether the element can be import successful and show a warn after select.
change the compare method to care for uuid 

git-svn-id: http://talendforge.org/svn/tos/trunk@78337 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-16 10:36:18 +00:00
cli
273f17988d TDI-19490: fixed the userdefined folder to be lost.
git-svn-id: http://talendforge.org/svn/tos/trunk@78330 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-16 08:33:28 +00:00
hwang
6696ad4ceb TDI-19714:Oracle connection displays all the tables from the recycle bin.
git-svn-id: http://talendforge.org/svn/tos/trunk@78316 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-16 03:39:09 +00:00
xqliu
b9d32f24c8 TDQ-4329 TDQ-4343 Delete DatabaseContentRetriever and its test class from trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@78300 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-15 10:11:12 +00:00
plv
e7e1b45263 bug TDI-19653 fixed:when retrieve schema, the DB type changed
git-svn-id: http://talendforge.org/svn/tos/trunk@78290 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-15 07:59:00 +00:00
hwang
6437849dd5 TDI-19714:Oracle connection displays all the tables from the recycle bin.
git-svn-id: http://talendforge.org/svn/tos/trunk@78282 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-15 07:06:55 +00:00
ycbai
56cf9334c0 bug TDI-18244 modified: Cannot retrieve synonym Schema in 4.1.3
git-svn-id: http://talendforge.org/svn/tos/trunk@78271 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-15 03:28:39 +00:00
plv
18f681de63 bug TDI-19623 fixed:Welcome screen needs small text adjustments
git-svn-id: http://talendforge.org/svn/tos/trunk@78249 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-14 10:04:30 +00:00
plv
4801212518 bug TDI-19623 fixed:Welcome screen needs small text adjustments
git-svn-id: http://talendforge.org/svn/tos/trunk@78248 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-14 10:03:38 +00:00
zwzhao
34f7f17bf4 bug TDI-19603 fixed : tELTOracleXXXX : column name including special charater causes SQL exception
git-svn-id: http://talendforge.org/svn/tos/trunk@78244 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-14 09:26:08 +00:00
wchen
ed6d79e138 bug TDI-19458 fixed:The xPath prefix should be editable in mdm receive wizard, and when dnd a receive metadata to job the xPath prefix in the component should take value from repository and become not editable.
git-svn-id: http://talendforge.org/svn/tos/trunk@78234 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-14 07:35:26 +00:00
hcyi
c8058b72ae bug TDI-18651 fixed : demo project can not export as talend project .
git-svn-id: http://talendforge.org/svn/tos/trunk@78198 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-13 08:12:55 +00:00
klliu
a8c8cbac22 TDQ-249 TDQ-4659
fixed could not correctly create connection for sso.

git-svn-id: http://talendforge.org/svn/tos/trunk@78197 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-13 08:00:35 +00:00
sizhaoliu
eb4ab2c51c backport script supporting subversion-1.7
git-svn-id: http://talendforge.org/svn/tos/trunk@78183 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-12 17:27:39 +00:00
sgandon
77ec7d4266 Fix Bug TDI-19655 : after create amc connection,click amc,there is error
http://jira.talendforge.org/browse/TDI-19655

git-svn-id: http://talendforge.org/svn/tos/trunk@78179 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-10 17:37:30 +00:00
fwang
60b53e02ba bug TDI-19395 fixed:Unhandled exception retrieving DB schema
git-svn-id: http://talendforge.org/svn/tos/trunk@78170 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-10 10:36:31 +00:00
hwang
158d40dcf3 TDI-18982:the "delete" action in right click menu on all items display messy code(2012-2-10)
git-svn-id: http://talendforge.org/svn/tos/trunk@78166 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-10 10:10:59 +00:00
zwzhao
6bb6e1974e bug TDI-19566 fixed : Rename Route which can include invalid characters
git-svn-id: http://talendforge.org/svn/tos/trunk@78104 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-10 03:03:59 +00:00
klliu
f1b9fa9cc7 TDQ-4645 Add "PackageFilter" as TagValue in connection file, fix on trunk.
git-svn-id: http://talendforge.org/svn/tos/trunk@78101 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-10 02:51:08 +00:00
hwang
82ac26c3a4 TDI-19594:can not update documentation
git-svn-id: http://talendforge.org/svn/tos/trunk@78099 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-10 02:27:39 +00:00
klliu
af9a0dfb18 TDQ-4584 TDQ-4650 on trunk
remove unnecessary parameters

git-svn-id: http://talendforge.org/svn/tos/trunk@78086 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-09 10:15:20 +00:00
plv
6d5d27b303 bug TDQ-1580 fixed:Cancel an increased Document versionning does not work
git-svn-id: http://talendforge.org/svn/tos/trunk@78078 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-09 09:07:25 +00:00
ycbai
2036c1aa08 bug TDI-19184 fixed: tMap interface globalMap key panel too narrow problem in mac os
git-svn-id: http://talendforge.org/svn/tos/trunk@78065 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-09 07:32:04 +00:00
plv
f0f31f480d bug TDQ-1580 fixed:Cancel an increased Document versionning does not work
git-svn-id: http://talendforge.org/svn/tos/trunk@78025 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-08 06:34:53 +00:00
wchen
58f6a01d34 bug TDI-18781 fixed:Not support assign a "service" to a Business Model
git-svn-id: http://talendforge.org/svn/tos/trunk@78020 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-08 05:56:22 +00:00
fwang
2a864b3e9f bug TDI-19547 fixed:Retreive db2 synonym don't work
git-svn-id: http://talendforge.org/svn/tos/trunk@78019 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-08 05:54:47 +00:00
klliu
390393876e TDQ-4584 TDQ-4650 fix on trunk
1.extract a method to check file connection is available and put it to FileConnectionCntextUtils,shareing with tos.
2.upadte the logic of ConnectionUtils.isConnectionAvailable

git-svn-id: http://talendforge.org/svn/tos/trunk@77998 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-08 02:27:25 +00:00
wchen
1868bf3a34 bug TDI-19553 fixed: Unhandled event loop exception when trying to create an MDM connection in DI repo with SVN
git-svn-id: http://talendforge.org/svn/tos/trunk@77942 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-07 04:02:26 +00:00
wchen
f61b837db6 bug TDI-19553 fixed: Unhandled event loop exception when trying to create an MDM connection in DI repo with SVN
git-svn-id: http://talendforge.org/svn/tos/trunk@77941 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-07 03:55:02 +00:00
nrousseau
44e1e18c3d bug TDI-19552 fixed: fix a problem of refresh and a problem to open the SQL Builder. Limit at the same time the number of tables who can be retrieved in the sql builder (will need to add a preference in the future)
git-svn-id: http://talendforge.org/svn/tos/trunk@77917 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-06 10:54:06 +00:00
qiongli
9bce0a4378 TDQ-4498 TDQ-4508 backport to trunk.
git-svn-id: http://talendforge.org/svn/tos/trunk@77851 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-06 03:34:23 +00:00
xqliu
e4308e749c TDQ-4571 delete the commented method to keep the code clean
git-svn-id: http://talendforge.org/svn/tos/trunk@77844 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-06 03:01:38 +00:00
fwang
4d51ffed16 bug TDI-19382 fixed:Oracle:Retrieve Synonym, NPE error
git-svn-id: http://talendforge.org/svn/tos/trunk@77823 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-03 11:48:34 +00:00
plv
f746eda214 bug TDI-19496 fixed:create a jdbc connection ,create a job,click to stats&logs,choose the db,the url is null
git-svn-id: http://talendforge.org/svn/tos/trunk@77805 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-03 10:14:14 +00:00
ycbai
372944468b bug TDI-18289 fixed: Can't retrive table schema with specific ODBC driver
git-svn-id: http://talendforge.org/svn/tos/trunk@77768 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-03 07:26:13 +00:00
xqliu
2294ae4a38 TDQ-4474 TDQ-4572 1) modify the logic of don't reload connection; 2) remove the class ConfirmReloadConnectionUtils, 3) avoid a potential NPE of the method of DatabaseWizard.performFinish()'s tdqRepService
git-svn-id: http://talendforge.org/svn/tos/trunk@77758 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-03 07:02:54 +00:00
ycbai
1c0793eb17 bug TDI-18289 fixed: Can't retrive table schema with specific ODBC driver
git-svn-id: http://talendforge.org/svn/tos/trunk@77753 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-03 06:45:37 +00:00
jwang
7f206c038e bug TDI-19519 fixed : [XML Repository]Each time one attribute is drag&drop from the input repository, it will add one _ in front of the name of the attribute.
git-svn-id: http://talendforge.org/svn/tos/trunk@77751 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-03 06:30:34 +00:00
plv
3b9bd79834 bug TDI-19496 fixed:create a jdbc connection ,create a job,click to stats&logs,choose the db,the url is null
git-svn-id: http://talendforge.org/svn/tos/trunk@77748 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-03 06:24:43 +00:00
plv
a4eaf1a1dc git-svn-id: http://talendforge.org/svn/tos/trunk@77744 f6f1c999-d317-4740-80b0-e6d1abc6f99e 2012-02-03 06:19:36 +00:00
cli
435eaca69a TDI-19352: fixed the problem for tAmazonOracleXXX
git-svn-id: http://talendforge.org/svn/tos/trunk@77735 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-03 05:13:13 +00:00
nrousseau
3026165fb1 bug TDI-19434 fixed: fix a problem of performance in the xml wizard
git-svn-id: http://talendforge.org/svn/tos/trunk@77687 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-03 01:28:03 +00:00
cli
aa9f3bc874 TDI-19352: fix a problem for dnd on trunk only.
git-svn-id: http://talendforge.org/svn/tos/trunk@77667 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-02 10:36:38 +00:00
cli
970276860f TDI-19230: refactor and enhance performance.
git-svn-id: http://talendforge.org/svn/tos/trunk@77650 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-02 10:00:34 +00:00
wchen
67580ef4d8 bug TDI-19509 fixed: there are a lot of tujs down
git-svn-id: http://talendforge.org/svn/tos/trunk@77645 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-02 09:34:57 +00:00
ycbai
82ffea8684 bug TDI-19471 modified: Impossible to retrieve any schema from copybook
git-svn-id: http://talendforge.org/svn/tos/trunk@77621 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-02 08:19:15 +00:00
nrousseau
759463d7e8 bug TDI-6463 fixed: improve / review code done before
git-svn-id: http://talendforge.org/svn/tos/trunk@77610 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-02 07:40:53 +00:00
nrousseau
4a80a8d77a bug TDI-6463 fixed: improve / review code done before
git-svn-id: http://talendforge.org/svn/tos/trunk@77609 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-02 07:40:43 +00:00
xqliu
46d148d045 TDQ-4474 TDQ-4572 enhance the confirm dialog, add a radio group: reload or don't reload the connection
git-svn-id: http://talendforge.org/svn/tos/trunk@77586 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-02 04:08:30 +00:00
ycbai
a303310952 bug TDI-19471 fixed: Impossible to retrieve any schema from copybook
git-svn-id: http://talendforge.org/svn/tos/trunk@77540 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-01 09:56:54 +00:00
nrousseau
b1d5dcbc02 bug TDI-19399 fixed: enhance and fix a problem when close the studio later. Avoid to keep too many things in history. Note that we don't really use actually the editor's history, so we can keep really minimum in memory.
git-svn-id: http://talendforge.org/svn/tos/trunk@77506 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-01 08:15:13 +00:00
nrousseau
e809055cc5 bug TDI-19399 fixed: enhance and fix a problem when close the studio later. Avoid to keep too many things in history. Note that we don't really use actually the editor's history, so we can keep really minimum in memory.
git-svn-id: http://talendforge.org/svn/tos/trunk@77503 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-01 08:01:14 +00:00
wchen
6f46436655 bug TDI-18780 fixed: After migration from 3.2.3, Retrieve schema problems in 4.2.3
git-svn-id: http://talendforge.org/svn/tos/trunk@77495 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-01 07:11:08 +00:00
yhbai
4147964e52 SWTBot: add test about generate user define report and modify fail tests
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@77453 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-01 02:15:47 +00:00
nrousseau
34f8ca57cf bug TDI-19399 fixed: avoid some exceptions found in the logs provided
git-svn-id: http://talendforge.org/svn/tos/trunk@77448 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-01 01:58:55 +00:00
nrousseau
a78874849b bug TDI-19399 fixed: avoid some exceptions found in the logs provided
git-svn-id: http://talendforge.org/svn/tos/trunk@77447 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-02-01 01:58:47 +00:00
jwang
ba54a62a50 bug TDI-19315 fixed : Joblet_there are some garbage strings on 'Edit Properties' module of joblet.
git-svn-id: http://talendforge.org/svn/tos/trunk@77407 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-31 08:26:45 +00:00
dfcao
e86c794988 SWTBot: add test ValuesAsTableTabOfContextTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@77401 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-31 07:33:26 +00:00
wchen
ad7cbbf022 bug TDI-19229 fixed: Can't list connection (Metadata) from reference project
git-svn-id: http://talendforge.org/svn/tos/trunk@77396 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-31 06:44:10 +00:00
fzhong
07d8d39d49 SWTBot: add test for context UpdateDependentJobsTest and VariablesTabTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@77389 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-31 06:02:38 +00:00
dfcao
033f70e7f5 SWTBot: add test ValuesAsTreeTabOfContextTest
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@77384 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-31 05:36:12 +00:00
jwang
1e87ae8ceb bug TDI-18270 fixed : Tweaks for retrieve schema wizard.
git-svn-id: http://talendforge.org/svn/tos/trunk@77343 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-30 09:31:35 +00:00
wchen
7cf1af583b bug TDI-19149 fixed: tXMLMap: import from MDM metadata, root element and looping issues
git-svn-id: http://talendforge.org/svn/tos/trunk@77332 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-30 07:46:25 +00:00
wwang
e95b73a0cc fix Bug TDI-19179: a better solution for ignore the namespace prefix in xpath
git-svn-id: http://talendforge.org/svn/tos/trunk@77297 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-29 08:43:37 +00:00
wwang
4322619001 fix Bug TDI-19179: delete the xpath namespace prefix.
git-svn-id: http://talendforge.org/svn/tos/trunk@77289 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-29 05:39:12 +00:00
rdubois
6c48e3d867 TDI-19445: add the defaultLength property for the LONG type in the oracle mapping file
git-svn-id: http://talendforge.org/svn/tos/trunk@77285 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-27 13:11:16 +00:00
rdubois
ba61e62b17 TDI-19419: add code format
git-svn-id: http://talendforge.org/svn/tos/trunk@77271 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-27 08:35:15 +00:00
rdubois
020a0f9f33 TDI-19419: add annotations to fix the warnings issue
git-svn-id: http://talendforge.org/svn/tos/trunk@77268 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-26 17:09:33 +00:00
mhirt
ff54a83f4a Update copyright to 2012
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@77221 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-24 01:22:22 +00:00
mhirt
d1a9ef8d23 Update copyright to 2012
git-svn-id: http://talendforge.org/svn/tos/trunk@77219 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-24 01:14:15 +00:00
sgandon
6365d75568 Changed Eclipse IDE compile order to avoid many errors during a full clean/rebuild
git-svn-id: http://talendforge.org/svn/tos/trunk@77203 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-23 11:12:49 +00:00
zshen
dd369d074e TDQ-4313 TDQ-4403 resovle a bug about create some element which in TOS can not be complete
git-svn-id: http://talendforge.org/svn/tos/trunk@77184 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-20 14:05:26 +00:00
zshen
abab76825c TDQ-4313 TDQ-4403 when create a new connection and check it can not find real name.
git-svn-id: http://talendforge.org/svn/tos/trunk@77158 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-20 06:36:06 +00:00
hwang
74c67d448b TDI-19379:Studio/Metadata/MDM: drag different node to "Fileds-to-extract" column name is truncated
git-svn-id: http://talendforge.org/svn/tos/trunk@77151 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-20 05:35:06 +00:00
zshen
aac15e9cb7 TDQ-4313 TDQ-4403 use displayName attribute on the MDMWizard
git-svn-id: http://talendforge.org/svn/tos/trunk@77101 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-19 08:33:22 +00:00
zshen
89cce0bf3e TDQ-4313 TDQ-4403 use displayName attribute on the MDMWizard
git-svn-id: http://talendforge.org/svn/tos/trunk@77100 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-19 08:33:06 +00:00
zshen
ce3c303f23 TDQ-4313 TDQ-4536 add one attribute(displayName) on the property
git-svn-id: http://talendforge.org/svn/tos/trunk@77099 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-19 08:29:34 +00:00
zwzhao
95e5021dc5 bug TDI-6463 fixed : Export Job Script - include Required Talend Modules for tCreateTable
git-svn-id: http://talendforge.org/svn/tos/trunk@77066 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-19 06:33:16 +00:00
atelesh
944c1c484b TESB-4572 - refactoring: move Talend ESB Jobs API to webservice plug-in
git-svn-id: http://talendforge.org/svn/tos/trunk@77018 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-18 14:13:56 +00:00
zwzhao
d8fb8b0949 bug TDI-18987 fixed : Create a new service, the status drop donw list is empty
git-svn-id: http://talendforge.org/svn/tos/trunk@76949 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-18 06:43:48 +00:00
fwang
774c9c9a1f bug TDI-17155 fixed:Use a query in a job, update this query can not detect the update
git-svn-id: http://talendforge.org/svn/tos/trunk@76930 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-18 02:49:35 +00:00
ldong
2fbe58db6f This commit fixes TDI-18625:NPE when trying to view the installation details in the studio.
git-svn-id: http://talendforge.org/svn/tos/trunk@76875 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-17 06:40:40 +00:00
zshen
c5d50633df TDQ-4462 TDQ-4467 lost one case about mdmWizard
git-svn-id: http://talendforge.org/svn/tos/trunk@76866 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-17 05:44:56 +00:00
zshen
4cb8403bad TDQ-4462 TDQ-4467 add some code for the comment of public and remove some commented lines in the methods
git-svn-id: http://talendforge.org/svn/tos/trunk@76846 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-16 16:05:29 +00:00
zshen
66be8a467a TDQ-4462 TDQ-4467 add some code for the comment of public and remove some commented lines in the methods
git-svn-id: http://talendforge.org/svn/tos/trunk@76845 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-16 16:05:15 +00:00
zwzhao
e8d4cbbf36 bug TDI-6463 fixed : Export Job Script - include Required Talend Modules for tCreateTable
git-svn-id: http://talendforge.org/svn/tos/trunk@76837 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-16 10:10:20 +00:00
ycbai
9d0145db24 bug TDI-19253 fixed: Metedata:XMLInput: add one attribute, schema can not updated automaticly
git-svn-id: http://talendforge.org/svn/tos/trunk@76809 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-16 07:30:59 +00:00
zshen
85119cb0ee TDQ-4462 TDQ-4467 backport code
git-svn-id: http://talendforge.org/svn/tos/trunk@76765 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-15 14:33:24 +00:00
zshen
89eee18eed TDQ-4462 TDQ-4467 backport code
git-svn-id: http://talendforge.org/svn/tos/trunk@76764 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-15 14:33:07 +00:00
cli
fc740445d0 feature TDI-19094 added: refactor the dnd function to config it in extension point.
git-svn-id: http://talendforge.org/svn/tos/trunk@76740 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-14 06:45:09 +00:00
qiongli
54523e781e TDQ-4280 TDQ-4269 backport to trunk.
git-svn-id: http://talendforge.org/svn/tos/trunk@76728 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-13 10:57:53 +00:00
hywang
ab54afcb2f Bug TDI-18244 fixed:Cannot retrieve synonym Schema in 4.1.3
git-svn-id: http://talendforge.org/svn/tos/trunk@76674 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-13 03:33:33 +00:00
hywang
2849c2aa58 Bug TDI-18244 fixed:Cannot retrieve synonym Schema in 4.1.3
git-svn-id: http://talendforge.org/svn/tos/trunk@76673 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-13 03:33:19 +00:00
zwzhao
a66f324917 bug TDI-19305 fixed : Oracle RAC URL parameter has double quote when use in repository mode
git-svn-id: http://talendforge.org/svn/tos/trunk@76663 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-13 03:04:52 +00:00
wwang
e591e4d779 fix Bug TDI-19179: If one XSD contains some prefixes, later it's impossible to read a xml without prefix.
git-svn-id: http://talendforge.org/svn/tos/trunk@76636 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-12 09:32:16 +00:00
amaumont
96ab934eb9 TDI-19172 add 2 plan with a same task, the second plan doesn't work well
=> compilation error fixed on getRequestId()

git-svn-id: http://talendforge.org/svn/tos/trunk@76621 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-12 08:25:01 +00:00
gliu
a96d00a733 [TESB-3837] added: Data Service name is not validated during service creation in Studio
git-svn-id: http://talendforge.org/svn/tos/trunk@76605 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-12 03:57:50 +00:00
jwang
12d391054f bug TDI-19285 fixed : Retrieved tables are not checked in ACCESS DB Retrieve Schema Wizard.
git-svn-id: http://talendforge.org/svn/tos/trunk@76601 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-12 03:21:49 +00:00
fwang
d68d4b1367 bug TDI-13127 fixed:when we create a project with the last charactor of the project name is Space,then it will throw error
git-svn-id: http://talendforge.org/svn/tos/trunk@76600 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-12 03:17:16 +00:00
jwang
591c50d2ad bug TDI-13267 fixed : Fix try-catch exception disposal block.
git-svn-id: http://talendforge.org/svn/tos/trunk@76513 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-11 03:31:19 +00:00
fwang
a25819f9de bug TDI-17155 fixed:Use a query in a job, update this query can not detect the update
git-svn-id: http://talendforge.org/svn/tos/trunk@76497 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-11 02:31:20 +00:00
dlin
2cb305af43 This commit fixes USV-3:Extension point to restrict the Remote Servers & CommandLine Servers in the Studio Remote Run.
git-svn-id: http://talendforge.org/svn/tos/trunk@76453 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-10 08:48:59 +00:00
plv
1a05b14617 bug TDI-17097 fixed: postgresql after refresh sqlbuilder,on the repository all the table list.
git-svn-id: http://talendforge.org/svn/tos/trunk@76434 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-10 07:47:42 +00:00
zshen
cfba5cfed4 TDQ-4384 TDQ-4396 change some message and add one chance for user to cancel the change.
git-svn-id: http://talendforge.org/svn/tos/trunk@76382 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-09 14:38:29 +00:00
msjian
33a952e8bd TDI-19093 (TDI-19063) fixed : modified the sql and parameter
git-svn-id: http://talendforge.org/svn/tos/trunk@76336 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-09 10:01:11 +00:00
jwang
1dc96abd59 bug TDI-13267 fixed : A locked job can be moved.
git-svn-id: http://talendforge.org/svn/tos/trunk@76331 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-09 09:45:02 +00:00
zshen
ba5785305c TDQ-4384 TDQ-4396 change some message and add one chance for user to cancel the change.
git-svn-id: http://talendforge.org/svn/tos/trunk@76314 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-09 08:10:40 +00:00
hcyi
5ff1a87699 bug TDI-19173 modified : Multiple occurrence not usable in the xpath value of the fields of Input XML wizards .
git-svn-id: http://talendforge.org/svn/tos/trunk@76288 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-09 04:52:20 +00:00
zshen
6dd2f2bdfa TDQ-4384 TDQ-4396 if the url of connection have been changed and stdio contain of tdq then reload it.
git-svn-id: http://talendforge.org/svn/tos/trunk@76270 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-08 11:24:39 +00:00
cli
931ecf2826 bug TDI-19214 fixed: when switch project, will login a test project auto.
git-svn-id: http://talendforge.org/svn/tos/trunk@76252 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-07 07:56:26 +00:00
bzhou
aa86d884ae TDQ-4399 TDQ-4383 backport to trunk.
git-svn-id: http://talendforge.org/svn/tos/trunk@76221 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-06 14:19:49 +00:00
hwang
f2865f3394 TDI-17645 :Salesforce schema retrieval is incomplete when selecting all schemas
git-svn-id: http://talendforge.org/svn/tos/trunk@76220 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-06 13:52:06 +00:00
nrousseau
9a9af9c030 bug TDI-18361 and TDI-17624 fixed: fix problem of update / reload schema, even if the original db is different
git-svn-id: http://talendforge.org/svn/tos/trunk@76212 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-06 11:19:28 +00:00
amaumont
ebfc23fc1c JobConductor (branch 5.0): Items cache could not work correctly due to buggy hashcode/equals in keys for cache
git-svn-id: http://talendforge.org/svn/tos/trunk@76194 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-06 10:16:22 +00:00
ycbai
e52368a94b bug TDI-19176 fixed: Edition of the xml mapping (from xsd file) does not update correctly the input component
git-svn-id: http://talendforge.org/svn/tos/trunk@76191 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-06 10:13:01 +00:00
gdbu
c68eac0139 TDQ-4283 : When covering the original connection, adding that the dangers of operating instructions.
git-svn-id: http://talendforge.org/svn/tos/trunk@76177 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-06 09:25:10 +00:00
xqliu
41a0ede05e TDQ-4108 TDQ-4429 backport TDQ-4162 on trunk
git-svn-id: http://talendforge.org/svn/tos/trunk@76171 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-06 09:05:49 +00:00
hywang
c04298846b Bug TDI-19174 fixed:Out Of Bound Exception-61
git-svn-id: http://talendforge.org/svn/tos/trunk@76151 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-06 07:02:17 +00:00
sgandon
297cc5273f Fix an NPE in tRowGenerator when editor is closed and TableEditorManager is refreshed meanwhile.
git-svn-id: http://talendforge.org/svn/tos/trunk@76073 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-05 14:44:34 +00:00
amaumont
07f3697c5f TDI-19226 Bad locking in ExecutionTaskRefresher?, this may imply undesired concurrency
=> Fixed by using the new class BoundedExecutor?, which blocks the main thread waiting for a new free thread in the pool

git-svn-id: http://talendforge.org/svn/tos/trunk@76035 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-05 10:39:04 +00:00
ldong
f3fb92a1c3 This commit fixes TDI-18737:Migration problem from 3.1.3 to 4.2.3.
git-svn-id: http://talendforge.org/svn/tos/trunk@76009 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-05 09:49:27 +00:00
hcyi
4958519199 bug TDI-19180 fixed : Wizard Input xml, possible to have duplicate columns .
git-svn-id: http://talendforge.org/svn/tos/trunk@76003 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-05 08:48:58 +00:00
wchen
2f47a80edc bug TDI-17768 fixed:Generated documentation for the tDB2Input component
git-svn-id: http://talendforge.org/svn/tos/trunk@75981 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-05 08:06:33 +00:00
klliu
2c4f72969a TDQ-4130 TDQ-4366
backport to trunk

git-svn-id: http://talendforge.org/svn/tos/trunk@75938 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-05 04:20:12 +00:00
ldong
17e1d369ad This commit fixes TDI-19114:Get Error Message and Unable to retrieve schema from ACCESS DB Wizards Once "Schema Table" is checked.
git-svn-id: http://talendforge.org/svn/tos/trunk@75931 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-05 03:44:45 +00:00
hwang
a289273f78 TDI-17294:auto-generated documentation is not update correctly
git-svn-id: http://talendforge.org/svn/tos/trunk@75886 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-04 10:20:41 +00:00
hcyi
b2f0b2b547 bug TDI-19173 fixed : Multiple occurrence not usable in the xpath value of the fields of Input XML wizards .
git-svn-id: http://talendforge.org/svn/tos/trunk@75879 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-04 09:49:12 +00:00
zwzhao
98f4219c20 bug TDI-17967 fixed : EBCDICInput to Database - wrong column names
git-svn-id: http://talendforge.org/svn/tos/trunk@75819 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-01-04 03:30:36 +00:00
wchen
77b8e2a1c2 bug TDI-19169 fixed:Could not delete schema
git-svn-id: http://talendforge.org/svn/tos/trunk@75687 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-30 08:39:19 +00:00
ldong
d91ffee42b This commit fixes TDI-12846:Cannot modify schema of positional file.
git-svn-id: http://talendforge.org/svn/tos/trunk@75672 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-30 06:26:06 +00:00
ycbai
8334a93f31 bug TDI-18959 fixed: Output xml schema, need to be able to drag&drop from the tree to the metadata.
git-svn-id: http://talendforge.org/svn/tos/trunk@75621 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-29 10:16:54 +00:00
wchen
5cbb0ab195 comment: fix an error AMC_RAP build
git-svn-id: http://talendforge.org/svn/tos/trunk@75531 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-29 02:50:35 +00:00
wchen
f9b4e317dd comment: fix an error AMC_RAP build
git-svn-id: http://talendforge.org/svn/tos/trunk@75530 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-29 02:47:25 +00:00
amaumont
3cc30762a4 TDI-19150 Jobserver : Deployment folder is always ./TalendJobserverFiles
=> resolved by fixing properties name, adding warning if property not found

git-svn-id: http://talendforge.org/svn/tos/trunk@75520 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-28 11:17:13 +00:00
hwang
15d8554d45 TDI-18303:Undo of tMap changes doesn't work
git-svn-id: http://talendforge.org/svn/tos/trunk@75463 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-28 04:04:07 +00:00
wchen
7bf81ed93d bug TDI-18718 fixed: Unable to define the 'date' values for the default context variables, when the language is 'French'
git-svn-id: http://talendforge.org/svn/tos/trunk@75442 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-28 02:00:18 +00:00
msjian
2a2991a842 TDI-19093 (TDI-19063) fixed : modify the parameter and reset the catalog/schema value
git-svn-id: http://talendforge.org/svn/tos/trunk@75422 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-27 11:12:57 +00:00
msjian
eb47161572 TDI-19093 (TDI-19063) fixed : modify the parameter and reset the catalog/schema value
git-svn-id: http://talendforge.org/svn/tos/trunk@75421 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-27 11:12:31 +00:00
wwang
f033309e64 fix Bug TDI-18475: tXMLMap can not manage transformationof two independence xml file.
git-svn-id: http://talendforge.org/svn/tos/trunk@75362 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-27 06:06:06 +00:00
qiongli
0405fb26de TDQ-4280 TDQ-4269:backport to trunk.
git-svn-id: http://talendforge.org/svn/tos/trunk@75335 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-27 02:55:32 +00:00
nrousseau
85e17024d8 bug TMDM-3162 fixed: move additionalInfoMap from services to standard properties ecore, and add a getAdditionalProperties with it.
git-svn-id: http://talendforge.org/svn/tos/trunk@75298 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-26 09:56:31 +00:00
msjian
b8e909edc4 TDI-19093 (TDI-19063) fixed : Add the possibility to retrieve DQ Rules from a component
git-svn-id: http://talendforge.org/svn/tos/trunk@75215 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-23 10:33:29 +00:00
ldong
ca5cb0f240 This commit fixes USV-3:Extension point to restrict the Remote Servers & CommandLine Servers in the Studio Remote Run.
git-svn-id: http://talendforge.org/svn/tos/trunk@75184 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-23 06:00:54 +00:00
ycbai
0f02addded bug TDI-19032 fixed: rename folder problem
git-svn-id: http://talendforge.org/svn/tos/trunk@75161 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-23 03:53:47 +00:00
zpbai
09e16538f0 selenium: replace " to '
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@74998 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-21 07:35:32 +00:00
mzhao
e03d7cba8b TDQ-4227 Don't set the uiSchema parameter from 4.2 (included).
git-svn-id: http://talendforge.org/svn/tos/trunk@74990 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-21 06:51:40 +00:00
dlin
eda7639328 This commit fixes TDI-18872:updating a context groups, corrupts any locked jobs when it tries to update the jobs which are using the context group.
git-svn-id: http://talendforge.org/svn/tos/trunk@74987 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-21 06:33:03 +00:00
fgzhang
693f772806 selenium: modified parameter'value of provider name
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@74985 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-21 05:40:47 +00:00
fgzhang
fc406d370b selenium:**monitor**
TestEsbServicePayloadContentsDisplay---testPopUpPayLoadContens()
TestEsbServicePayloadContentsDisplay---testEnvelopeOpenClose()
  --modified xpath of 'Response in' envelope
  --add click 'Refresh' before click 'Request Out' envelope
  --add codes of mousedown monitor info and press 'Down' key after click 'Refresh'
TestEsbServiceActivityPageDisplay---testMonitorGoToPrePage()
  --modified xpath of previous page

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@74984 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-21 05:38:01 +00:00
fgzhang
009be1b04d selenium:**Servicelocator**
TestServiceLocator---testServicePerColumnsValue()
TestServiceLocator---testCheckSortAscendingSortDescending()
TestServiceLocator---testSortTableByClickOnColumnHeader()
  --modified xpath of 'service endpoint'

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@74982 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-21 05:21:57 +00:00
fgzhang
1bae5d6b77 selenium:TestAddServerWithTalendRuntime---testAddRuntimeServerOfUncheckActive()
--modified xpath of runtime'status

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@74961 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-21 01:48:30 +00:00
fgzhang
023914c09f selenium:TestServerFilters---testServerFiltersInJobconductor()
--modified assert to true of check servre list in jobconductor page

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@74944 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-20 10:06:14 +00:00
fgzhang
baf7ee66a3 selenium:**plan**
Plan---runPlanAndCheck()
TestPlanParameters---testCheckPlanExecutionLogs()
TestPlanParameters---testChangePlanParametersNotClickOverride()
TestAddTriggerAddFileTrigger---testAddTriggerAddFileTriggerExistFalse
  --update xpath of task'status 'Ok' in 'Planned task tree view'
TestAddTriggerAddFileTrigger---testAddTriggerAddFileTriggerExistFalse()
  --invoking method(runPlanAndCheck)

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@74941 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-20 10:04:59 +00:00
fgzhang
5becad20a3 selenium:**menu**
TestMenuDisplayBeforeAuthorizeAllRolesToAdmin---testMenuConfiguration()
  --removed code of check "Conductor (7 Parameters')" 

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@74912 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-20 08:00:25 +00:00
zshen
1bc32b75eb TDQ-4145 TDQ-4216 switch page number in column analysis result page will cause "No more handles issue" for large data
git-svn-id: http://talendforge.org/svn/tos/trunk@74869 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-19 12:03:15 +00:00
hwang
ed40d14024 USV-5:IDragAndDropServiceHandler.filterNeededComponents(...) never called?
git-svn-id: http://talendforge.org/svn/tos/trunk@74830 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-19 08:32:07 +00:00
bzhou
4e1af0c860 TDQ-4215 backport to trunk.
git-svn-id: http://talendforge.org/svn/tos/trunk@74823 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-19 07:56:10 +00:00
fgzhang
4e4a24e7a0 selenium:TestAuditProjectContainSpace---testAuditProjectContainsSpace()
--modified project name to "project_space" of method(this.checkReportPdf(defaultPath, "project_space", tjava))

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@74798 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-19 03:28:19 +00:00
qiongli
1cf52449c9 TDQ-3797 need to update DQ analyses when retrive delimited file and it is TOP.
git-svn-id: http://talendforge.org/svn/tos/trunk@74791 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-19 02:45:56 +00:00
fgzhang
2d9d764e20 selenium:SoaUtils
--update class(SoaUtils) extends to Audit

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@74781 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-19 02:29:27 +00:00
fgzhang
753c9cde06 selenium:
**Notification**
update notification.xml
  --change word(Suscribe) to Subscribe of jobserver notification'description

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@74773 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-19 02:20:32 +00:00
fgzhang
ef7be9d63a selenim:update cases:
**Audit**
1.TestAuditProjectContainSpace---testAuditProjectContainsSpace()
  --removed code of check audit list links
2.TestAudit---testAuditBranch()
  --removed code of check job name in PDF file

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@74771 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-19 01:57:23 +00:00
fgzhang
14a662ca6e selenium:**Task**
TestAddTriggerAddSimpleTrigger---testAddTriggerAddSimpleTriggerAddWrongFormFileds()
  --change text(Number of triggerings:) to (Number of repetitions:)

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@74768 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-19 01:51:28 +00:00
fgzhang
fc849a9209 selenium:**Soa**
SoaUtils---addSoa()
  --Contact input'value type is changed
  --modified description input'id

git-svn-id: http://talendforge.org/svn/tis_shared/trunk@74767 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-19 01:49:41 +00:00
zpbai
041cf22047 selenium: update the method for checking info the pdf's context. Case Insensitive or not
git-svn-id: http://talendforge.org/svn/tis_shared/trunk@74766 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-19 01:49:20 +00:00
hwang
12043c8ca1 USV-5:IDragAndDropServiceHandler.filterNeededComponents(...) never called?
git-svn-id: http://talendforge.org/svn/tos/trunk@74765 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2011-12-19 01:45:42 +00:00
5329 changed files with 189233 additions and 234521 deletions

View File

@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.eclipse.datatools-feature</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.FeatureBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.FeatureNature</nature>
</natures>
</projectDescription>

View File

@@ -1 +0,0 @@
bin.includes = feature.xml

View File

@@ -1,167 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.eclipse.datatools_feature"
label="Datatools_feature Feature"
version="2.2.0.qualifier"
provider-name="Eclipse.org">
<description url="http://www.example.com/description">
Eclipse project for data access
</description>
<copyright url="http://www.example.com/copyright">
[Enter Copyright Description here.]
</copyright>
<license url="http://www.example.com/license">
[Enter License Description here.]
</license>
<url>
<update label="CORE Talend update site for milestones" url="http://talendforge.org/core/updatesite/testing/"/>
</url>
<requires>
<import plugin="org.eclipse.core.runtime" version="3.2.0" match="greaterOrEqual"/>
<import plugin="com.ibm.icu" version="3.4.4" match="greaterOrEqual"/>
<import plugin="org.eclipse.datatools.connectivity.oda" version="3.0.1" match="greaterOrEqual"/>
<import plugin="org.eclipse.swt" version="3.5.0" match="compatible"/>
<import plugin="org.eclipse.core.commands" version="3.4.0" match="compatible"/>
<import plugin="org.eclipse.equinox.common" version="3.2.0" match="compatible"/>
<import plugin="org.eclipse.osgi" version="3.5.0" match="compatible"/>
<import plugin="org.eclipse.equinox.common" version="3.5.0" match="compatible"/>
<import plugin="org.eclipse.core.jobs" version="3.2.0" match="compatible"/>
<import plugin="org.eclipse.equinox.registry" version="3.4.0" match="compatible"/>
<import plugin="org.eclipse.equinox.preferences" version="3.2.0" match="compatible"/>
<import plugin="org.eclipse.core.contenttype" version="3.3.0" match="compatible"/>
<import plugin="org.eclipse.equinox.app" version="1.0.0" match="compatible"/>
<import plugin="org.eclipse.equinox.registry" version="3.2.0" match="compatible"/>
</requires>
<plugin
id="org.eclipse.datatools.connectivity.oda"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.datatools.enablement.oda.xml"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.swt"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.jface"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.apache.xerces"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.core.runtime"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="com.ibm.icu"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.core.commands"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.equinox.common"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.osgi"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.apache.xml.resolver"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.core.jobs"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.equinox.registry"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.equinox.preferences"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.core.contenttype"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.equinox.app"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.osgi.services"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="javax.servlet"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
</feature>

View File

@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@@ -1,6 +0,0 @@
bin
doc
*.jar
download
v*.scc
.settings

View File

@@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.eclipse.datatools.connectivity.oda</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@@ -1,15 +0,0 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: DTP Open Data Access
Bundle-SymbolicName: org.eclipse.datatools.connectivity.oda; singleton:=true
Bundle-Version: 3.0.3.200610171
Bundle-Vendor: Eclipse.org
Export-Package: org.eclipse.datatools.connectivity.oda,
org.eclipse.datatools.connectivity.oda.impl,
org.eclipse.datatools.connectivity.oda.util,
org.eclipse.datatools.connectivity.oda.util.logging,
org.eclipse.datatools.connectivity.oda.util.manifest
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.2.0",
com.ibm.icu;bundle-version="3.4.4";visibility:=reexport
Eclipse-LazyStart: true
Bundle-Activator: org.eclipse.datatools.connectivity.oda.util.OdaPlugin

View File

@@ -1,28 +0,0 @@
<html>
<head>
<title>About This Content</title>
</head>
<body>
<div>
<h3>About This Content</h3>
<p>May 2, 2006</p>
<h3>License</h3>
<p>The Eclipse Foundation makes available all content in this plug-in
(&quot;Content&quot;). Unless otherwise indicated below, the Content is
provided to you under the terms and conditions of the Eclipse Public License
Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available at <a
href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/legal/epl-v10.html</a>.
For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
<p>If you did not receive this Content directly from the Eclipse Foundation,
the Content is being redistributed by another party (&quot;Redistributor&quot;)
and different terms and conditions may apply to your use of any object code in
the Content. Check the Redistributors license that was provided with the
Content. If no such license exists, contact the Redistributor. Unless otherwise
indicated below, the terms and conditions of the EPL still apply to any source
code in the Content and such source code may be obtained at <a
href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
<p>&nbsp;</p>
</div>
</body>
</html>

View File

@@ -1,34 +0,0 @@
#
#************************************************************************
# Copyright (c) 2004, 2006 Actuate Corporation.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Actuate Corporation - initial API and implementation
#
#************************************************************************
#
source.. = src/
output.. = bin/
package.oda.jar = ./org/eclipse/datatools/connectivity/oda/
oda.src.dir = ./src/org/eclipse/datatools/connectivity/oda/
bin.includes = about.html,\
plugin.xml,\
.,\
schema/datasource.exsd,\
META-INF/
jar.includes = **/*.txt,\
**/*.xml,\
**/*.def,\
**/*.properties
javac.debug = on
javac.source = 1.4
javac.target = 1.4
build.result.dir = ./
temp.dir = ./tempdir/
plugin.destination = ./
javadoc.dir = doc/api/
download.dir = ./download/

View File

@@ -1 +0,0 @@
vss*.scc

View File

@@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
/**
*************************************************************************
* Copyright (c) 2004, 2006 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*
* $Id: plugin.xml,v 1.13 2006/03/10 00:43:15 lchan Exp $
*/
-->
<plugin>
<extension-point id="dataSource" name="Open Data Access Design and Run-time Extension" schema="schema/datasource.exsd"/>
</plugin>

View File

@@ -1,335 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Open Data Access</title>
<style>@import url("file:/D:/Lang/eclipse_32/plugins/org.eclipse.sdk_3.2.0.v20060605/book.css");</style>
<style>@import url("file:/D:/Lang/eclipse_32/configuration/org.eclipse.osgi/bundles/129/1/.cp/schema.css");</style>
</HEAD>
<BODY>
<H1><CENTER>Open Data Access</CENTER></H1>
<p></p>
<h6 class=CaptionFigColumn id=header>Identifier: </h6>org.eclipse.datatools.connectivity.oda.dataSource<p></p>
<h6 class=CaptionFigColumn id=header>Since: </h6>3.0
<p></p>
<p>
<h6 class=CaptionFigColumn id=header>Description: </h6>This extension point is used to support the extension of design-time and run-time data source access by a data application. Each extension must implement the Open Data Access (ODA) Java runtime interfaces defined in the <i>org.eclipse.datatools.connectivity.oda</i> package.</p>
<p><h6 class=CaptionFigColumn id=header>Configuration Markup:</h6></p>
<p class=code id=dtd>&lt;!ELEMENT <a name="e.extension">extension</a> (<a href="#e.dataSource">dataSource</a> , <a href="#e.dataSet">dataSet</a>+)&gt;</p>
<p class=code id=dtd>&lt;!ATTLIST extension</p>
<p class=code id=dtdAttlist>point&nbsp;CDATA #REQUIRED<p class=code id=dtdAttlist>id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class=code id=dtdAttlist>name&nbsp;&nbsp;CDATA #IMPLIED&gt;</p>
<p></p>
<ul class=ConfigMarkup id=attlistDesc>
</ul>
<br><p class=code id=dtd>&lt;!ELEMENT <a name="e.dataSource">dataSource</a> (<a href="#e.traceLogging">traceLogging</a>? , <a href="#e.properties">properties</a>? , <a href="#e.relationship">relationship</a>?)&gt;</p>
<p class=code id=dtd>&lt;!ATTLIST dataSource</p>
<p class=code id=dtdAttlist>id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class=code id=dtdAttlist>odaVersion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA "3.0"<p class=code id=dtdAttlist>defaultDisplayName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class=code id=dtdAttlist>driverClass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class=code id=dtdAttlist>setThreadContextClassLoader&nbsp;(true | false) "false"&gt;</p>
<p></p>
<p class=ConfigMarkup id=elementDesc>
The definition of a type of ODA data source extension for use at design-time and run-time.</p>
<br>
<ul class=ConfigMarkup id=attlistDesc>
<li><b>id</b> - A fully qualified ID that uniquely identifies this ODA data source extension within an ODA consumer application's environment. If a data source designer extension (that implements <i>org.eclipse.datatools.connectivity.oda.design.ui.dataSource</i> extension point) is available for this ODA driver, the value of this attribute must match that of the designer extension's <i>id</i> attribute in its data source element.</li>
<li><b>odaVersion</b> - Version of the ODA interfaces for which this driver is developed. This element is required and should take the format of Major.Minor or Major.Minor.Service (e.g. 3.0 or 2.0.1).</li>
<li><b>defaultDisplayName</b> - The display name of the ODA data source extension. Its value can be localized by using the plugin.properties mechanism. Default to the extension id if no display name is specified.
It can be used by an ODA consumer application's designer tool in displaying a list of ODA data source extensions, when they do not have a corresponding data source editor (data source UI extension point).</li>
<li><b>driverClass</b> - Concrete class that implements the <i>org.eclipse.datatools.connectivity.oda.IDriver</i> interface. This is the entry point of the ODA runtime driver. The same driver may support multiple data source extensions.</li>
<li><b>setThreadContextClassLoader</b> - If true, the consumer of the ODA runtime extension plug-in should set the thread context class loader to the one used to load this driver before calling any ODA interface method.
Any data source plug-in extension with this flag set to true would take precedence, and is applied to all data source extensions implemented by this plug-in.
<br>
If the thread context class loader being set is the OSGi class loader that was used to load this ODA runtime plugin, it is not designed to be used by a plugin to in turn load additional classes. If further class loading is needed, it is up to individual ODA runtime plugin implementation to provide its own URLClassLoader, and switch thread context class loader as appropriate.</li>
</ul>
<br><p class=code id=dtd>&lt;!ELEMENT <a name="e.dataSet">dataSet</a> (<a href="#e.dataTypeMapping">dataTypeMapping</a>+ , <a href="#e.properties">properties</a>? , <a href="#e.relationship">relationship</a>?)&gt;</p>
<p class=code id=dtd>&lt;!ATTLIST dataSet</p>
<p class=code id=dtdAttlist>id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class=code id=dtdAttlist>defaultDisplayName&nbsp;CDATA #IMPLIED&gt;</p>
<p></p>
<p class=ConfigMarkup id=elementDesc>
The definition of a type of data set supported by the dataSource extension.</p>
<br>
<ul class=ConfigMarkup id=attlistDesc>
<li><b>id</b> - A fully qualified ID that uniquely identifies this ODA data set definition within an ODA consumer application's environment.</li>
<li><b>defaultDisplayName</b> - The display name of the ODA data set definition. Its value can be localized by using the plugin.properties mechanism. Default to its id if no display name is specified.</li>
</ul>
<br><p class=code id=dtd>&lt;!ELEMENT <a name="e.dataTypeMapping">dataTypeMapping</a> (<a href="#e.alternativeOdaDataType">alternativeOdaDataType</a>*)&gt;</p>
<p class=code id=dtd>&lt;!ATTLIST dataTypeMapping</p>
<p class=code id=dtdAttlist>nativeDataType&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class=code id=dtdAttlist>nativeDataTypeCode&nbsp;CDATA #REQUIRED<p class=code id=dtdAttlist>odaScalarDataType&nbsp;&nbsp;(Date|Double|Integer|String|Time|Timestamp|Decimal|Blob|Clob) "String"&gt;</p>
<p></p>
<p class=ConfigMarkup id=elementDesc>
A data types mapping from a data provider's native data type to one or more ODA data types.
Each native data type must be mapped to a primary ODA scalar data type. The driver can optionally provide a list of alternate ODA data types to which it is capable of converting a native data type.
This data type mapping facilitates all ODA consumers to map from the same set of ODA data types to its own application-specific data types.</p>
<br>
<ul class=ConfigMarkup id=attlistDesc>
<li><b>nativeDataType</b> - Native data type name (a string). Used for information only.</li>
<li><b>nativeDataTypeCode</b> - Native data type code (an integer). Its value must match one of the data type codes returned in the driver's ODA interface implementation.</li>
<li><b>odaScalarDataType</b> - The primary ODA scalar data type which the native type maps to. Supported ODA data types are: Date, Double, Integer, String, Time, Timestamp, Decimal, Blob and Clob.</li>
</ul>
<br><p class=code id=dtd>&lt;!ELEMENT <a name="e.alternativeOdaDataType">alternativeOdaDataType</a> EMPTY&gt;</p>
<p class=code id=dtd>&lt;!ATTLIST alternativeOdaDataType</p>
<p class=code id=dtdAttlist>odaScalarDataType&nbsp;(Date|Double|Integer|String|Time|Timestamp|Decimal|Blob|Clob) &gt;</p>
<p></p>
<p class=ConfigMarkup id=elementDesc>
Provide an alternative mapping to an ODA scalar data type.</p>
<br>
<ul class=ConfigMarkup id=attlistDesc>
<li><b>odaScalarDataType</b> - The ODA scalar data type to which the native type may be converted by the driver.</li>
</ul>
<br><p class=code id=dtd>&lt;!ELEMENT <a name="e.traceLogging">traceLogging</a> EMPTY&gt;</p>
<p class=code id=dtd>&lt;!ATTLIST traceLogging</p>
<p class=code id=dtdAttlist>logLevel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA "WARNING"<p class=code id=dtdAttlist>logFileNamePrefix&nbsp;CDATA #IMPLIED<p class=code id=dtdAttlist>logDirectory&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class=code id=dtdAttlist>logFormatterClass&nbsp;CDATA #IMPLIED&gt;</p>
<p></p>
<p class=ConfigMarkup id=elementDesc>
Configures the ODA run-time driver's trace logging settings for the data source extension.
The configured values are passed through to the driver's implementation of the <code>IDriver.setLogConfiguration</code> method.
<br>It is up to individual ODA driver on how to honor any of these trace logging attributes as appropriate.
<br><br>Note: The trace logging configuration specified in the plug-in PDE .options file would take precedence over those configured in this element, if the debug tracing flag is set to "true".
<br>The ODA plug-in's PDE tracing options, listed below for cross reference, match the attributes of this element.
<br>&nbsp;&nbsp;&nbsp;
&lt;plug-in Id&gt;/debug = true/false
<br>&nbsp;&nbsp;&nbsp;
&lt;plug-in Id&gt;/traceLogging/logLevel
<br>&nbsp;&nbsp;&nbsp;
&lt;plug-in Id&gt;/traceLogging/logFileNamePrefix
<br>&nbsp;&nbsp;&nbsp;
&lt;plug-in Id&gt;/traceLogging/logDirectory
<br>&nbsp;&nbsp;&nbsp;
&lt;plug-in Id&gt;/traceLogging/logFormatterClass</p>
<br>
<ul class=ConfigMarkup id=attlistDesc>
<li><b>logLevel</b> - The name or numeric value for the driver's log level.
<br>The log levels' names and corresponding numeric values are:
<br>
"SEVERE" = 1000;
"WARNING" = 900;
"INFO" = 800;
"CONFIG" = 700;
"FINE" = 500;
"FINER" = 400;
"FINEST" = 300;
"ALL" = 0;
"OFF" = 1001 or higher .</li>
<li><b>logFileNamePrefix</b> - A string prefix for driver's log file name.</li>
<li><b>logDirectory</b> - Directory for log file.</li>
<li><b>logFormatterClass</b> - The class name of a concrete log formatter, suitable for use by the driver-specific logging utility.</li>
</ul>
<br><p class=code id=dtd>&lt;!ELEMENT <a name="e.property">property</a> (<a href="#e.choice">choice</a>*)&gt;</p>
<p class=code id=dtd>&lt;!ATTLIST property</p>
<p class=code id=dtdAttlist>name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class=code id=dtdAttlist>defaultDisplayName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class=code id=dtdAttlist>type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(string|choice) "string"<p class=code id=dtdAttlist>canInherit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(true | false) "true"<p class=code id=dtdAttlist>defaultValue&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class=code id=dtdAttlist>isEncryptable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(true | false) "false"<p class=code id=dtdAttlist>allowsEmptyValueAsNull&nbsp;(true | false) "true"&gt;</p>
<p></p>
<p class=ConfigMarkup id=elementDesc>
A property whose value can be edited at design-time using an ODA consumer application's designer tool. Its value is then passed to the ODA runtime driver during run-time.</p>
<br>
<ul class=ConfigMarkup id=attlistDesc>
<li><b>name</b> - Unique name of the property.</li>
<li><b>defaultDisplayName</b> - The default display name. Its value can be localized by using the plugin.properties mechanism.</li>
<li><b>type</b> - Type of the property. The property type could be one of the values listed in the Restriction enumerations.</li>
<li><b>canInherit</b> - Reserved.</li>
<li><b>defaultValue</b> - Default value of the property, if no property value is set.</li>
<li><b>isEncryptable</b> - A flag indicating whether this property value is encryptable. Setting it to "true" indicates to an ODA consumer application that this property's value should be encrypted.</li>
<li><b>allowsEmptyValueAsNull</b> - A flag that indicates whether an empty value of this property can be treated as a null value. Default value is true. This attribute setting applies when an ODA consumer passes the property's value to this ODA runtime driver. This optional attribute may be used to accommodate the case where a property value's input control does not provide the means to specify a null value.</li>
</ul>
<br><p class=code id=dtd>&lt;!ELEMENT <a name="e.propertyGroup">propertyGroup</a> (<a href="#e.property">property</a>+)&gt;</p>
<p class=code id=dtd>&lt;!ATTLIST propertyGroup</p>
<p class=code id=dtdAttlist>name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class=code id=dtdAttlist>defaultDisplayName&nbsp;CDATA #IMPLIED&gt;</p>
<p></p>
<p class=ConfigMarkup id=elementDesc>
A grouping of one or more properties in an ODA consumer application's designer tool. The group attributes are for display only. All properties listed under a propertyGroup are handled as scalar properties at run-time.</p>
<br>
<ul class=ConfigMarkup id=attlistDesc>
<li><b>name</b> - </li>
<li><b>defaultDisplayName</b> - The default display name. Its value can be localized by using the plugin.properties mechanism.</li>
</ul>
<br><p class=code id=dtd>&lt;!ELEMENT <a name="e.propertyVisibility">propertyVisibility</a> EMPTY&gt;</p>
<p class=code id=dtd>&lt;!ATTLIST propertyVisibility</p>
<p class=code id=dtdAttlist>name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class=code id=dtdAttlist>visibility&nbsp;(change|lock|hide) &gt;</p>
<p></p>
<p class=ConfigMarkup id=elementDesc>
Used to set the visibility level of the named property when it is shown in the property sheet of an ODA consumer application's designer tool.</p>
<br>
<ul class=ConfigMarkup id=attlistDesc>
<li><b>name</b> - The name of a property that is defined either by this data source extension or is a system-defined property.</li>
<li><b>visibility</b> - The valid options are: change, hide, lock.</li>
</ul>
<br><p class=code id=dtd>&lt;!ELEMENT <a name="e.choice">choice</a> EMPTY&gt;</p>
<p class=code id=dtd>&lt;!ATTLIST choice</p>
<p class=code id=dtdAttlist>name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class=code id=dtdAttlist>value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class=code id=dtdAttlist>defaultDisplayName&nbsp;CDATA #IMPLIED&gt;</p>
<p></p>
<p class=ConfigMarkup id=elementDesc>
Choice of property values.</p>
<br>
<ul class=ConfigMarkup id=attlistDesc>
<li><b>name</b> - Name of the choice</li>
<li><b>value</b> - Value to be used, if the given choice is selected.</li>
<li><b>defaultDisplayName</b> - The default display name. Its value can be localized by using the plugin.properties mechanism.</li>
</ul>
<br><p class=code id=dtd>&lt;!ELEMENT <a name="e.properties">properties</a> (<a href="#e.property">property</a>* , <a href="#e.propertyGroup">propertyGroup</a>* , <a href="#e.propertyVisibility">propertyVisibility</a>*)&gt;</p>
<p></p>
<p class=ConfigMarkup id=elementDesc>
A collection of property definitions in a data source extension or its supported data set definitions.</p>
<br><br>
<p class=code id=dtd>&lt;!ELEMENT <a name="e.relationship">relationship</a> EMPTY&gt;</p>
<p class=code id=dtd>&lt;!ATTLIST relationship</p>
<p class=code id=dtdAttlist>type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(replacedBy) <p class=code id=dtdAttlist>relatedId&nbsp;CDATA #REQUIRED&gt;</p>
<p></p>
<p class=ConfigMarkup id=elementDesc>
An optional element to specify the relationship of this element.</p>
<br>
<ul class=ConfigMarkup id=attlistDesc>
<li><b>type</b> - The type of relationship that this extension's dataSource or dataSet element has with the <i>relatedId</i> element.
Valid value(s) are:
<br>* "replacedBy" - this dataSource/dataSet is deprecated and replaced by that of <i>relatedId</i>. This setting is for consumption by an ODA host, and does not automatically affect the behavior of the ODA framework. It is up to an ODA host to apply as appropriate, e.g. to migrate its reference of a deprecated extension, and to control which ODA extension to use at runtime.
<br>* (Additional types are TBD.)</li>
<li><b>relatedId</b> - The fully qualified ID of the related ODA data source or data set element.
Its value must match that of the corresponding <i>dataSource.id</i> or <i>dataSet.id</i> attribute defined in another ODA driver's <i>org.eclipse.datatools.connectivity.oda.dataSource</i> extension.</li>
</ul>
<br><h6 class=CaptionFigColumn id=header>Examples: </h6><p>
<pre>
<p class=code id=tag>&lt;extension
point=<p class=code id=cstring>&quot;org.eclipse.datatools.connectivity.oda.dataSource&quot;</p><p class=code id=tag>&gt;</p>
<p class=code id=tag>&lt;dataSource
odaVersion=<p class=code id=cstring>&quot;3.0&quot;</p><p class=code id=tag>
driverClass=<p class=code id=cstring>&quot;org.eclipse.datatools.connectivity.oda.flatfile.FlatFileDriver&quot;</p><p class=code id=tag>
defaultDisplayName=<p class=code id=cstring>&quot;Flat File Data Source&quot;</p><p class=code id=tag>
id=<p class=code id=cstring>&quot;org.eclipse.datatools.connectivity.oda.flatfile&quot;</p><p class=code id=tag>
setThreadContextClassLoader=<p class=code id=cstring>&quot;false&quot;</p><p class=code id=tag>&gt;</p>
<p class=code id=tag>&lt;properties&gt;</p>
<p class=code id=tag>&lt;propertyGroup
defaultDisplayName=<p class=code id=cstring>&quot;Connection Properties&quot;</p><p class=code id=tag>
name=<p class=code id=cstring>&quot;connectionProperties&quot;</p><p class=code id=tag>&gt;</p>
<p class=code id=tag>&lt;property
type=<p class=code id=cstring>&quot;string&quot;</p><p class=code id=tag>
defaultDisplayName=<p class=code id=cstring>&quot;Home Folder&quot;</p><p class=code id=tag>
canInherit=<p class=code id=cstring>&quot;true&quot;</p><p class=code id=tag>
name=<p class=code id=cstring>&quot;HOME&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;property
type=<p class=code id=cstring>&quot;string&quot;</p><p class=code id=tag>
defaultDisplayName=<p class=code id=cstring>&quot;Character Set&quot;</p><p class=code id=tag>
canInherit=<p class=code id=cstring>&quot;true&quot;</p><p class=code id=tag>
name=<p class=code id=cstring>&quot;CHARSET&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;property
type=<p class=code id=cstring>&quot;string&quot;</p><p class=code id=tag>
canInherit=<p class=code id=cstring>&quot;true&quot;</p><p class=code id=tag>
defaultDisplayName=<p class=code id=cstring>&quot;Includes Data Type (Yes/No)&quot;</p><p class=code id=tag>
name=<p class=code id=cstring>&quot;INCLTYPELINE&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;/propertyGroup&gt;</p>
<p class=code id=tag>&lt;/properties&gt;</p>
<p class=code id=tag>&lt;/dataSource&gt;</p>
<p class=code id=tag>&lt;dataSet
defaultDisplayName=<p class=code id=cstring>&quot;Flat File Data Set&quot;</p><p class=code id=tag>
id=<p class=code id=cstring>&quot;org.eclipse.datatools.connectivity.oda.flatfile.dataSet&quot;</p><p class=code id=tag>&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;BIT&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;-7&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;Integer&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;TINYINT&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;-6&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;Integer&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;SMALLINT&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;5&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;Integer&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;INTEGER&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;4&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;Integer&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;BIGINT&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;-5&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;Decimal&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;FLOAT&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;6&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;Double&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;REAL&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;7&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;Double&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;DOUBLE&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;8&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;Double&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;NUMERIC&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;2&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;Decimal&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;DECIMAL&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;3&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;Decimal&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;CHAR&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;1&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;String&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;VARCHAR&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;12&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;String&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;LONGVARCHAR&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;-1&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;String&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;DATE&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;91&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;Date&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;TIME&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;92&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;Time&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;TIMESTAMP&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;93&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;Timestamp&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;BINARY&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;-2&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;String&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;VARBINARY&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;-3&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;String&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;LONGVARBINARY&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;-4&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;String&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;BOOLEAN&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;16&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;Integer&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;BLOB&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;2004&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;String&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;dataTypeMapping
nativeDataType=<p class=code id=cstring>&quot;CLOB&quot;</p><p class=code id=tag>
nativeDataTypeCode=<p class=code id=cstring>&quot;2005&quot;</p><p class=code id=tag>
odaScalarDataType=<p class=code id=cstring>&quot;String&quot;</p><p class=code id=tag>/&gt;</p>
<p class=code id=tag>&lt;/dataSet&gt;</p>
<p class=code id=tag>&lt;/extension&gt;</p>
</pre>
</p>
<p></p>
<h6 class=CaptionFigColumn id=header>API Information: </h6>The data source extension's driver must implement the interfaces defined in the <i>org.eclipse.datatools.connectivity.oda</i> package. See the package's JavaDoc documentation and API interfaces for more information.
<p></p>
<h6 class=CaptionFigColumn id=header>Supplied Implementation: </h6>The plug-in <i>org.eclipse.datatools.connectivity.oda.flatfile</i>, supplied with the Eclipse DTP Connectivity source, provides an example for implementing a simple ODA run-time extension.
<br>
In addition, a set of default implementation of the main ODA runtime interfaces are provided in the
<i>org.eclipse.datatools.connectivity.oda.impl</i> package.
These classes assume the behavior of a simple ODA driver,
and have labeled TODO tasks for a driver developer to implement data source specific behavior.
These concrete classes are provided for use as templates or base classes to aid in the development of an ODA custom driver. Their use is purely optional.
<p></p>
<br>
<p class=note id=copyright>
Copyright (c) 2004-2006 Actuate Corporation.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
<p></p>
</p>
</BODY>
</HTML>

View File

@@ -1,682 +0,0 @@
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.datatools.connectivity.oda">
<annotation>
<appInfo>
<meta.schema plugin="org.eclipse.datatools.connectivity.oda" id="dataSource" name="Open Data Access"/>
</appInfo>
<documentation>
This extension point is used to support the extension of design-time and run-time data source access by a data application. Each extension must implement the Open Data Access (ODA) Java runtime interfaces defined in the &lt;i&gt;org.eclipse.datatools.connectivity.oda&lt;/i&gt; package.
</documentation>
</annotation>
<element name="extension">
<complexType>
<sequence>
<element ref="dataSource"/>
<element ref="dataSet" minOccurs="1" maxOccurs="unbounded"/>
</sequence>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="dataSource">
<annotation>
<documentation>
The definition of a type of ODA data source extension for use at design-time and run-time.
</documentation>
</annotation>
<complexType>
<sequence>
<element ref="traceLogging" minOccurs="0" maxOccurs="1"/>
<element ref="properties" minOccurs="0" maxOccurs="1"/>
<element ref="relationship" minOccurs="0" maxOccurs="1"/>
</sequence>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
A fully qualified ID that uniquely identifies this ODA data source extension within an ODA consumer application&apos;s environment. If a data source designer extension (that implements &lt;i&gt;org.eclipse.datatools.connectivity.oda.design.ui.dataSource&lt;/i&gt; extension point) is available for this ODA driver, the value of this attribute must match that of the designer extension&apos;s &lt;i&gt;id&lt;/i&gt; attribute in its data source element.
</documentation>
</annotation>
</attribute>
<attribute name="odaVersion" type="string" use="default" value="3.0">
<annotation>
<documentation>
Version of the ODA interfaces for which this driver is developed. This element is required and should take the format of Major.Minor or Major.Minor.Service (e.g. 3.0 or 2.0.1).
</documentation>
</annotation>
</attribute>
<attribute name="defaultDisplayName" type="string">
<annotation>
<documentation>
The display name of the ODA data source extension. Its value can be localized by using the plugin.properties mechanism. Default to the extension id if no display name is specified.
It can be used by an ODA consumer application&apos;s designer tool in displaying a list of ODA data source extensions, when they do not have a corresponding data source editor (data source UI extension point).
</documentation>
</annotation>
</attribute>
<attribute name="driverClass" type="string" use="required">
<annotation>
<documentation>
Concrete class that implements the &lt;i&gt;org.eclipse.datatools.connectivity.oda.IDriver&lt;/i&gt; interface. This is the entry point of the ODA runtime driver. The same driver may support multiple data source extensions.
</documentation>
<appInfo>
<meta.attribute kind="java" basedOn="org.eclipse.datatools.connectivity.oda.IDriver"/>
</appInfo>
</annotation>
</attribute>
<attribute name="setThreadContextClassLoader" type="boolean" use="default" value="false">
<annotation>
<documentation>
If true, the consumer of the ODA runtime extension plug-in should set the thread context class loader to the one used to load this driver before calling any ODA interface method.
Any data source plug-in extension with this flag set to true would take precedence, and is applied to all data source extensions implemented by this plug-in.
&lt;br&gt;
If the thread context class loader being set is the OSGi class loader that was used to load this ODA runtime plugin, it is not designed to be used by a plugin to in turn load additional classes. If further class loading is needed, it is up to individual ODA runtime plugin implementation to provide its own URLClassLoader, and switch thread context class loader as appropriate.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="dataSet">
<annotation>
<documentation>
The definition of a type of data set supported by the dataSource extension.
</documentation>
</annotation>
<complexType>
<sequence>
<element ref="dataTypeMapping" minOccurs="1" maxOccurs="unbounded"/>
<element ref="properties" minOccurs="0" maxOccurs="1"/>
<element ref="relationship" minOccurs="0" maxOccurs="1"/>
</sequence>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
A fully qualified ID that uniquely identifies this ODA data set definition within an ODA consumer application&apos;s environment.
</documentation>
</annotation>
</attribute>
<attribute name="defaultDisplayName" type="string">
<annotation>
<documentation>
The display name of the ODA data set definition. Its value can be localized by using the plugin.properties mechanism. Default to its id if no display name is specified.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="dataTypeMapping">
<annotation>
<documentation>
A data types mapping from a data provider&apos;s native data type to one or more ODA data types.
Each native data type must be mapped to a primary ODA scalar data type. The driver can optionally provide a list of alternate ODA data types to which it is capable of converting a native data type.
This data type mapping facilitates all ODA consumers to map from the same set of ODA data types to its own application-specific data types.
</documentation>
</annotation>
<complexType>
<sequence>
<element ref="alternativeOdaDataType" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="nativeDataType" type="string">
<annotation>
<documentation>
Native data type name (a string). Used for information only.
</documentation>
</annotation>
</attribute>
<attribute name="nativeDataTypeCode" type="string" use="required">
<annotation>
<documentation>
Native data type code (an integer). Its value must match one of the data type codes returned in the driver&apos;s ODA interface implementation.
</documentation>
</annotation>
</attribute>
<attribute name="odaScalarDataType" use="default" value="String">
<annotation>
<documentation>
The primary ODA scalar data type which the native type maps to. Supported ODA data types are: Date, Double, Integer, String, Time, Timestamp, Decimal, Blob and Clob.
</documentation>
</annotation>
<simpleType>
<restriction base="string">
<enumeration value="Date">
</enumeration>
<enumeration value="Double">
</enumeration>
<enumeration value="Integer">
</enumeration>
<enumeration value="String">
</enumeration>
<enumeration value="Time">
</enumeration>
<enumeration value="Timestamp">
</enumeration>
<enumeration value="Decimal">
</enumeration>
<enumeration value="Blob">
</enumeration>
<enumeration value="Clob">
</enumeration>
</restriction>
</simpleType>
</attribute>
</complexType>
</element>
<element name="alternativeOdaDataType">
<annotation>
<documentation>
Provide an alternative mapping to an ODA scalar data type.
</documentation>
</annotation>
<complexType>
<attribute name="odaScalarDataType" use="required">
<annotation>
<documentation>
The ODA scalar data type to which the native type may be converted by the driver.
</documentation>
</annotation>
<simpleType>
<restriction base="string">
<enumeration value="Date">
</enumeration>
<enumeration value="Double">
</enumeration>
<enumeration value="Integer">
</enumeration>
<enumeration value="String">
</enumeration>
<enumeration value="Time">
</enumeration>
<enumeration value="Timestamp">
</enumeration>
<enumeration value="Decimal">
</enumeration>
<enumeration value="Blob">
</enumeration>
<enumeration value="Clob">
</enumeration>
</restriction>
</simpleType>
</attribute>
</complexType>
</element>
<element name="traceLogging">
<annotation>
<documentation>
Configures the ODA run-time driver&apos;s trace logging settings for the data source extension.
The configured values are passed through to the driver&apos;s implementation of the &lt;code&gt;IDriver.setLogConfiguration&lt;/code&gt; method.
&lt;br&gt;It is up to individual ODA driver on how to honor any of these trace logging attributes as appropriate.
&lt;br&gt;&lt;br&gt;Note: The trace logging configuration specified in the plug-in PDE .options file would take precedence over those configured in this element, if the debug tracing flag is set to &quot;true&quot;.
&lt;br&gt;The ODA plug-in&apos;s PDE tracing options, listed below for cross reference, match the attributes of this element.
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;plug-in Id&amp;gt;/debug = true/false
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;plug-in Id&amp;gt;/traceLogging/logLevel
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;plug-in Id&amp;gt;/traceLogging/logFileNamePrefix
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;plug-in Id&amp;gt;/traceLogging/logDirectory
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;plug-in Id&amp;gt;/traceLogging/logFormatterClass
</documentation>
</annotation>
<complexType>
<attribute name="logLevel" type="string" use="default" value="WARNING">
<annotation>
<documentation>
The name or numeric value for the driver&apos;s log level.
&lt;br&gt;The log levels&apos; names and corresponding numeric values are:
&lt;br&gt;
&quot;SEVERE&quot; = 1000;
&quot;WARNING&quot; = 900;
&quot;INFO&quot; = 800;
&quot;CONFIG&quot; = 700;
&quot;FINE&quot; = 500;
&quot;FINER&quot; = 400;
&quot;FINEST&quot; = 300;
&quot;ALL&quot; = 0;
&quot;OFF&quot; = 1001 or higher .
</documentation>
</annotation>
</attribute>
<attribute name="logFileNamePrefix" type="string">
<annotation>
<documentation>
A string prefix for driver&apos;s log file name.
</documentation>
</annotation>
</attribute>
<attribute name="logDirectory" type="string">
<annotation>
<documentation>
Directory for log file.
</documentation>
</annotation>
</attribute>
<attribute name="logFormatterClass" type="string">
<annotation>
<documentation>
The class name of a concrete log formatter, suitable for use by the driver-specific logging utility.
</documentation>
<appInfo>
<meta.attribute kind="java"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="property">
<annotation>
<documentation>
A property whose value can be edited at design-time using an ODA consumer application&apos;s designer tool. Its value is then passed to the ODA runtime driver during run-time.
</documentation>
</annotation>
<complexType>
<sequence>
<element ref="choice" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>
Unique name of the property.
</documentation>
</annotation>
</attribute>
<attribute name="defaultDisplayName" type="string">
<annotation>
<documentation>
The default display name. Its value can be localized by using the plugin.properties mechanism.
</documentation>
</annotation>
</attribute>
<attribute name="type" use="default" value="string">
<annotation>
<documentation>
Type of the property. The property type could be one of the values listed in the Restriction enumerations.
</documentation>
</annotation>
<simpleType>
<restriction base="string">
<enumeration value="string">
</enumeration>
<enumeration value="choice">
</enumeration>
</restriction>
</simpleType>
</attribute>
<attribute name="canInherit" type="boolean" use="default" value="true">
<annotation>
<documentation>
Reserved.
</documentation>
</annotation>
</attribute>
<attribute name="defaultValue" type="string">
<annotation>
<documentation>
Default value of the property, if no property value is set.
</documentation>
</annotation>
</attribute>
<attribute name="isEncryptable" type="boolean" use="default" value="false">
<annotation>
<documentation>
A flag indicating whether this property value is encryptable. Setting it to &quot;true&quot; indicates to an ODA consumer application that this property&apos;s value should be encrypted.
</documentation>
</annotation>
</attribute>
<attribute name="allowsEmptyValueAsNull" type="boolean" use="default" value="true">
<annotation>
<documentation>
A flag that indicates whether an empty value of this property can be treated as a null value. Default value is true. This attribute setting applies when an ODA consumer passes the property&apos;s value to this ODA runtime driver. This optional attribute may be used to accommodate the case where a property value&apos;s input control does not provide the means to specify a null value.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="propertyGroup">
<annotation>
<documentation>
A grouping of one or more properties in an ODA consumer application&apos;s designer tool. The group attributes are for display only. All properties listed under a propertyGroup are handled as scalar properties at run-time.
</documentation>
</annotation>
<complexType>
<sequence>
<element ref="property" minOccurs="1" maxOccurs="unbounded"/>
</sequence>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="defaultDisplayName" type="string">
<annotation>
<documentation>
The default display name. Its value can be localized by using the plugin.properties mechanism.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="propertyVisibility">
<annotation>
<documentation>
Used to set the visibility level of the named property when it is shown in the property sheet of an ODA consumer application&apos;s designer tool.
</documentation>
</annotation>
<complexType>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>
The name of a property that is defined either by this data source extension or is a system-defined property.
</documentation>
</annotation>
</attribute>
<attribute name="visibility">
<annotation>
<documentation>
The valid options are: change, hide, lock.
</documentation>
</annotation>
<simpleType>
<restriction base="string">
<enumeration value="change">
</enumeration>
<enumeration value="lock">
</enumeration>
<enumeration value="hide">
</enumeration>
</restriction>
</simpleType>
</attribute>
</complexType>
</element>
<element name="choice">
<annotation>
<documentation>
Choice of property values.
</documentation>
</annotation>
<complexType>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>
Name of the choice
</documentation>
</annotation>
</attribute>
<attribute name="value" type="string">
<annotation>
<documentation>
Value to be used, if the given choice is selected.
</documentation>
</annotation>
</attribute>
<attribute name="defaultDisplayName" type="string">
<annotation>
<documentation>
The default display name. Its value can be localized by using the plugin.properties mechanism.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="properties">
<annotation>
<documentation>
A collection of property definitions in a data source extension or its supported data set definitions.
</documentation>
</annotation>
<complexType>
<sequence>
<element ref="property" minOccurs="0" maxOccurs="unbounded"/>
<element ref="propertyGroup" minOccurs="0" maxOccurs="unbounded"/>
<element ref="propertyVisibility" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
</element>
<element name="relationship">
<annotation>
<documentation>
An optional element to specify the relationship of this element.
</documentation>
</annotation>
<complexType>
<attribute name="type" use="required">
<annotation>
<documentation>
The type of relationship that this extension&apos;s dataSource or dataSet element has with the &lt;i&gt;relatedId&lt;/i&gt; element.
Valid value(s) are:
&lt;br&gt;* &quot;replacedBy&quot; - this dataSource/dataSet is deprecated and replaced by that of &lt;i&gt;relatedId&lt;/i&gt;. This setting is for consumption by an ODA host, and does not automatically affect the behavior of the ODA framework. It is up to an ODA host to apply as appropriate, e.g. to migrate its reference of a deprecated extension, and to control which ODA extension to use at runtime.
&lt;br&gt;* (Additional types are TBD.)
</documentation>
</annotation>
<simpleType>
<restriction base="string">
<enumeration value="replacedBy">
</enumeration>
</restriction>
</simpleType>
</attribute>
<attribute name="relatedId" type="string" use="required">
<annotation>
<documentation>
The fully qualified ID of the related ODA data source or data set element.
Its value must match that of the corresponding &lt;i&gt;dataSource.id&lt;/i&gt; or &lt;i&gt;dataSet.id&lt;/i&gt; attribute defined in another ODA driver&apos;s &lt;i&gt;org.eclipse.datatools.connectivity.oda.dataSource&lt;/i&gt; extension.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appInfo>
<meta.section type="since"/>
</appInfo>
<documentation>
3.0
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="examples"/>
</appInfo>
<documentation>
&lt;p&gt;
&lt;pre&gt;
&lt;extension
point=&quot;org.eclipse.datatools.connectivity.oda.dataSource&quot;&gt;
&lt;dataSource
odaVersion=&quot;3.0&quot;
driverClass=&quot;org.eclipse.datatools.connectivity.oda.flatfile.FlatFileDriver&quot;
defaultDisplayName=&quot;Flat File Data Source&quot;
id=&quot;org.eclipse.datatools.connectivity.oda.flatfile&quot;
setThreadContextClassLoader=&quot;false&quot;&gt;
&lt;properties&gt;
&lt;propertyGroup
defaultDisplayName=&quot;Connection Properties&quot;
name=&quot;connectionProperties&quot;&gt;
&lt;property
type=&quot;string&quot;
defaultDisplayName=&quot;Home Folder&quot;
canInherit=&quot;true&quot;
name=&quot;HOME&quot;/&gt;
&lt;property
type=&quot;string&quot;
defaultDisplayName=&quot;Character Set&quot;
canInherit=&quot;true&quot;
name=&quot;CHARSET&quot;/&gt;
&lt;property
type=&quot;string&quot;
canInherit=&quot;true&quot;
defaultDisplayName=&quot;Includes Data Type (Yes/No)&quot;
name=&quot;INCLTYPELINE&quot;/&gt;
&lt;/propertyGroup&gt;
&lt;/properties&gt;
&lt;/dataSource&gt;
&lt;dataSet
defaultDisplayName=&quot;Flat File Data Set&quot;
id=&quot;org.eclipse.datatools.connectivity.oda.flatfile.dataSet&quot;&gt;
&lt;dataTypeMapping
nativeDataType=&quot;BIT&quot;
nativeDataTypeCode=&quot;-7&quot;
odaScalarDataType=&quot;Integer&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;TINYINT&quot;
nativeDataTypeCode=&quot;-6&quot;
odaScalarDataType=&quot;Integer&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;SMALLINT&quot;
nativeDataTypeCode=&quot;5&quot;
odaScalarDataType=&quot;Integer&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;INTEGER&quot;
nativeDataTypeCode=&quot;4&quot;
odaScalarDataType=&quot;Integer&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;BIGINT&quot;
nativeDataTypeCode=&quot;-5&quot;
odaScalarDataType=&quot;Decimal&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;FLOAT&quot;
nativeDataTypeCode=&quot;6&quot;
odaScalarDataType=&quot;Double&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;REAL&quot;
nativeDataTypeCode=&quot;7&quot;
odaScalarDataType=&quot;Double&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;DOUBLE&quot;
nativeDataTypeCode=&quot;8&quot;
odaScalarDataType=&quot;Double&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;NUMERIC&quot;
nativeDataTypeCode=&quot;2&quot;
odaScalarDataType=&quot;Decimal&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;DECIMAL&quot;
nativeDataTypeCode=&quot;3&quot;
odaScalarDataType=&quot;Decimal&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;CHAR&quot;
nativeDataTypeCode=&quot;1&quot;
odaScalarDataType=&quot;String&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;VARCHAR&quot;
nativeDataTypeCode=&quot;12&quot;
odaScalarDataType=&quot;String&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;LONGVARCHAR&quot;
nativeDataTypeCode=&quot;-1&quot;
odaScalarDataType=&quot;String&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;DATE&quot;
nativeDataTypeCode=&quot;91&quot;
odaScalarDataType=&quot;Date&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;TIME&quot;
nativeDataTypeCode=&quot;92&quot;
odaScalarDataType=&quot;Time&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;TIMESTAMP&quot;
nativeDataTypeCode=&quot;93&quot;
odaScalarDataType=&quot;Timestamp&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;BINARY&quot;
nativeDataTypeCode=&quot;-2&quot;
odaScalarDataType=&quot;String&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;VARBINARY&quot;
nativeDataTypeCode=&quot;-3&quot;
odaScalarDataType=&quot;String&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;LONGVARBINARY&quot;
nativeDataTypeCode=&quot;-4&quot;
odaScalarDataType=&quot;String&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;BOOLEAN&quot;
nativeDataTypeCode=&quot;16&quot;
odaScalarDataType=&quot;Integer&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;BLOB&quot;
nativeDataTypeCode=&quot;2004&quot;
odaScalarDataType=&quot;String&quot;/&gt;
&lt;dataTypeMapping
nativeDataType=&quot;CLOB&quot;
nativeDataTypeCode=&quot;2005&quot;
odaScalarDataType=&quot;String&quot;/&gt;
&lt;/dataSet&gt;
&lt;/extension&gt;
&lt;/pre&gt;
&lt;/p&gt;
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="apiInfo"/>
</appInfo>
<documentation>
The data source extension&apos;s driver must implement the interfaces defined in the &lt;i&gt;org.eclipse.datatools.connectivity.oda&lt;/i&gt; package. See the package&apos;s JavaDoc documentation and API interfaces for more information.
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="implementation"/>
</appInfo>
<documentation>
The plug-in &lt;i&gt;org.eclipse.datatools.connectivity.oda.flatfile&lt;/i&gt;, supplied with the Eclipse DTP Connectivity source, provides an example for implementing a simple ODA run-time extension.
&lt;br&gt;
In addition, a set of default implementation of the main ODA runtime interfaces are provided in the
&lt;i&gt;org.eclipse.datatools.connectivity.oda.impl&lt;/i&gt; package.
These classes assume the behavior of a simple ODA driver,
and have labeled TODO tasks for a driver developer to implement data source specific behavior.
These concrete classes are provided for use as templates or base classes to aid in the development of an ODA custom driver. Their use is purely optional.
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="copyright"/>
</appInfo>
<documentation>
Copyright (c) 2004-2006 Actuate Corporation.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
</documentation>
</annotation>
</schema>

View File

@@ -1,2 +0,0 @@
*.css
*.html

View File

@@ -1,402 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
/**
* An optional, extended query interface for more advanced query capabilities.
* It may have complex input parameters, scalar or complex output parameters,
* and/or return a single or multiple result sets.
* <p>A result set may be extended to be referenced by name.
* An input parameter may be extended to support the structure or table data type.
* An output parameter may be of scalar or structure data type.
* <br>
* All advanced query implementations (e.g. stored procedures, SAP R/3 BAPI's)
* should implement this interface.
* <p>
* A parameter may be referenced by name or position.
* <br>
* The case-sensitivity of a name is implementation-dependent.
* All indices in this interface are 1-based.
* <p>
* <b>Note:</b> All IAdvancedQuery interface methods should only be
* called after IQuery.prepare() has been called.
*/
public interface IAdvancedQuery extends IQuery
{
/**
* Executes the query's prepared query that may return multiple result sets.
* <b>Note:</b> This should only be called after prepare().
* @return true if the next result is an IResultSet object;
* false if there are no result sets.
* @throws OdaException if data source error occurs.
*/
public boolean execute() throws OdaException;
/**
* Returns the current result as an IResultSet object.
* <b>Note:</b> This method should be called only once per result.
* @return an IResultSet object.
* @throws OdaException if data source error occurs.
*/
public IResultSet getResultSet() throws OdaException;
/**
* Moves to the query's next result set. This method also implicitly
* closes the current IResultSet object obtained from the previous call to
* getResultSet().
* @return true, if there are more results in this query object.
* @throws OdaException if data source error occurs.
*/
public boolean getMoreResults() throws OdaException;
/**
* Returns the names of result sets that can be returned by
* this IAdvancedQuery.
* <br>An optional method; only applicable to a query that
* can retrieve multiple named result sets.
* @return an array of result set names.
* @throws OdaException if data source error occurs.
*/
public String[] getResultSetNames() throws OdaException;
/**
* Returns the metadata of the expected named result.
* @param resultSetName the name of the result.
* @return an IResultSetMetaData object.
* @throws OdaException if data source error occurs.
*/
public IResultSetMetaData getMetaDataOf( String resultSetName ) throws OdaException;
/**
* Returns the named result as an IResultSet object, or null if none is
* available. <b>Note:</b> This method should be called only once per result.
* @param resultSetName the name of the target result set.
* @return an IResultSet object.
* @throws OdaException if data source error occurs.
*/
public IResultSet getResultSet( String resultSetName ) throws OdaException;
/**
* Returns an IParameterRowSet object that contains a single row
* representing the named structure input parameter.
* Client will then use the IParameterRowSet
* setter methods to populate the input parameter values.
* For example:
* <br>
* <code><br>
* IParameterRowSet myStruct = myQuery.setNewRow( "MyStructureName" );<br>
* myStruct.next();<br>
* myStruct.setString( 1, "myValue" );<br>
* <br></code>
* <br>An optional method; applicable only if named structure input
* parameters are supported.
* @param parameterName name of the parameter.
* @return an IParameterRowSet object.
* @throws OdaException if data source error occurs.
*/
public IParameterRowSet setNewRow( String parameterName ) throws OdaException;
/**
* Returns an IParameterRowSet object that contains a single row
* representing the specified structure input parameter.
* Client will then use the IParameterRowSet
* setter methods to populate the input parameter values.
* <br>An optional method; applicable only if structure input
* parameters are supported.
* @param parameterId id of the parameter (1-based).
* @return an IParameterRowSet object.
* @throws OdaException if data source error occurs.
*/
public IParameterRowSet setNewRow( int parameterId ) throws OdaException;
/**
* Returns an empty IParameterRowSet object that represents the named
* table input parameter. Client will then use the IParameterRowSet setter
* methods to populate each row of the input parameter values.
* For example:
* <br>
* <code><br>
* IParameterRowSet myTable = myQuery.setNewRowSet( "MyTableName" );<br>
* myTable.add();<br>
* myTable.setString( 1, "myValue1" );<br>
* myTable.add();<br>
* myTable.setString( 1, "myValue2" );<br>
* <br></code>
* <br>An optional method; applicable only if named table input
* parameters are supported.
* @param parameterName name of the parameter.
* @return an IParameterRowSet object.
* @throws OdaException if data source error occurs.
*/
public IParameterRowSet setNewRowSet( String parameterName ) throws OdaException;
/**
* Returns an empty IParameterRowSet object that represents the specified
* table input parameter. Client will then use the IParameterRowSet setter
* methods to populate each row of the input parameter values.
* <br>An optional method; applicable only if table input
* parameters are supported.
* @param parameterId id of the parameter (1-based).
* @return an IParameterRowSet object.
* @throws OdaException if data source error occurs.
*/
public IParameterRowSet setNewRowSet( int parameterId ) throws OdaException;
/**
* Returns the integer value from the designated output parameter.
* @param parameterName name of the parameter.
* @return the integer value.
* @throws OdaException if data source error occurs.
*/
public int getInt( String parameterName ) throws OdaException;
/**
* Returns the integer value from the designated output parameter.
* @param parameterId id of the parameter (1-based).
* @return the integer value.
* @throws OdaException if data source error occurs.
*/
public int getInt( int parameterId ) throws OdaException;
/**
* Returns the double value from the designated output parameter.
* @param parameterName name of the parameter.
* @return the double value.
* @throws OdaException if data source error occurs.
*/
public double getDouble( String parameterName ) throws OdaException;
/**
* Returns the double value from the designated output parameter.
* @param parameterId id of the parameter (1-based).
* @return the double value.
* @throws OdaException if data source error occurs.
*/
public double getDouble( int parameterId ) throws OdaException;
/**
* Returns the decimal value from the designated output parameter.
* @param parameterName name of the parameter.
* @return the decimal value.
* @throws OdaException if data source error occurs.
*/
public BigDecimal getBigDecimal( String parameterName ) throws OdaException;
/**
* Returns the decimal value from the designated output parameter.
* @param parameterId id of the parameter (1-based).
* @return the decimal value.
* @throws OdaException if data source error occurs.
*/
public BigDecimal getBigDecimal( int parameterId ) throws OdaException;
/**
* Returns the String value from the designated output parameter.
* An ODA runtime driver may or may not support getString() on a non-String
* type parameter. The format of the returned string is implementation-
* dependent.
* @param parameterName name of the parameter.
* @return the String value.
* @throws OdaException if data source error occurs.
*/
public String getString( String parameterName ) throws OdaException;
/**
* Returns the String value from the designated output parameter.
* An ODA runtime driver may or may not support getString() on a non-String
* type parameter. The format of the returned string is implementation-
* dependent.
* @param parameterId id of the parameter (1-based).
* @return the String value.
* @throws OdaException if data source error occurs.
*/
public String getString( int parameterId ) throws OdaException;
/**
* Returns the java.sql.Date value from the designated output parameter.
* @param parameterName name of the parameter.
* @return the java.sql.Date value.
* @throws OdaException if data source error occurs.
*/
public Date getDate( String parameterName ) throws OdaException;
/**
* Returns the java.sql.Date value from the designated output parameter.
* @param parameterId id of the parameter (1-based).
* @return the java.sql.Date value.
* @throws OdaException if data source error occurs.
*/
public Date getDate( int parameterId ) throws OdaException;
/**
* Returns the java.sql.Time value from the designated output parameter.
* @param parameterName name of the parameter.
* @return the java.sql.Time value.
* @throws OdaException if data source error occurs.
*/
public Time getTime( String parameterName ) throws OdaException;
/**
* Returns the java.sql.Time value from the designated output parameter.
* @param parameterId id of the parameter (1-based).
* @return the java.sql.Time value.
* @throws OdaException if data source error occurs.
*/
public Time getTime( int parameterId ) throws OdaException;
/**
* Returns the java.sql.Timestamp value from the designated output parameter.
* @param parameterName name of the parameter.
* @return the java.sql.Timestamp value.
* @throws OdaException if data source error occurs.
*/
public Timestamp getTimestamp( String parameterName ) throws OdaException;
/**
* Returns the java.sql.Timestamp value from the designated output parameter.
* @param parameterId id of the parameter (1-based).
* @return the java.sql.Timestamp value.
* @throws OdaException if data source error occurs.
*/
public Timestamp getTimestamp( int parameterId ) throws OdaException;
/**
* Returns the IBlob value from the designated output parameter.
* <p><b>Note:</b> The driver must guarantee that
* the returned IBlob object and its BLOB data would remain valid
* and accessible until this query instance is closed.
* @param parameterName name of the parameter.
* @return an IBlob object that represents the BLOB value;
* or <code>null</code> if the specific parameter
* has null value.
* @throws OdaException if data source error occurs
* @since 3.0
*/
public IBlob getBlob( String parameterName ) throws OdaException;
/**
* Returns the IBlob value from the designated output parameter.
* <p><b>Note:</b> The driver must guarantee that
* the returned IBlob object and its BLOB data would remain valid
* and accessible until this query instance is closed.
* @param parameterId id of the parameter (1-based).
* @return an IBlob object that represents the BLOB value;
* or <code>null</code> if the specific parameter
* has null value.
* @throws OdaException if data source error occurs
* @since 3.0
*/
public IBlob getBlob( int parameterId ) throws OdaException;
/**
* Returns the IClob value from the designated output parameter.
* <p><b>Note:</b> The driver must guarantee that
* the returned IClob object and its CLOB data would remain valid
* and accessible until this query instance is closed.
* @param parameterName name of the parameter.
* @return an IClob object that represents the CLOB value;
* or <code>null</code> if the specific parameter
* has null value.
* @throws OdaException if data source error occurs
* @since 3.0
*/
public IClob getClob( String parameterName ) throws OdaException;
/**
* Returns the IClob value from the designated output parameter.
* <p><b>Note:</b> The driver must guarantee that
* the returned IClob object and its CLOB data would remain valid
* and accessible until this query instance is closed.
* @param parameterId id of the parameter (1-based).
* @return an IClob object that represents the CLOB value;
* or <code>null</code> if the specific parameter
* has null value.
* @throws OdaException if data source error occurs
* @since 3.0
*/
public IClob getClob( int parameterId ) throws OdaException;
/**
* Returns the structure value from the designated output parameter.
* This is not intended to return table structures.
* <br>An optional method; applicable only if named structure output
* parameters are supported.
* @param parameterName name of the parameter.
* @return an IParameterRowSet object with a single row.
* @throws OdaException if data source error occurs.
*/
public IParameterRowSet getRow( String parameterName ) throws OdaException;
/**
* Returns the structure value from the designated output parameter.
* <br>An optional method; applicable only if structure output
* parameters are supported.
* @param parameterId id of the parameter (1-based).
* @return an IParameterRowSet object with a single row.
* @throws OdaException if data source error occurs.
*/
public IParameterRowSet getRow( int parameterId ) throws OdaException;
/**
* Returns the 1-based index of the specified scalar or structure
* output parameter.
* @param parameterName name of the output parameter.
* @return index of the output parameter.
* @throws OdaException if data source error occurs.
*/
public int findOutParameter( String parameterName ) throws OdaException;
/**
* Returns whether the value read from the previous get&lt;type&gt; method was null.
* @return true, if the last get&lt;type&gt; call was null.
* @throws OdaException if data source error occurs.
*/
public boolean wasNull() throws OdaException;
/**
* Specifies the sort specification for the named result set of
* this <code>IAdvancedQuery</code>. This setter must be called before this is
* executed. More sort keys can be added to the SortSpec after
* it is associated with the query. The final
* sort specification is applied to the result set(s) at execution.
* <p>
* It is up to individual ODA runtime drivers to validate the type of sort specification
* that are acceptable to the provider, based on its level of dynamic sorting support.
* An <code>OdaException</code> should be thrown if the specified sort
* specification is not valid or not supported by the driver.
* @param resultSetName name of the result set.
* @param sortBy the sort specification to apply to the specified result
* set.
* @throws OdaException if data source error occurs.
*/
public void setSortSpec( String resultSetName, SortSpec sortBy ) throws OdaException;
/**
* Returns the sort specification associated with the named result set
* of this <code>IAdvancedQuery</code>.
* @param resultSetName name of the result set.
* @return the <code>SortSpec</code> associated with the specified
* result set; <code>null</code> if no <code>SortSpec</code>
* was explicitly set.
* @throws OdaException if data source error occurs.
*/
public SortSpec getSortSpec( String resultSetName ) throws OdaException;
}

View File

@@ -1,73 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda;
import java.io.InputStream;
/**
* An optional interface that represents a Binary Large Object (BLOB) value.
* <br>The interface must be implemented only if the ODA driver
* supports the BLOB data type.
* <p>The IBlob interface provides methods for retrieving a BLOB value
* as a Java input stream that can be read in smaller chunks, and
* for optionally getting the length of a BLOB value.
* <br>
* The interface method <code>IResultSet.getBlob</code> returns
* an IBlob instance.
* @since 3.0
*/
public interface IBlob
{
/**
* Retrieves the BLOB value designated by this IBlob instance
* as a binary stream of uninterpreted bytes.
* @return a Java input stream that delivers the BLOB data
* as a stream of uninterpreted bytes
* @throws OdaException if data source error occurs
*/
public InputStream getBinaryStream() throws OdaException;
/**
* Retrieves all or part of the BLOB value designated by this
* IBlob instance as an array of bytes.
* <br>An optional short-cut method to retrieve from the
* instance's binary stream.
* The ODA consumer helper framework provides default implementation,
* which is used when an ODA driver throws an UnsupportedOperationException.
* An ODA driver is however encouraged to
* provide a more efficient implementation of this method.
* @param position the 1-based ordinal position of the first byte
* in the BLOB value to be extracted
* @param length the number of consecutive bytes to be copied;
* a negative value means to copy all remaining bytes
* available in the binary stream
* @return a byte array containing up to <code>length</code>
* consecutive bytes from the BLOB value,
* starting with the byte at <code>position</code>
* @throws OdaException if data source error occurs
*/
public byte[] getBytes( long position, int length ) throws OdaException;
/**
* Returns the number of bytes in the BLOB value designated
* by this IBlob object.
* An optional method; throws UnsupportedOperationException
* if a driver does not support retrieving the length.
* @return length of the BLOB value in bytes
* @throws OdaException if data source error occurs
*/
public long length() throws OdaException;
}

View File

@@ -1,71 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda;
import java.io.Reader;
/**
* An optional interface that represents a Character Large Object (CLOB) value.
* <br>The interface must be implemented only if the ODA driver
* supports the CLOB data type.
* <p>The IClob interface provides methods for retrieving a CLOB value
* as a Java stream that can be read in smaller chunks, and
* for optionally getting the length of a CLOB value.
* <br>
* The interface method <code>IResultSet.getClob</code> returns
* an IClob instance.
* @since 3.0
*/
public interface IClob
{
/**
* Retrieves the CLOB value designated by this IClob instance
* as a java.io.Reader object for reading a stream of characters.
* @return a java.io.Reader object that contains the CLOB data
* @throws OdaException if data source error occurs
*/
public Reader getCharacterStream() throws OdaException;
/**
* Retrieves a copy of the specified substring in the CLOB value
* designated by this IClob instance.
* <br>An optional short-cut method to retrieve from the
* instance's character stream.
* The ODA consumer helper framework provides default implementation,
* which is used when an ODA driver throws an UnsupportedOperationException.
* An ODA driver is however encouraged to
* provide a more efficient implementation of this method.
* @param position the first character of the substring to be extracted.
* The first character is at position 1.
* @param length the number of consecutive characters to be copied;
* a negative value means to copy all remaining characters
* available in the stream.
* @return the specified substring that begins at <code>position</code>
* and has up to <code>length</code> consecutive characters.
* @throws OdaException if data source error occurs
*/
public String getSubString( long position, int length ) throws OdaException;
/**
* Returns the number of characters in the CLOB value
* designated by this IClob object.
* An optional method; throws UnsupportedOperationException
* if a driver does not support retrieving the length.
* @return length of the CLOB value in characters
* @throws OdaException if data source error occurs
*/
public long length() throws OdaException;
}

View File

@@ -1,120 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda;
import java.util.Properties;
/**
* A data source connection interface used to
* establish a live connection to the underlying data provider.
*/
public interface IConnection
{
/**
* Attempts to establish a connection based on the given connection
* properties.
* It is up to individual ODA driver to process the properties.
* <br>Note: An ODA driver may use the
* <code>org.eclipse.datatools.connectivity.oda.util.manifest</code>
* utility package to obtain information on itself,
* such as the content of its plug-in manifest and the driver's
* installation location.
* @param connProperties Properties necessary to establish a connection.
* @throws OdaException if data source error occurs
*/
public void open( Properties connProperties ) throws OdaException;
/**
* Sets the connection context passed through from an application.
* Its handling is specific to individual driver implementation.
* The context argument could be null. The method may be called
* by an ODA consumer application with a null argument,
* i.e. passing a null context object to this instance,
* only if a non-null context was previously passed through to
* the same instance.
* <br>
* <b>Note:</b> This method should be called before open().
* It is called regardless of whether the connection is
* already open.
* <br>An optional method.
* If any part of the context is not recognized by the driver,
* it should simply ignore, and not throw an exception.
* @param context Application context object of this instance.
* @throws OdaException if data source error occurs
* @since 3.0
*/
public void setAppContext( Object context ) throws OdaException;
/**
* Attempts to close this connection.
* @throws OdaException if data source error occurs
*/
public void close() throws OdaException;
/**
* Checks whether this has an established connection
* @return true if connection is established.
* @throws OdaException if data source error occurs
*/
public boolean isOpen() throws OdaException;
/**
* Returns an IDataSetMetaData object of the the given
* data set type. The data set type is implementation-dependent.
* This can be called before this IConnection is opened; however some
* IDataSetMetaData methods expects and requires an opened connection
* before being called, e.g. getDataSourceObjects().
* @param dataSetType String representation of a data set type.
* @return an IDataSetMetaData object.
* @throws OdaException if data source error occurs
*/
public IDataSetMetaData getMetaData( String dataSetType ) throws OdaException;
/**
* Returns an IQuery object of the given data set type.
* The data set type is implementation-dependent.
* @param dataSetType String representation of a data set type.
* @return an IQuery object.
* @throws OdaException if data source error occurs
*/
public IQuery newQuery( String dataSetType ) throws OdaException;
/**
* Returns the maximum number of active queries for any data set types
* that the driver can support for this connection.
* @return the maximum number of any type of queries that can be prepared and executed
* concurrently, or 0 if there is no limit or the limit is unknown.
* @throws OdaException if driver error occurs
*/
public int getMaxQueries() throws OdaException;
/**
* Commits all changes made since the previous commit/rollback.
* <br>
* An optional method.
* @throws OdaException if data source error occurs
*/
public void commit() throws OdaException;
/**
* Undoes all changes made since the previous commit/rollback.
* <br>
* An optional method.
* @throws OdaException if data source error occurs
*/
public void rollback() throws OdaException;
}

View File

@@ -1,220 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda;
/**
* Provides comprehensive information on the drivers capabilities
* for a type of data set query.
* <p>
* An ODA runtime driver can implement a connection
* to work with one or more types of data sets.
* Different types of data sets often support different features, and/or implement
* features in different ways. In addition, a driver may implement
* a feature on top of what the underlying data provider offers.
* <br>
* Information returned by methods in this interface applies to the capabilities
* of a particular driver and a particular type of data set working together.
* Note that as used in this documentation, the term "data set" is used
* generically to refer to both the ODA runtime driver and underlying data provider.
* <p>
* A method that gets information about a feature not supported by the driver
* will throw an OdaException. This includes methods that return an
* IResultSet object.
* <p>
* Some methods may be called before the associated connection is opened,
* while other may require the associated connection to be opened. For example:
* <p>
* <code>
* &nbsp;&nbsp;&nbsp;&nbsp;
* // connection is not opened
* <br>
* &nbsp;&nbsp;&nbsp;&nbsp;
* IDataSetMetaData metadata = connection.getMetaData( ... );
* <br>
* &nbsp;&nbsp;&nbsp;&nbsp;
* metadata.supportsInParameters();
* <br>
* &nbsp;&nbsp;&nbsp;&nbsp;
* connection.open();
* <br>
* &nbsp;&nbsp;&nbsp;&nbsp;
* metadata.getDataSourceObjects( ... ); // requires an opened connection
* <br>
* </code>
*/
public interface IDataSetMetaData
{
/**
* The constant indicating that <code>OdaException.getSQLState</code> will
* return a X/Open SQL CLI SQLSTATE value.
*/
public static final int sqlStateXOpen = 0;
/**
* The constant indicating that <code>OdaException.getSQLState</code> will
* return a SQL99 SQLSTATE value.
*/
public static final int sqlStateSQL99 = 1;
/**
* The constant indicating that dynamic sorting is not supported.
*/
public static final int sortModeNone = 0;
/**
* The constant indicating that all sorted columns must be in the same
* sort order.
*/
public static final int sortModeSingleOrder = 1;
/**
* The constant indicating that each sorted column can have a different
* sort order.
*/
public static final int sortModeColumnOrder = 2;
/**
* The constant indicating that only one single column can be sorted.
*/
public static final int sortModeSingleColumn = 3;
/**
* Returns the connection that produced this metadata object.
* @return the connection that produced this metadata object.
* @throws OdaException if data source error occurs.
*/
public IConnection getConnection() throws OdaException;
/**
* Returns the collection of objects found in a data provider's catalog.
* Valid arguments to this method are implementation-dependent.
* <br>
* An optional method.
* @param catalog data provider's catalog.
* @param schema search pattern for the data provider's schema or
* owner name; could be left empty if not applicable to
* the connected data provider.
* @param object search pattern for the data provider's object name.
* @param version data provider's objects version.
* @return an IResultSet object describing the data provider's objects.
* @throws OdaException if data source error occurs.
*/
public IResultSet getDataSourceObjects( String catalog,
String schema,
String object,
String version ) throws OdaException;
/**
* Returns the major version number of the underlying data provider.
* @return the major version number.
* @throws OdaException if data source error occurs.
*/
public int getDataSourceMajorVersion() throws OdaException;
/**
* Returns the minor version number of the underlying data provider.
* @return the minor version number.
* @throws OdaException if data source error occurs.
*/
public int getDataSourceMinorVersion() throws OdaException;
/**
* Returns the name of this data provider product.
* @return data provider product name.
* @throws OdaException if data source error occurs.
*/
public String getDataSourceProductName() throws OdaException;
/**
* Returns the version of this data provider product as a <code>String</code>.
* @return data provider product version.
* @throws OdaException if data source error occurs.
*/
public String getDataSourceProductVersion() throws OdaException;
/**
* Indicates whether the SQLSTATE returned by <code>OdaException.getSQLState()</code>
* is X/Open SQL CLI or SQL99.
* <br>An optional method.
* @return the type of SQLSTATE;<br>
* one of sqlStateXOpen,<br>
* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* sqlStateSQL99.
* @throws OdaException if data source error occurs.
*/
public int getSQLStateType() throws OdaException;
/**
* Indicates whether this data set type supports getting
* multiple <code>IResultSet</code> objects (sequentially or simultaneously),
* in its <code>IAdvancedQuery</code> implementation.
* @return true if this data set supports getting multiple
* <code>IResultSet</code> objects; false otherwise.
* @throws OdaException if data source error occurs.
*/
public boolean supportsMultipleResultSets() throws OdaException;
/**
* Indicates whether this data set type supports getting
* multiple <code>IResultSet</code> objects simultaneously,
* in its <code>IAdvancedQuery</code> implementation.
* @return true if this data set supports getting multiple
* <code>IResultSet</code> objects simultaneously; false otherwise.
* @throws OdaException if data source error occurs.
*/
public boolean supportsMultipleOpenResults() throws OdaException;
/**
* Indicates whether this data set type supports getting
* one or more <code>IResultSet</code> objects by name,
* in its <code>IAdvancedQuery</code> implementation.
* @return true if this data set supports getting one or more
* <code>IResultSet</code> objects by name; false otherwise.
* @throws OdaException if data source error occurs.
*/
public boolean supportsNamedResultSets() throws OdaException;
/**
* Indicates whether this data set type supports named parameters in
* <code>IQuery</code>.
* @return true if named parameters are supported; false otherwise.
* @throws OdaException if data source error occurs.
*/
public boolean supportsNamedParameters() throws OdaException;
/**
* Indicates whether this data set type supports input parameters in
* <code>IQuery</code>.
* @return true if input parameters are supported; false otherwise.
* @throws OdaException if data source error occurs.
*/
public boolean supportsInParameters() throws OdaException;
/**
* Indicates whether this data set type supports output parameters
* in its <code>IAdvancedQuery</code> implementation.
* @return true if output parameters are supported; false otherwise.
* @throws OdaException if data source error occurs.
*/
public boolean supportsOutParameters() throws OdaException;
/**
* Returns the dynamic sorting mode supported by this data set type.
* @return the dynamic sorting mode supported by the data source; one
* of <code>sortModeNone</code>, <code>sortModeSingleOrder</code>,
* <code>sortModeColumnOrder</code>, <code>sortModeSingleColumn</code>
*/
public int getSortMode();
}

View File

@@ -1,75 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda;
/**
* The entry point to a custom ODA run-time drivers implementation.
* It is also a connection factory used to produce an IConnection object.
*/
public interface IDriver
{
/**
* Returns an IConnection object that can then be
* used to establish a runtime connection to the underlying
* data source with the given unique id.
* @param dataSourceId The id of a type of data source supported by this IDriver.
* This matches the data source element id defined in
* the data source driver's configuration file.
* A null or empty String will use the default
* data source type supported by this IDriver.
* @return an IConnection object
* @see IConnection
* @throws OdaException if data source error occurs.
*/
public IConnection getConnection( String dataSourceId )
throws OdaException;
/**
* An optional method to set the trace logging configuration of the ODA runtime driver
* for the given type of data source and its runtime connection(s).
* @param logConfig The trace logging configuration.
* @throws OdaException if ODA runtime driver error occurs.
*/
public void setLogConfiguration( LogConfiguration logConfig ) throws OdaException;
/**
* Returns the maximum number of concurrent connections that the driver can support.
* @return the maximum number of any type of connections that can be open concurrently,
* or 0 if there is no limit or the limit is unknown.
* @throws OdaException if driver error occurs.
*/
public int getMaxConnections() throws OdaException;
/**
* Sets the driver context passed through from an application.
* Its handling is specific to individual driver implementation.
* The context argument could be null. The method may be called
* by an ODA consumer application with a null argument,
* i.e. passing a null context object to this instance,
* only if a non-null context was previously passed through to
* the same instance.
* <br>
* <b>Note:</b> This method should be called before getConnection( String ).
* <br>An optional method.
* If any part of the context is not recognized by the driver,
* it should simply ignore, and not throw an exception.
* @param context Application context object of this instance.
* @throws OdaException if data source error occurs
* @since 3.0
*/
public void setAppContext( Object context ) throws OdaException;
}

View File

@@ -1,145 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda;
/**
* An interface that represents the meta-data
* of input/output parameters defined in a prepared query.
* Its implementation is required only if the driver supports
* query parameters.
* <p>
* <b>Note:</b> All parameter indices in this interface are 1-based.
*/
public interface IParameterMetaData
{
/**
* The constant indicating that the input/output mode of the
* parameter is unknown.
*/
public static final int parameterModeUnknown = 0;
/**
* The constant indicating that the parameter is an input parameter.
*/
public static final int parameterModeIn = 1;
/**
* The constant indicating that the parameter is both input and output.
*/
public static final int parameterModeInOut = 2;
/**
* The constant indicating that the parameter is an output parameter.
*/
public static final int parameterModeOut = 3;
/**
* The constant indicating that the nullability of the parameter is
* unknown.
*/
public static final int parameterNullableUnknown = 0;
/**
* The constant indicating that the parameter will not allow NULL
* values.
*/
public static final int parameterNoNulls = 1;
/**
* The constant indicating that the parameter will allow NULL values.
*/
public static final int parameterNullable = 2;
/**
* Returns the number of parameters defined in the
* prepared IQuery object.
* @return the number of parameters.
* @throws OdaException if data source error occurs.
*/
public int getParameterCount() throws OdaException;
/**
* Returns the input/output mode of the specified parameter.
* @param param 1-based index of the parameter.
* @return the input/output mode of the parameter;<br>
* one of parameterModeUnknown,<br>
* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* parameterModeIn,<br>
* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* parameterModeInOut,<br>
* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* parameterModeOut.
* @throws OdaException if data source error occurs.
*/
public int getParameterMode( int param ) throws OdaException;
/**
* Returns the data provider specific code of the parameter's data type.
* The valid values are implementation-specific.
* @param param 1-based index of the parameter.
* @return the native data type code of the parameter.
* @throws OdaException if data source error occurs.
*/
public int getParameterType( int param ) throws OdaException;
/**
* Returns the data provider specific name of the parameter's data type.
* @param param 1-based index of the parameter.
* @return the native data type name of the parameter.
* @throws OdaException if data source error occurs.
*/
public String getParameterTypeName( int param ) throws OdaException;
/**
* Returns the maximum number of decimal digits for the specified parameter.
* This method should only apply to numeric data types; however, it is up
* to an ODA data provider to determine those data types that are
* applicable. The maximum precision allowed on a data type may vary depending
* on the data provider.
* <br>An optional method.
* @param param 1-based index of the parameter.
* @return the precision of the parameter, or -1 if not applicable.
* @throws OdaException if data source error occurs.
*/
public int getPrecision( int param ) throws OdaException;
/**
* Returns the maximum number of digits to the right of the decimal point
* for the specified parameter.
* This method should only apply to numeric data types;
* however, it is up to an ODA data provider to determine
* those data types that are applicable. The maximum scale allowed on
* a data type may vary depending on the data provider.
* <br>An optional method.
* @param param 1-based index of the parameter.
* @return the scale of the parameter, or -1 if not applicable.
* @throws OdaException if data source error occurs.
*/
public int getScale( int param ) throws OdaException;
/**
* Returns whether null values are allowed for the specified parameter.
* <br>An optional method.
* @param param 1-based index of the parameter.
* @return the nullability of the parameter;<br>
* one of parameterNullableUnknown,<br>
* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* parameterNoNulls,<br>
* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* parameterNullable.
* @throws OdaException if data source error occurs.
*/
public int isNullable( int param ) throws OdaException;
}

View File

@@ -1,205 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
/**
* An optional interface that represents complex data type objects
* such as structures and tables.
* <p>
* The interface applies only if the ODA driver supports
* the use of complex input and/or output parameters.
* A structure can be represented by an IParameterRowSet object with one row.
* This interface is used to represent complex parameter data values.
* A complex parameter's metadata
* can be obtained from its inherited getMetaData() method.
* <p>
* A row set column may be referenced by name or position.
* <br>
* The case-sensitivity of a name is implementation-dependent.
* All indices in this interface are 1-based.
*/
public interface IParameterRowSet extends IResultSet
{
/**
* Moves the cursor to the designated row number.
* @param rowIndex the row number (1-based).
* @return true, if cursor is moved successfully to the desired row.
* @throws OdaException if data source error occurs.
*/
public boolean absolute( int rowIndex ) throws OdaException;
/**
* Moves the cursor up one element from its current position.
* <br>An optional method.
* @return true, if the cursor is moved successfully to a valid row.
* @throws OdaException if data source error occurs.
*/
public boolean previous() throws OdaException;
/**
* Appends a new row to the end of this collection and moves the cursor
* to the new row's position.
* <br>Only required for input parameters.
* @return 0 if this failed to add a new row. Otherwise, the rowIndex
* of the new row.
* @throws OdaException if data source error occurs.
*/
public int add() throws OdaException;
/**
* Removes all of the elements from this collection.
* <br>An optional method.
* @throws OdaException if data source error occurs.
*/
public void clear() throws OdaException;
/**
* Determines whether this does not contain any elements.
* @return true, if this is empty.
* @throws OdaException if data source error occurs.
*/
public boolean isEmpty() throws OdaException;
/**
* Returns the number of elements in this collection.
* @return size of this collection.
* @throws OdaException if data source error occurs.
*/
public int size() throws OdaException;
/**
* Sets the integer value at the designated column.
* @param columnIndex index of the column.
* @param value the integer value.
* @throws OdaException if data source error occurs.
*/
public void setInt( int columnIndex, int value ) throws OdaException;
/**
* Sets the integer value at the designated column.
* @param columnName name of the column.
* @param value the integer value.
* @throws OdaException if data source error occurs.
*/
public void setInt( String columnName, int value ) throws OdaException;
/**
* Sets the double value at the designated column.
* @param columnIndex index of the column.
* @param value the double value.
* @throws OdaException if data source error occurs.
*/
public void setDouble( int columnIndex, double value ) throws OdaException;
/**
* Sets the double value at the designated column.
* @param columnName name of the column.
* @param value the double value.
* @throws OdaException if data source error occurs.
*/
public void setDouble( String columnName, double value ) throws OdaException;
/**
* Sets the decimal value at the designated column.
* @param columnIndex index of the column.
* @param value the decimal value.
* @throws OdaException if data source error occurs.
*/
public void setBigDecimal( int columnIndex, BigDecimal value ) throws OdaException;
/**
* Sets the decimal value at the designated column.
* @param columnName name of the column.
* @param value the decimal value.
* @throws OdaException if data source error occurs.
*/
public void setBigDecimal( String columnName, BigDecimal value ) throws OdaException;
/**
* Sets the string value at the designated column.
* An ODA runtime driver may or may not support setString() on a non-String
* type column.
* The format of the string parameter is implementation-dependent.
* @param columnIndex index of the column.
* @param value the string value.
* @throws OdaException if data source error occurs.
*/
public void setString( int columnIndex, String value ) throws OdaException;
/**
* Sets the string value at the designated column.
* An ODA runtime driver may or may not support setString() on a non-String
* type column.
* The format of the string parameter is implementation-dependent.
* @param columnName name of the column.
* @param value the string value.
* @throws OdaException if data source error occurs.
*/
public void setString( String columnName, String value ) throws OdaException;
/**
* Sets the date value at the designated column.
* @param columnIndex index of the column.
* @param value the java.sql.Date value.
* @throws OdaException if data source error occurs.
*/
public void setDate( int columnIndex, Date value ) throws OdaException;
/**
* Sets the date value at the designated column.
* @param columnName name of the column.
* @param value the java.sql.Date value.
* @throws OdaException if data source error occurs.
*/
public void setDate( String columnName, Date value ) throws OdaException;
/**
* Sets the time value at the designated column.
* @param columnIndex index of the column.
* @param value the java.sql.Time value.
* @throws OdaException if data source error occurs.
*/
public void setTime( int columnIndex, Time value ) throws OdaException;
/**
* Sets the time value at the designated column.
* @param columnName name of the column.
* @param value the java.sql.Time value.
* @throws OdaException if data source error occurs.
*/
public void setTime( String columnName, Time value ) throws OdaException;
/**
* Sets the time stamp value at the designated column.
* @param columnIndex index of the column.
* @param value the java.sql.Timestamp value.
* @throws OdaException if data source error occurs.
*/
public void setTimestamp( int columnIndex, Timestamp value ) throws OdaException;
/**
* Sets the time stamp value at the designated column.
* @param columnName name of the column.
* @param value the java.sql.Timestamp value.
* @throws OdaException if data source error occurs.
*/
public void setTimestamp( String columnName, Timestamp value ) throws OdaException;
}

View File

@@ -1,318 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
/**
* The base query interface to
* prepare and execute a query text to retrieve data.
* This base interface covers most basic query capabilities,
* such as returning data rows in a single result set, and
* may support scalar input parameters.
* <p>
* Note: An IQuery object must <b>ALWAYS</b> be prepared before
* calling execute(). For example:
* <p>
* <code>
* query.prepare( "SELECT * FROM TABLE" );<br>
* // prepare succeeded, no exception was thrown <br>
* query.execute();</pre>
* </code>
* <p>
* An input parameter may be referenced by name or position.
* <br>
* The case-sensitivity of a name is implementation-dependent.
* All indices in this interface are 1-based.
*/
public interface IQuery
{
/**
* Performs necessary checks to determine whether the query text
* is of a valid format supported by this IQuery implementation.
* @param queryText a query text to prepare or pre-compile;
* it cannot be null.
* @throws OdaException if data source error occurs
*/
public void prepare( String queryText ) throws OdaException;
/**
* Sets the query context passed through from an application.
* Its handling is specific to individual driver implementation.
* The context argument could be null. The method may be called
* by an ODA consumer application with a null argument,
* i.e. passing a null context object to this instance,
* only if a non-null context was previously passed through to
* the same instance.
* <br>
* <b>Note:</b> This method should be called before prepare().
* <br>An optional method.
* If any part of the context is not recognized by the driver,
* it should simply ignore, and not throw an exception.
* @param context Application context object of this instance.
* @throws OdaException if data source error occurs
* @since 3.0
*/
public void setAppContext( Object context ) throws OdaException;
/**
* Sets the named property with the specified value.
* Multiple calls using the same property name may be allowed
* to assign multiple values to the same property.
* Its handling is specific to individual driver implementation.
* <br>Each ODA extension property defined for a data set
* triggers an ODA consumer to call this method
* with corresponding property value, which could be null.
* An ODA consumer does not distinguish whether a property value
* is not set or explicitly set to null.
* Its handling is specific to individual driver implementation.
* <br>
* <b>Note:</b> This method should be called before executeQuery() or
* other extended execution method(s).
* <br>An optional method.
* @param name name of the property.
* @param value value to assign to the named property; could be null.
* @throws OdaException if data source error occurs
*/
public void setProperty( String name, String value ) throws OdaException;
/**
* Attempts to close this IQuery.
* @throws OdaException if data source error occurs
*/
public void close() throws OdaException;
/**
* Specifies the maximum number of rows that can be fetched from
* the query's result set(s).
* <br>An optional method.
* @param max the maximum number of rows that can be fetched from each
* result set of this IQuery; zero means there is no limit.
* @throws OdaException if data source error occurs
*/
public void setMaxRows( int max ) throws OdaException;
/**
* Returns the maximum number of rows that can be fetched from
* the query's result set(s).
* <br>An optional method.
* @return the maximum number of rows that can be fetched from each
* result set of this IQuery; zero means there is no limit.
* @throws OdaException if data source error occurs
*/
public int getMaxRows() throws OdaException;
/**
* Returns the metadata of the current result set for this prepared IQuery.
* This should only be called after prepare(). If the method is called before
* the IQuery is executed, the returned metadata refers to its first result
* set.
* @return an IResultSetMetaData object.
* @throws OdaException if data source error occurs
*/
public IResultSetMetaData getMetaData() throws OdaException;
/**
* Executes the query's prepared query text and returns
* a single IResultSet object.
* <b>Note:</b> This should only be called after prepare().
* @return an IResultSet object.
* @throws OdaException if data source error occurs
*/
public IResultSet executeQuery() throws OdaException;
/**
* An optional method to clear the current input parameter values immediately.
* <p>
* In general, input parameter values remain in force for repeated use of a
* query. Setting a parameter value automatically clears its previous value.
* However, to reset all the parameters to their default values without
* explicitly setting new values, use this method.
* @throws OdaException if data source error occurs
* @throws UnsupportedOperationException
* if this operation is not supported
*/
public void clearInParameters() throws OdaException;
/**
* Sets the designated parameter to the given integer value.
* @param parameterName name of the parameter.
* @param value integer value.
* @throws OdaException if data source error occurs
*/
public void setInt( String parameterName, int value ) throws OdaException;
/**
* Sets the designated parameter to the given integer value.
* @param parameterId id of the parameter (1-based).
* @param value integer value.
* @throws OdaException if data source error occurs
*/
public void setInt( int parameterId, int value ) throws OdaException;
/**
* Sets the designated parameter to the given double value.
* @param parameterName name of the parameter.
* @param value double value.
* @throws OdaException if data source error occurs
*/
public void setDouble( String parameterName, double value ) throws OdaException;
/**
* Sets the designated parameter to the given double value.
* @param parameterId id of the parameter (1-based).
* @param value double value.
* @throws OdaException if data source error occurs
*/
public void setDouble( int parameterId, double value ) throws OdaException;
/**
* Sets the designated parameter to the given decimal value.
* @param parameterName name of the parameter.
* @param value decimal value.
* @throws OdaException if data source error occurs
*/
public void setBigDecimal( String parameterName, BigDecimal value ) throws OdaException;
/**
* Sets the designated parameter to the given decimal value.
* @param parameterId id of the parameter (1-based).
* @param value decimal value.
* @throws OdaException if data source error occurs
*/
public void setBigDecimal( int parameterId, BigDecimal value ) throws OdaException;
/**
* Sets the designated parameter to the given string value.
* An ODA runtime driver may or may not support setString() on a non-String
* type parameter.
* The format of the string parameter is implementation-dependent.
* @param parameterName name of the parameter.
* @param value string value.
* @throws OdaException if data source error occurs
*/
public void setString( String parameterName, String value ) throws OdaException;
/**
* Sets the designated parameter to the given string value.
* An ODA runtime driver may or may not support setString() on a non-String
* type parameter.
* The format of the string parameter is implementation-dependent.
* @param parameterId id of the parameter (1-based).
* @param value string value.
* @throws OdaException if data source error occurs
*/
public void setString( int parameterId, String value ) throws OdaException;
/**
* Sets the designated parameter to the given Date value.
* @param parameterName name of the parameter.
* @param value the java.sql.Date value.
* @throws OdaException if data source error occurs
*/
public void setDate( String parameterName, Date value ) throws OdaException;
/**
* Sets the designated parameter to the given Date value.
* @param parameterId id of the parameter (1-based).
* @param value the java.sql.Date value.
* @throws OdaException if data source error occurs
*/
public void setDate( int parameterId, Date value ) throws OdaException;
/**
* Sets the designated parameter to the given Time value.
* @param parameterName name of the parameter.
* @param value the java.sql.Time value.
* @throws OdaException if data source error occurs
*/
public void setTime( String parameterName, Time value ) throws OdaException;
/**
* Sets the designated parameter to the given Time value.
* @param parameterId id of the parameter (1-based).
* @param value the java.sql.Time value.
* @throws OdaException if data source error occurs
*/
public void setTime( int parameterId, Time value ) throws OdaException;
/**
* Sets the designated parameter to the given Timestamp value.
* @param parameterName name of the parameter.
* @param value the java.sql.Timestamp value.
* @throws OdaException if data source error occurs
*/
public void setTimestamp( String parameterName, Timestamp value ) throws OdaException;
/**
* Sets the designated parameter to the given Timestamp value.
* @param parameterId id of the parameter (1-based).
* @param value the java.sql.Timestamp value.
* @throws OdaException if data source error occurs
*/
public void setTimestamp( int parameterId, Timestamp value ) throws OdaException;
/**
* Returns the 1-based index of the specified input parameter.
* @param parameterName name of the parameter.
* @return index of the parameter.
* @throws OdaException if data source error occurs
*/
public int findInParameter( String parameterName ) throws OdaException;
/**
* Returns the count, data types, and other metadata attributes
* of the parameters defined in this prepared IQuery object.
* Its implementation is required for ODA runtime drivers.
* <p>
* <b>Note:</b> This should only be called after prepare() is called.
* @return an IParameterMetaData object that contains information about
* this prepared IQuery object's parameters.
* @throws OdaException if data source error occurs
*/
public IParameterMetaData getParameterMetaData() throws OdaException;
/**
* Specifies the sort specification for this <code>IQuery</code>.
* The setter must be called before this <code>IQuery</code> is executed
* or before <code>getMoreResults</code> is called.
* More sort keys can be added to the SortSpec after
* it is associated with the query.
* The final sort specification is then applied
* to subsequent result set(s) at execution.
* <p>
* It is up to individual ODA runtme drivers to validate the type of sort specification
* that are acceptable to its data provider, based on its level
* of dynamic sorting support.
* An <code>OdaException</code> should be thrown if the specified sort
* specification is not valid or not supported by the driver.
* @param sortBy the sort specification assigned to this <code>IQuery</code>.
* @throws OdaException if data source error occurs
*/
public void setSortSpec( SortSpec sortBy ) throws OdaException;
/**
* Returns the sort specification associated with this <code>IQuery</code>.
* @return the <code>SortSpec</code> assigned to this <code>IQuery</code>;
* <code>null</code> if no <code>SortSpec</code> was explicitly set.
* @throws OdaException if data source error occurs
*/
public SortSpec getSortSpec() throws OdaException;
}

View File

@@ -1,275 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
/**
* The interface used to access a set of data rows retrieved
* by an IQuery object.
* An IResultSet object maintains a cursor pointing to its current row of data.
* Initially, the cursor is positioned before the first row. The next() method
* moves the cursor to the next row until there are no more rows, or if the
* MaxRows limit has been reached.
* <p>
* A result set column may be referenced by name or position.
* <br>
* The case-sensitivity of a name is implementation-dependent.
* All indices in this interface are 1-based.
*/
public interface IResultSet
{
/**
* Returns the metadata associated with this IResultSet.
* @return the metadata for this IResultSet
* @throws OdaException if data source error occurs
*/
public IResultSetMetaData getMetaData( ) throws OdaException;
/**
* Closes the cursor associated with this IResultSet.
* @throws OdaException if data source error occurs
*/
public void close( ) throws OdaException;
/**
* Specifies the maximum number of rows that can be fetched from this result set.
* <br>An optional method.
* @param max maximum number of rows that can be fetched from this IResultSet;
* zero means there is no limit.
* This value should not be greater than the maximum number of rows
* specified in the related IQuery.
* @throws OdaException if data source error occurs
* @since 1.1
*/
public void setMaxRows( int max ) throws OdaException;
/**
* Moves the cursor down one row from its current position.
* @return true, if next data row exists and the maxRows limit has
* not been reached.
* @throws OdaException if data source error occurs
*/
public boolean next( ) throws OdaException;
/**
* Returns the current row's 1-based index position.
* <br>An optional method.
* @return current row's 1-based index position
* @throws OdaException if data source error occurs
*/
public int getRow( ) throws OdaException;
/**
* Gets the value of the designated column in the current row as a String.
* An ODA runtime driver may or may not support getString() on a non-String
* type column.
* The format of the returned string is implementation-dependent.
* @param index column number (1-based)
* @return the string value in the specific column of the current row
* @throws OdaException if data source error occurs
*/
public String getString( int index ) throws OdaException;
/**
* Gets the value of the designated column in the current row as a String.
* An ODA runtime driver may or may not support getString() on a non-String
* type column.
* The format of the returned string is implementation-dependent.
* @param columnName column name
* @return the string value in the specific column of the current row
* @throws OdaException if data source error occurs.
*/
public String getString( String columnName ) throws OdaException;
/**
* Gets the value of the designated column in the current row as an int.
* @param index column number (1-based)
* @return the integer value in the specific column of the current row
* @throws OdaException if data source error occurs
*/
public int getInt( int index ) throws OdaException;
/**
* Gets the value of the designated column in the current row as an int.
* @param columnName column name
* @return the integer value in the specific column of the current row
* @throws OdaException if data source error occurs
*/
public int getInt( String columnName ) throws OdaException;
/**
* Gets the value of the designated column in the current row as a double.
* @param index column number (1-based)
* @return the double value in the specific column of the current row
* @throws OdaException if data source error occurs
*/
public double getDouble( int index ) throws OdaException;
/**
* Gets the value of the designated column in the current row as a double.
* @param columnName column name
* @return the double value in the specific column of the current row
* @throws OdaException if data source error occurs
*/
public double getDouble( String columnName ) throws OdaException;
/**
* Gets the value of the designated column in the current row as a decimal.
* @param index column number (1-based)
* @return the decimal value in the specific column of the current row
* @throws OdaException if data source error occurs
* @since 1.1
*/
public BigDecimal getBigDecimal( int index ) throws OdaException;
/**
* Gets the value of the designated column in the current row as a decimal.
* @param columnName column name
* @return the decimal value in the specific column of the current row
* @throws OdaException if data source error occurs
* @since 1.1
*/
public BigDecimal getBigDecimal( String columnName ) throws OdaException;
/**
* Gets the value of the designated column in the current row as a java.sql.Date.
* @param index column number (1-based)
* @return the java.sql.Date value in the specific column of the current row
* @throws OdaException if data source error occurs
*/
public Date getDate( int index ) throws OdaException;
/**
* Gets the value of the designated column in the current row as a java.sql.Date.
* @param columnName column name
* @return the java.sql.Date value in the specific column of the current row
* @throws OdaException if data source error occurs
*/
public Date getDate( String columnName ) throws OdaException;
/**
* Gets the value of the designated column in the current row as a java.sql.Time.
* @param index column number (1-based)
* @return the java.sql.Time value in the specific column of the current row
* @throws OdaException if data source error occurs
*/
public Time getTime( int index ) throws OdaException;
/**
* Gets the value of the designated column in the current row as a java.sql.Time.
* @param columnName column name
* @return the java.sql.Time value in the specific column of the current row
* @throws OdaException if data source error occurs
*/
public Time getTime( String columnName ) throws OdaException;
/**
* Gets the value of the designated column in the current row as a java.sql.Timestamp.
* @param index column number (1-based)
* @return the java.sql.Timestamp value in the specific column of the current row
* @throws OdaException if data source error occurs
*/
public Timestamp getTimestamp( int index ) throws OdaException;
/**
* Gets the value of the designated column in the current row as a java.sql.Timestamp.
* @param columnName column name
* @return the java.sql.Timestamp value in the specific column of the current row
* @throws OdaException if data source error occurs
*/
public Timestamp getTimestamp( String columnName ) throws OdaException;
/**
* Gets the value of the designated column in the current row
* as an IBlob object.
* <p><b>Note:</b> The driver must guarantee that
* the returned object and its BLOB data would remain valid
* and accessible until this result set is closed.
* @param index column number (1-based)
* @return an IBlob object that represents the BLOB value
* in the specific column of the current row;
* or <code>null</code> if the specific column has null value
* @throws OdaException if data source error occurs
* @since 3.0
*/
public IBlob getBlob( int index ) throws OdaException;
/**
* Gets the value of the designated column in the current row
* as an IBlob object.
* <p><b>Note:</b> The driver must guarantee that
* the returned object and its BLOB data would remain valid
* and accessible until this result set is closed.
* @param columnName column name
* @return an IBlob object that represents the BLOB value
* in the specific column of the current row;
* or <code>null</code> if the specific column has null value
* @throws OdaException if data source error occurs
* @since 3.0
*/
public IBlob getBlob( String columnName ) throws OdaException;
/**
* Gets the value of the designated column in the current row
* as an IClob object.
* <p><b>Note:</b> The driver must guarantee that
* the returned object and its CLOB data would remain valid
* and accessible until this result set is closed.
* @param index column number (1-based)
* @return an IClob object that represents the CLOB value
* in the specific column of the current row;
* or <code>null</code> if the specific column has null value
* @throws OdaException if data source error occurs
* @since 3.0
*/
public IClob getClob( int index ) throws OdaException;
/**
* Gets the value of the designated column in the current row
* as an IClob object.
* <p><b>Note:</b> The driver must guarantee that
* the returned object and its CLOB data would remain valid
* and accessible until this result set is closed.
* @param columnName column name
* @return an IClob object that represents the CLOB value
* in the specific column of the current row;
* or <code>null</code> if the specific column has null value
* @throws OdaException if data source error occurs
* @since 3.0
*/
public IClob getClob( String columnName ) throws OdaException;
/**
* Returns whether the value read from the previous get&lt;type&gt; method
* was invalid or null. This needs to be called immediately after
* the call to a get&lt;type&gt; method.
* @return true, if the previous get&lt;type&gt; call was invalid or null
* @throws OdaException if data source error occurs
*/
public boolean wasNull() throws OdaException;
/**
* Returns the column index of the specified column name.
* @param columnName name of the column
* @return column index (1-based)
* @throws OdaException if data source error occurs
*/
public int findColumn( String columnName ) throws OdaException;
}

View File

@@ -1,135 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda;
/**
* The interface that represents the meta-data
* of an IResultSet object.
* An IResultSetMetaData object represents a row containing meta-data
* for each column in the result set.
* <p>
* <b>Note:</b> All indices in this interface are 1-based.
*/
public interface IResultSetMetaData
{
/**
* The constant indicating that a column does not allow
* <code>NULL</code> value.
*/
public static final int columnNoNulls = 0;
/**
* The constant indicating that a column allows
* <code>NULL</code> value.
*/
public static final int columnNullable = 1;
/**
* The constant indicating that the nullability of a column's
* values is unknown.
*/
public static final int columnNullableUnknown = 2;
/**
* Returns the number of columns in the corresponding IResultSet object.
* @return number of columns.
* @throws OdaException if data source error occurs.
*/
public int getColumnCount( ) throws OdaException;
/**
* Returns the name of the specific column.
* @param index column number (1-based).
* @return the column name.
* @throws OdaException if data source error occurs.
*/
public String getColumnName( int index ) throws OdaException;
/**
* Returns the designated column's suggested title for use
* in the column heading and/or display name.
* @param index column number (1-based).
* @return the column's suggested title.
* @throws OdaException if data source error occurs.
*/
public String getColumnLabel( int index ) throws OdaException;
/**
* Returns the data provider specific code of the column's data type.
* The valid values are implementation-specific.
* @param index column number (1-based).
* @return the native data type code of the column.
* @throws OdaException if data source error occurs.
*/
public int getColumnType( int index ) throws OdaException;
/**
* Returns the data provider specific name of the column's data type.
* @param index column number (1-based).
* @return the native data type name of the column.
* @throws OdaException if data source error occurs.
*/
public String getColumnTypeName( int index ) throws OdaException;
/**
* Returns the display length of the specific column.
* @param index column number (1-based).
* @return the column display length, or -1 if unknown.
* @throws OdaException if data source error occurs.
*/
public int getColumnDisplayLength( int index ) throws OdaException;
/**
* Returns the maximum number of decimal digits of the specific column.
* This method should only apply to numeric data types; however, it is
* up to an ODA data provider to determine those data types that are
* applicable. The maximum precision allowed on a data type may vary
* depending on the data provider.
* <br>An optional method.
* @param index column number (1-based).
* @return the column precision, or -1 if not applicable.
* @throws OdaException if data source error occurs.
*/
public int getPrecision( int index ) throws OdaException;
/**
* Returns the maximum number of digits to the right of the decimal
* point of the specific column. This method should only apply
* to numeric data types, however, it is up to an ODA data provider
* to determine those data types that are applicable.
* The maximum scale allowed on a data type may vary depending on the
* data provider.
* <br>An optional method.
* @param index column number.
* @return the column scale, or -1 if not applicable.
* @throws OdaException if data source error occurs.
*/
public int getScale( int index ) throws OdaException;
/**
* Indicates the nullability of values in the designated column.
* <br>An optional method.
* @param index column number
* @return the nullability status of the specified column;<br>
* one of columnNoNulls,<br>
* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* columnNullable,<br>
* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* columnNullableUnknown.
* @throws OdaException if data source error occurs.
*/
public int isNullable( int index ) throws OdaException;
}

View File

@@ -1,149 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda;
/**
* Encapsulates the trace logging configuration
* specified for an ODA run-time driver.
*/
public class LogConfiguration
{
private String m_dataSourceId;
private int m_logLevel;
private String m_logDirectory;
private String m_logPrefix;
private String m_formatterClassName;
/**
* Constructor to set the trace logging configuration of the ODA runtime driver
* for the given type of data source and its runtime connection(s).
* @param dataSourceId The id of a type of data source to apply
* the logging configuration.
* A null or empty String means to apply to all
* data source types supported by this IDriver.
* @param logLevel The level of information to log. The value of a
* log level is implementation dependent of the Logger
* used.
* @param logDirectory The absolute path of the log directory.
* @param logPrefix The prefix used in the log file name. For example,
* it could be used in the log file format:
* &lt;logPrefix&gt;-YYYYMMDD-hhmmss.log, but its usage
* is implementation dependent.
* @param formatterClassName The fully qualified class name of a
* <code>LogFormatter</code> implementation class.
*/
public LogConfiguration( String dataSourceId,
int logLevel,
String logDirectory,
String logPrefix,
String formatterClassName )
{
m_dataSourceId = dataSourceId;
setLogConfiguration( logLevel, logDirectory,
logPrefix, formatterClassName );
}
/**
* Constructor to set the trace logging configuration of the
* ODA runtime driver
* for all data source types supported by the IDriver.
*/
public LogConfiguration( int logLevel,
String logDirectory,
String logPrefix,
String formatterClassName )
{
setLogConfiguration( logLevel, logDirectory,
logPrefix, formatterClassName );
}
private LogConfiguration()
{
}
private void setLogConfiguration( int logLevel,
String logDirectory,
String logPrefix,
String formatterClassName )
{
m_logLevel = logLevel;
if( logDirectory != null && logDirectory.length() == 0 )
logDirectory = null;
m_logDirectory = logDirectory;
if( logPrefix != null && logPrefix.length() == 0 )
logPrefix = null;
m_logPrefix = logPrefix;
if( formatterClassName != null && formatterClassName.length() == 0 )
formatterClassName = null;
m_formatterClassName = formatterClassName;
}
/**
* Returns the id of a type of data source to apply
* the logging configuration.
* A null or empty String means to apply to all
* data source types supported by this IDriver.
* @return the dataSourceId.
*/
public String getDataSourceId()
{
return m_dataSourceId;
}
/**
* Returns the fully qualified class name of a
* <code>LogFormatter</code> implementation class,
* suitable for use by the driver-specific logging utility.
* @return the formatterClassName, or null if none is configured.
*/
public String getFormatterClassName()
{
return m_formatterClassName;
}
/**
* Returns the absolute path of the log directory.
* @return the logDirectory, or null if none is configured.
*/
public String getLogDirectory()
{
return m_logDirectory;
}
/**
* Returns the level of information to log. The value of a
* log level is implementation dependent of the Logger used.
* @return the logLevel.
*/
public int getLogLevel()
{
return m_logLevel;
}
/**
* Returns the prefix used in the log file name.
* For example, it could be used in the log file format:
* &lt;logPrefix&gt;-YYYYMMDD-hhmmss.log, but its usage
* is implementation dependent.
* @return the logPrefix, or null if none is configured.
*/
public String getLogPrefix()
{
return m_logPrefix;
}
}

View File

@@ -1,358 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.datatools.connectivity.oda.nls.Messages;
import com.ibm.icu.util.ULocale;
/**
* A class that encapsulates one or more sort keys for
* association with an IQuery.
* The class is designed to be extendable to accommodate
* additional ways of expressing a sort mode or key.
*/
public class SortSpec
{
/**
* The constant indicating ascending sort order.
*/
public static final int sortAsc = 0;
/**
* The constant indicating descending sort order.
*/
public static final int sortDesc = 1;
private int m_sortMode;
private List m_sortKeys;
/**
* Instantiates a <code>SortSpec</code> object for the defined
* <code>sortMode</code>.
* @param sortMode the sort mode of this <code>SortSpec</code>; one of
* <code>IDataSetMetaData.sortModeNone</code>,
* <code>IDataSetMetaData.sortModeSingleOrder</code>,
* <code>IDataSetMetaData.sortModeColumnOrder</code>,
* <code>IDataSetMetaData.sortModeSingleColumn</code>.
* @throws IllegalArgumentException if the <code>sortMode</code> is not a
* valid value.
*/
public SortSpec( int sortMode )
{
if( sortMode != IDataSetMetaData.sortModeNone &&
sortMode != IDataSetMetaData.sortModeSingleOrder &&
sortMode != IDataSetMetaData.sortModeColumnOrder &&
sortMode != IDataSetMetaData.sortModeSingleColumn )
throw new IllegalArgumentException(
Messages.bind( Messages.sortSpec_INVALID_SORT_MODE_SPECIFIED,
new Integer( sortMode ) ));
m_sortMode = sortMode;
m_sortKeys = new ArrayList();
}
/**
* Specifies the dynamic sort criteria in this sort mode.
* The sort criteria are specified by an ODA consumer, using
* an ordered list of one or more sort keys.
* The adding sequence of each sortKey corresponds to the major-to-minor
* ordering. Validation is done against this <code>SortSpec</code>'s sortMode;
* i.e. the method throws an exception when adding a sort key that does not
* conform to the sortMode of this <code>SortSpec</code> object.
* @param columnName name of the result set column to apply dynamic sorting
* on. The specified column should be one of the columns
* retrieved in a result set.
* @param sortOrder value that represents the sorting order; one of
* <code>sortAsc</code>, <code>sortDesc</code>.
* @throws NullPointerException if <code>columnName</code> is null.
* @throws IllegalArgumentException if <code>columnName</code> is empty; or if
* <code>sortOrder</code> is not <code>sortAsc</code>
* or <code>sortDesc</code>.
* @throws IllegalStateException if the sortMode of this <code>SortSpec</code>
* is <code>IDataSetMetaData.sortModeNone</code>;
* or if the sortMode of this <code>SortSpec</code>
* is <code>IDataSetMetaData.sortModeSingleColumn</code>,
* and a sort key is already associated; or if the
* sortMode of this <code>SortSpec</code> is
* <code>IDataSetMetaData.sortModeSingleOrder</code>
* and the sort order does not match existing sort orders.
*/
public void addSortKey( String columnName, int sortOrder )
{
if( columnName == null )
throw new NullPointerException(
Messages.sortSpec_NULL_COLUMN_NAME_SPECIFIED );
if( columnName.length() == 0 )
throw new IllegalArgumentException(
Messages.bind( Messages.sortSpec_INVALID_COLUMN_NAME_SPECIFIED,
columnName ) );
if( sortOrder != sortAsc && sortOrder != sortDesc )
throw new IllegalArgumentException(
Messages.bind( Messages.sortSpec_INVALID_SORT_ORDER_SPECIFIED,
new Integer( sortOrder ) ));
if( m_sortMode == IDataSetMetaData.sortModeNone )
throw new IllegalStateException(
Messages.sortSpec_NO_DYNAMIC_SORT_KEY_FOR_SORTMODENONE );
if( m_sortMode == IDataSetMetaData.sortModeSingleColumn &&
doGetSortKeyCount() > 0 )
throw new IllegalStateException(
Messages.sortSpec_ONE_SORTCOLUMN_FOR_SINGLE_COLUMN_MODE );
if( m_sortMode == IDataSetMetaData.sortModeSingleOrder &&
doGetSortKeyCount() > 0 )
{
// enforce that all sortOrders are the same
SortKey sortKey = (SortKey) m_sortKeys.get( 0 );
if( sortKey.getSortOrder() != sortOrder )
throw new IllegalStateException(
Messages.sortSpec_ONE_SORTORDER_FOR_SINGLE_ORDER_MODE );
}
SortKey sortKey = new SortKey( columnName, sortOrder );
m_sortKeys.add( sortKey );
}
/**
* Returns the sort mode of this <code>SortSpec</code> object.
* @return the sort mode of this <code>SortSpec</code>; one of
* <code>IDataSetMetaData.sortModeNone</code>,
* <code>IDataSetMetaData.sortModeSingleOrder</code>,
* <code>IDataSetMetaData.sortModeColumnOrder</code>,
* <code>IDataSetMetaData.sortModeSingleColumn</code>.
*/
public int getSortMode()
{
return m_sortMode;
}
/**
* Returns the number of sort keys associated with this <code>SortSpec</code>
* object.
* @return the number of sort keys associated with this
* <code>SortSpec</code> object.
*/
public int getSortKeyCount()
{
return doGetSortKeyCount();
}
private int doGetSortKeyCount()
{
return m_sortKeys.size();
}
/**
* Returns the result set column name of the sort key at the <code>index</code>
* position.
* @param index index of the sort key (1-based).
* @return the name of the result set column for the specified sort key.
* @throws IndexOutOfBoundsException if <code>index</code> is out of range
* (index < 1 || index > getSortKeyCount()).
*/
public String getSortColumn( int index )
{
validateIndex( index );
// need to map from 1-based to 0-based collection index.
SortKey sortKey = (SortKey) m_sortKeys.get( index - 1 );
return sortKey.getColumnName();
}
/**
* Returns the sort order of the sort key at the <code>index</code> position.
* @param index index of the sort key (1-based).
* @return the sort order for the specified sort key.
* @throws IndexOutOfBoundsException if <code>index</code> is out of range
* (index < 1 || index > getSortKeyCount()).
*/
public int getSortOrder( int index )
{
validateIndex( index );
// need to map from 1-based to 0-based collection index.
SortKey sortKey = (SortKey) m_sortKeys.get( index - 1 );
return sortKey.getSortOrder();
}
private void validateIndex( int index )
{
int count = doGetSortKeyCount();
if( index < 1 || index > count )
throw new IndexOutOfBoundsException( "Index: " + index + ", Count: " + count );
}
/**
* Returns an array of all column names for the sort key of a
* <code>sortModeSingleOrder</code> <code>SortSpec</code> object.
* @return an array of all column names for the sort keys of a
* <code>sortModeSingleOrder</code> <code>SortSpec</code>
* object; an empty array if no sort keys are associated
* with this <code>SortSpec</code>.
* @throws IllegalStateException if this <code>SortSpec</code>'s sort
* mode is not <code>sortModeSingleOrder</code>.
*/
public String[] getSortColumns()
{
if( m_sortMode != IDataSetMetaData.sortModeSingleOrder )
throw new IllegalStateException(
Messages.sortSpec_ONLY_IN_SINGLE_ORDER_MODE );
int size = doGetSortKeyCount();
String[] sortColumns = new String[ size ];
for( int i = 0; i < size; i++ )
{
SortKey sortKey = (SortKey) m_sortKeys.get( i );
String columnName = sortKey.getColumnName();
sortColumns[i] = columnName;
}
return sortColumns;
}
/**
* Returns the sort order for the sort keys of a <code>sortModeSingleOrder</code>
* <code>SortSpec</code> object.
* @return the sort order for the sort keys of a <code>sortModeSingleOrder</code>
* <code>SortSpec</code> object; the default value, <code>sortAsc</code>,
* if no sort keys are associated with this <code>SortSpec</code>.
* @throws IllegalStateException if this <code>SortSpec</code>'s sort
* mode is not <code>sortModeSingleOrder</code>.
*/
public int getSortOrder()
{
if( m_sortMode != IDataSetMetaData.sortModeSingleOrder )
throw new IllegalStateException(
Messages.sortSpec_ONLY_IN_SINGLE_ORDER_MODE );
// if there are no sortKeys associated with this SortSpec, then it does not
// matter what we return here. Since the caller will get an empty string array
// from getSortColumns(), it would not know which columns to apply this value for.
if( doGetSortKeyCount() == 0 )
return sortAsc;
// since all the sort orders will be the same (enforced by addSortKey()),
// we could just return the sort order of any of our sort keys.
SortKey sortKey = (SortKey) m_sortKeys.get( 0 );
return sortKey.getSortOrder();
}
/**
* Sets the locale of this <code>SortSpec</code>. Enables this <code>SortSpec</code>
* to return localized error messages. The default locale is <code>en_US</code>.
* @param locale the locale used for localizing error messages.
* @deprecated obsolete; migrated to use NLS Messages class
*/
public void setLocale( ULocale locale )
{
// m_locale = locale;
}
/**
* Returns a string representation of this <code>SortSpec</code>.
* @return a string representation of this <code>SortSpec</code>.
*/
public String toString()
{
// override default toString() for convenient debugging and logging
return "Sort Mode: " + sortModeAsString( m_sortMode ) +
", Sort Keys: " + m_sortKeys;
}
/*
* A helper function for converting a sortOrder to its string representation.
*/
private static String sortOrderAsString( int sortOrder )
{
switch( sortOrder )
{
case sortAsc:
return "Ascending";
case sortDesc:
return "Descending";
default:
// addSortKey() validation should ensure correct value
return "";
}
}
/*
* A helper function for converting a sortMode to its string representation.
*/
private static String sortModeAsString( int sortMode )
{
switch( sortMode )
{
case IDataSetMetaData.sortModeNone:
return "sortModeNone";
case IDataSetMetaData.sortModeSingleOrder:
return "sortModeSingleOrder";
case IDataSetMetaData.sortModeColumnOrder:
return "sortModeColumnOrder";
case IDataSetMetaData.sortModeSingleColumn:
return "sortModeSingleColumn";
default:
// constructor checks ensure correct values
return "";
}
}
/*
* A simple private helper class that stores the state of
* each sort key.
*/
private static final class SortKey
{
private String m_columnName;
private int m_sortOrder;
// the arguments are to be validated by SortSpec class
private SortKey( String columnName, int sortOrder )
{
m_columnName = columnName;
m_sortOrder = sortOrder;
}
private String getColumnName()
{
return m_columnName;
}
private int getSortOrder()
{
return m_sortOrder;
}
public String toString()
{
return "{" + m_columnName + ", " +
sortOrderAsString( m_sortOrder ) + "}";
}
}
}

View File

@@ -1,81 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.impl;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import org.eclipse.datatools.connectivity.oda.IBlob;
import org.eclipse.datatools.connectivity.oda.OdaException;
/**
* Default implementation of IBlob for use by ODA runtime drivers.
* <code>Blob</code> handles common types of raw data that represent
* a BLOB value.
*/
public class Blob implements IBlob
{
private byte[] m_byteArray = null;
private InputStream m_stream = null;
private long m_length = Long.MIN_VALUE;
private Blob()
{
}
/**
* Create a new Blob from a byte array.
* @param byteArray byte array representing the blob.
*/
public Blob( byte[] byteArray )
{
m_byteArray = byteArray;
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IBlob#getBinaryStream()
*/
public InputStream getBinaryStream() throws OdaException
{
if ( m_stream == null )
m_stream = new ByteArrayInputStream( m_byteArray );
return m_stream;
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IBlob#getBytes(long, int)
*/
public byte[] getBytes( long position, int length ) throws OdaException
{
// let the oda.consumer.helper provides default implementation
throw new UnsupportedOperationException();
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IBlob#length()
*/
public long length() throws OdaException
{
if ( m_length == Long.MIN_VALUE )
m_length = m_byteArray.length;
return m_length;
}
}

View File

@@ -1,81 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.impl;
import java.io.Reader;
import java.io.StringReader;
import org.eclipse.datatools.connectivity.oda.IClob;
import org.eclipse.datatools.connectivity.oda.OdaException;
/**
* Default implementation of IClob for use by ODA runtime drivers.
* <code>Clob</code> handles common types of raw data that represent
* a CLOB value.
*/
public class Clob implements IClob
{
private String m_string = null;
private Reader m_reader = null;
private long m_length = Long.MIN_VALUE;
private Clob()
{
}
/**
* Create a new Clob from a <code>String</code>.
* @param string String representing the clob.
*/
public Clob( String string )
{
m_string = string;
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IClob#getCharacterStream()
*/
public Reader getCharacterStream() throws OdaException
{
if ( m_reader == null )
m_reader = new StringReader( m_string );
return m_reader;
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IClob#getSubString()
*/
public String getSubString( long position, int length )
throws OdaException
{
// let the oda.consumer.helper provides default implementation
throw new UnsupportedOperationException();
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IClob#length()
*/
public long length() throws OdaException
{
if ( m_length == Long.MIN_VALUE )
m_length = m_string.length();
return m_length;
}
}

View File

@@ -1,110 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.impl;
import java.util.Properties;
import org.eclipse.datatools.connectivity.oda.IConnection;
import org.eclipse.datatools.connectivity.oda.IDataSetMetaData;
import org.eclipse.datatools.connectivity.oda.IQuery;
import org.eclipse.datatools.connectivity.oda.OdaException;
/**
* Default implementation of IConnection
* for a simple ODA runtime driver.
*/
public class SimpleConnection implements IConnection
{
private boolean m_isOpen = false;
/*
* @see org.eclipse.datatools.connectivity.oda.IConnection#open(java.util.Properties)
*/
public void open( Properties connProperties ) throws OdaException
{
m_isOpen = true;
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/*
* @see org.eclipse.datatools.connectivity.oda.IConnection#setAppContext(java.lang.Object)
*/
public void setAppContext( Object context ) throws OdaException
{
// do nothing; assumes no support for pass-through context
}
/*
* @see org.eclipse.datatools.connectivity.oda.IConnection#close()
*/
public void close() throws OdaException
{
m_isOpen = false;
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/*
* @see org.eclipse.datatools.connectivity.oda.IConnection#isOpen()
*/
public boolean isOpen() throws OdaException
{
return m_isOpen;
}
/*
* @see org.eclipse.datatools.connectivity.oda.IConnection#getMetaData(java.lang.String)
*/
public IDataSetMetaData getMetaData( String dataSetType ) throws OdaException
{
// ignores the dataSetType,
// assuming the simple driver supports only one type
return new SimpleDataSetMetaData( this );
}
/*
* @see org.eclipse.datatools.connectivity.oda.IConnection#newQuery(java.lang.String)
*/
public IQuery newQuery( String dataSetType ) throws OdaException
{
// ignores the dataSetType,
// assuming the simple driver supports only one type
return new SimpleQuery();
}
/*
* @see org.eclipse.datatools.connectivity.oda.IConnection#getMaxQueries()
*/
public int getMaxQueries() throws OdaException
{
return 0; // no limit
}
/*
* @see org.eclipse.datatools.connectivity.oda.IConnection#commit()
*/
public void commit() throws OdaException
{
// do nothing; assumes no transaction support
}
/*
* @see org.eclipse.datatools.connectivity.oda.IConnection#rollback()
*/
public void rollback() throws OdaException
{
throw new UnsupportedOperationException();
}
}

View File

@@ -1,147 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.impl;
import org.eclipse.datatools.connectivity.oda.IConnection;
import org.eclipse.datatools.connectivity.oda.IDataSetMetaData;
import org.eclipse.datatools.connectivity.oda.IResultSet;
import org.eclipse.datatools.connectivity.oda.OdaException;
/**
* Default implementation of IDataSetMetaData
* for a simple ODA runtime driver.
*/
public class SimpleDataSetMetaData implements IDataSetMetaData
{
private IConnection m_connection;
protected SimpleDataSetMetaData( IConnection connection )
{
m_connection = connection;
}
/**
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getConnection()
*/
public IConnection getConnection() throws OdaException
{
return m_connection;
}
/**
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getDataSourceObjects(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
*/
public IResultSet getDataSourceObjects( String catalog, String schema, String object, String version ) throws OdaException
{
throw new UnsupportedOperationException();
}
/**
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getDataSourceMajorVersion()
*/
public int getDataSourceMajorVersion() throws OdaException
{
return 0;
}
/**
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getDataSourceMinorVersion()
*/
public int getDataSourceMinorVersion() throws OdaException
{
return 0;
}
/**
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getDataSourceProductName()
*/
public String getDataSourceProductName() throws OdaException
{
return "Simple Data Source"; //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getDataSourceProductVersion()
*/
public String getDataSourceProductVersion() throws OdaException
{
return Integer.toString( getDataSourceMajorVersion() ) + "." + //$NON-NLS-1$
Integer.toString( getDataSourceMinorVersion() );
}
/**
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getSQLStateType()
*/
public int getSQLStateType() throws OdaException
{
return IDataSetMetaData.sqlStateSQL99;
}
/**
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#supportsMultipleResultSets()
*/
public boolean supportsMultipleResultSets() throws OdaException
{
return false;
}
/**
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#supportsMultipleOpenResults()
*/
public boolean supportsMultipleOpenResults() throws OdaException
{
return false;
}
/**
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#supportsNamedResultSets()
*/
public boolean supportsNamedResultSets() throws OdaException
{
return false;
}
/**
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#supportsNamedParameters()
*/
public boolean supportsNamedParameters() throws OdaException
{
return false;
}
/**
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#supportsInParameters()
*/
public boolean supportsInParameters() throws OdaException
{
return false;
}
/**
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#supportsOutParameters()
*/
public boolean supportsOutParameters() throws OdaException
{
return false;
}
/**
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getSortMode()
*/
public int getSortMode()
{
return IDataSetMetaData.sortModeNone;
}
}

View File

@@ -1,74 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.impl;
import org.eclipse.datatools.connectivity.oda.IConnection;
import org.eclipse.datatools.connectivity.oda.IDriver;
import org.eclipse.datatools.connectivity.oda.LogConfiguration;
import org.eclipse.datatools.connectivity.oda.OdaException;
/**
* Default implementation of IDriver
* for a simple ODA runtime driver.
*/
public class SimpleDriver implements IDriver
{
/*
* @see org.eclipse.datatools.connectivity.oda.IDriver#getConnection(java.lang.String)
*/
public IConnection getConnection( String dataSourceType ) throws OdaException
{
return newConnection( dataSourceType );
}
/**
* Override to return a specific IConnection instance based on the
* type of data source.
* @param connectionType the type of the IConnection to instantiate for the data source.
* @return an IConnection instance.
* @throws OdaException if data source error occurs.
*/
protected IConnection newConnection( String dataSourceType ) throws OdaException
{
// assumes that only one type of data source is supported by the simple driver;
// ignores given argument
return new SimpleConnection();
}
/*
* @see org.eclipse.datatools.connectivity.oda.IDriver#setLogConfiguration(org.eclipse.datatools.connectivity.oda.LogConfiguration)
*/
public void setLogConfiguration( LogConfiguration logConfig ) throws OdaException
{
// do nothing; assumes simple driver has no logging
}
/*
* @see org.eclipse.datatools.connectivity.oda.IDriver#getMaxConnections()
*/
public int getMaxConnections() throws OdaException
{
return 0; // no limit
}
/*
* @see org.eclipse.datatools.connectivity.oda.IDriver#setAppContext(java.lang.Object)
*/
public void setAppContext( Object context ) throws OdaException
{
// do nothing; assumes no support for pass-through context
}
}

View File

@@ -1,87 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2005, 2006 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.impl;
import org.eclipse.datatools.connectivity.oda.IParameterMetaData;
import org.eclipse.datatools.connectivity.oda.OdaException;
/**
* Default implementation of IParameterMetaData
* for a simple ODA runtime driver.
*/
public class SimpleParameterMetaData implements IParameterMetaData
{
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IParameterMetaData#getParameterCount()
*/
public int getParameterCount() throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IParameterMetaData#getParameterMode(int)
*/
public int getParameterMode( int param ) throws OdaException
{
// TODO data source dependent
return IParameterMetaData.parameterModeUnknown;
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IParameterMetaData#getParameterType(int)
*/
public int getParameterType( int param ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IParameterMetaData#getParameterTypeName(int)
*/
public String getParameterTypeName( int param ) throws OdaException
{
// TODO data source dependent
return null; // unknown
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IParameterMetaData#getPrecision(int)
*/
public int getPrecision( int param ) throws OdaException
{
return -1;
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IParameterMetaData#getScale(int)
*/
public int getScale( int param ) throws OdaException
{
return -1;
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IParameterMetaData#isNullable(int)
*/
public int isNullable( int param ) throws OdaException
{
return IParameterMetaData.parameterNullableUnknown;
}
}

View File

@@ -1,261 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.impl;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
import org.eclipse.datatools.connectivity.oda.IParameterMetaData;
import org.eclipse.datatools.connectivity.oda.IResultSet;
import org.eclipse.datatools.connectivity.oda.IResultSetMetaData;
import org.eclipse.datatools.connectivity.oda.IQuery;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.datatools.connectivity.oda.SortSpec;
/**
* Default implementation of IQuery
* for a simple ODA runtime driver.
*/
public class SimpleQuery implements IQuery
{
private int m_maxRows;
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#prepare(java.lang.String)
*/
public void prepare( String queryText ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setAppContext(java.lang.Object)
*/
public void setAppContext( Object context ) throws OdaException
{
// do nothing; assumes no support for pass-through context
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#close()
*/
public void close() throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#getMetaData()
*/
public IResultSetMetaData getMetaData() throws OdaException
{
// TODO Override to return a specific IResultSetMetaData instance.
return new SimpleResultSetMetaData();
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#executeQuery()
*/
public IResultSet executeQuery() throws OdaException
{
// TODO Override to return a specific IResultSet instance.
IResultSet resultSet = new SimpleResultSet();
resultSet.setMaxRows( getMaxRows() );
return resultSet;
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setProperty(java.lang.String, java.lang.String)
*/
public void setProperty( String name, String value ) throws OdaException
{
// do nothing; assumes no query property
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setMaxRows(int)
*/
public void setMaxRows( int max ) throws OdaException
{
m_maxRows = max;
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#getMaxRows()
*/
public int getMaxRows() throws OdaException
{
return m_maxRows;
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#clearInParameters()
*/
public void clearInParameters() throws OdaException
{
// only applies to input parameter
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setInt(java.lang.String, int)
*/
public void setInt( String parameterName, int value ) throws OdaException
{
// only applies to named input parameter
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setInt(int, int)
*/
public void setInt( int parameterId, int value ) throws OdaException
{
// only applies to input parameter
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setDouble(java.lang.String, double)
*/
public void setDouble( String parameterName, double value ) throws OdaException
{
// only applies to named input parameter
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setDouble(int, double)
*/
public void setDouble( int parameterId, double value ) throws OdaException
{
// only applies to input parameter
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setBigDecimal(java.lang.String, java.math.BigDecimal)
*/
public void setBigDecimal( String parameterName, BigDecimal value ) throws OdaException
{
// only applies to named input parameter
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setBigDecimal(int, java.math.BigDecimal)
*/
public void setBigDecimal( int parameterId, BigDecimal value ) throws OdaException
{
// only applies to input parameter
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setString(java.lang.String, java.lang.String)
*/
public void setString( String parameterName, String value ) throws OdaException
{
// only applies to named input parameter
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setString(int, java.lang.String)
*/
public void setString( int parameterId, String value ) throws OdaException
{
// only applies to input parameter
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setDate(java.lang.String, java.sql.Date)
*/
public void setDate( String parameterName, Date value ) throws OdaException
{
// only applies to named input parameter
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setDate(int, java.sql.Date)
*/
public void setDate( int parameterId, Date value ) throws OdaException
{
// only applies to input parameter
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setTime(java.lang.String, java.sql.Time)
*/
public void setTime( String parameterName, Time value ) throws OdaException
{
// only applies to named input parameter
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setTime(int, java.sql.Time)
*/
public void setTime( int parameterId, Time value ) throws OdaException
{
// only applies to input parameter
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setTimestamp(java.lang.String, java.sql.Timestamp)
*/
public void setTimestamp( String parameterName, Timestamp value ) throws OdaException
{
// only applies to named input parameter
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setTimestamp(int, java.sql.Timestamp)
*/
public void setTimestamp( int parameterId, Timestamp value ) throws OdaException
{
// only applies to input parameter
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#findInParameter(java.lang.String)
*/
public int findInParameter( String parameterName ) throws OdaException
{
// only applies to named input parameter
return 0;
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#getParameterMetaData()
*/
public IParameterMetaData getParameterMetaData() throws OdaException
{
// sub-class may override;
// @see default implementation in SimpleParameterMetaData class
return null; // has no parameters
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#setSortSpec(org.eclipse.datatools.connectivity.oda.SortSpec)
*/
public void setSortSpec( SortSpec sortBy ) throws OdaException
{
// only applies to sorting
}
/*
* @see org.eclipse.datatools.connectivity.oda.IQuery#getSortSpec()
*/
public SortSpec getSortSpec() throws OdaException
{
// only applies to sorting
return null;
}
}

View File

@@ -1,260 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.impl;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
import org.eclipse.datatools.connectivity.oda.IBlob;
import org.eclipse.datatools.connectivity.oda.IClob;
import org.eclipse.datatools.connectivity.oda.IResultSet;
import org.eclipse.datatools.connectivity.oda.IResultSetMetaData;
import org.eclipse.datatools.connectivity.oda.OdaException;
/**
* Default implementation of IResultSet
* for a simple ODA runtime driver.
*/
public class SimpleResultSet implements IResultSet
{
private int m_maxRows;
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getMetaData()
*/
public IResultSetMetaData getMetaData() throws OdaException
{
return new SimpleResultSetMetaData();
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#setMaxRows(int)
*/
public void setMaxRows( int max ) throws OdaException
{
m_maxRows = max;
}
/**
* Returns the maximum number of rows that can be fetched from this result set.
* @return the maximum number of rows to fetch.
*/
protected int getMaxRows()
{
return m_maxRows;
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#next()
*/
public boolean next() throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#close()
*/
public void close() throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getRow()
*/
public int getRow() throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getString(int)
*/
public String getString( int index ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getString(java.lang.String)
*/
public String getString( String columnName ) throws OdaException
{
return getString( findColumn( columnName ) );
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getInt(int)
*/
public int getInt( int index ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getInt(java.lang.String)
*/
public int getInt( String columnName ) throws OdaException
{
return getInt( findColumn( columnName ) );
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getDouble(int)
*/
public double getDouble( int index ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getDouble(java.lang.String)
*/
public double getDouble( String columnName ) throws OdaException
{
return getDouble( findColumn( columnName ) );
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getBigDecimal(int)
*/
public BigDecimal getBigDecimal( int index ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getBigDecimal(java.lang.String)
*/
public BigDecimal getBigDecimal( String columnName ) throws OdaException
{
return getBigDecimal( findColumn( columnName ) );
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getDate(int)
*/
public Date getDate( int index ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getDate(java.lang.String)
*/
public Date getDate( String columnName ) throws OdaException
{
return getDate( findColumn( columnName ) );
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getTime(int)
*/
public Time getTime( int index ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getTime(java.lang.String)
*/
public Time getTime( String columnName ) throws OdaException
{
return getTime( findColumn( columnName ) );
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getTimestamp(int)
*/
public Timestamp getTimestamp( int index ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getTimestamp(java.lang.String)
*/
public Timestamp getTimestamp( String columnName ) throws OdaException
{
return getTimestamp( findColumn( columnName ) );
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#wasNull()
*/
public boolean wasNull() throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSet#findColumn(java.lang.String)
*/
public int findColumn( String columnName ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getBlob(int)
*/
public IBlob getBlob( int index ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getBlob(java.lang.String)
*/
public IBlob getBlob( String columnName ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getClob(int)
*/
public IClob getClob( int index ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getClob(java.lang.String)
*/
public IClob getClob( String columnName ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
}

View File

@@ -1,101 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.impl;
import org.eclipse.datatools.connectivity.oda.IResultSetMetaData;
import org.eclipse.datatools.connectivity.oda.OdaException;
/**
* Default implementation of IResultSetMetaData
* for a simple ODA runtime driver.
*/
public class SimpleResultSetMetaData implements IResultSetMetaData
{
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getColumnCount()
*/
public int getColumnCount() throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getColumnName(int)
*/
public String getColumnName( int index ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getColumnLabel(int)
*/
public String getColumnLabel( int index ) throws OdaException
{
return getColumnName( index ); // default
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getColumnType(int)
*/
public int getColumnType( int index ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getColumnTypeName(int)
*/
public String getColumnTypeName( int index ) throws OdaException
{
// TODO data source dependent
throw new UnsupportedOperationException( "Please override and implement me." ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getColumnDisplayLength(int)
*/
public int getColumnDisplayLength( int index ) throws OdaException
{
return 0;
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getPrecision(int)
*/
public int getPrecision( int index ) throws OdaException
{
return -1;
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getScale(int)
*/
public int getScale( int index ) throws OdaException
{
return -1;
}
/**
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#isNullable(int)
*/
public int isNullable( int index ) throws OdaException
{
return IResultSetMetaData.columnNullableUnknown;
}
}

View File

@@ -1,35 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!--
*************************************************************************
* Copyright (c) 2004, 2006 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="white">
[<b>Non-API</b>] Provides a template implementation of the main ODA run-time interfaces.
These classes assume the behavior of a simple ODA driver,
and have labelled TODO tasks for a driver developer to
implement data source dependent behavior.
These concrete classes are provided for use as templates or
base classes to aid in the development of an ODA custom driver.
Their use is purely optional.
<!-- Put @see and @since tags down here. -->
@since 2.0
</body>
</html>

View File

@@ -1,70 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2006 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.nls;
import org.eclipse.osgi.util.NLS;
public class Messages extends NLS
{
private static final String BUNDLE_NAME = "org.eclipse.datatools.connectivity.oda.nls.messages"; //$NON-NLS-1$
private Messages()
{
}
static
{
// initialize resource bundle
NLS.initializeMessages( BUNDLE_NAME, Messages.class );
}
public static String logManager_duplicateName;
public static String manifest_nullArgument;
public static String manifest_NO_DRIVER_RUNTIME_CONFIGURATION_DEFINED;
public static String manifest_NO_DATA_SOURCE_EXTN_ID_DEFINED;
public static String manifest_INVALID_VERSION_VALUE;
public static String manifest_NO_DRIVER_CLASS_DEFINED;
public static String manifest_INVALID_SET_THREAD_CONTEXT_CLASSLOADER_VALUE;
public static String manifest_NO_DATA_SET_TYPES_DEFINED;
public static String manifest_NO_ATTRIBUTE_ID_DEFINED;
public static String manifest_NO_DATA_TYPE_MAPPINGS_DEFINED;
public static String manifest_NO_NATIVE_TYPE_CODE_DEFINED;
public static String manifest_INVALID_NATIVE_TYPE_CODE_VALUE;
public static String manifest_NO_NATIVE_TYPE_NAME_DEFINED;
public static String manifest_NO_ODA_SCALAR_DATA_TYPE_DEFINED_1;
public static String manifest_NO_ODA_SCALAR_DATA_TYPE_DEFINED_2;
public static String manifest_INVALID_ODA_SCALAR_DATA_TYPE_VALUE;
public static String manifest_INVALID_LOG_LEVEL_VALUE;
public static String manifest_NO_LOG_FILENAME_PREFIX_DEFINED;
public static String sortSpec_INVALID_SORT_MODE_SPECIFIED;
public static String sortSpec_NULL_COLUMN_NAME_SPECIFIED;
public static String sortSpec_INVALID_COLUMN_NAME_SPECIFIED;
public static String sortSpec_INVALID_SORT_ORDER_SPECIFIED;
public static String sortSpec_NO_DYNAMIC_SORT_KEY_FOR_SORTMODENONE;
public static String sortSpec_ONE_SORTCOLUMN_FOR_SINGLE_COLUMN_MODE;
public static String sortSpec_ONE_SORTORDER_FOR_SINGLE_ORDER_MODE;
public static String sortSpec_ONLY_IN_SINGLE_ORDER_MODE;
public static String stringSubUtil_NO_STRING_VALUE_TO_REPLACE;
public static String stringSubUtil_DELIMITER_CANNOT_BE_EMPTY;
public static String stringSubUtil_DELIMITER_CANNOT_BE_NULL;
public static String stringSubUtil_SUBSTITUTION_LIST_CANNOT_BE_NULL;
public static String stringSubUtil_SUBSTITUTION_VALUE_CANNOT_BE_NULL;
public static String stringSubUtil_TEXT_STRING_CANNOT_BE_NULL;
public static String stringSubUtil_NAME_VALUE_MAP_CANNOT_BE_NULL;
}

View File

@@ -1,49 +0,0 @@
#
#************************************************************************
# Copyright (c) 2004, 2006 Actuate Corporation.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Actuate Corporation - initial API and implementation
#
#************************************************************************
#
logManager_duplicateName=Logger with same name exists.
#
manifest_nullArgument=Argument must not be null.
manifest_NO_DRIVER_RUNTIME_CONFIGURATION_DEFINED=The ODA driver plugin.xml is missing a <dataSource> element.
manifest_NO_DATA_SOURCE_EXTN_ID_DEFINED=The ODA driver plugin.xml data source extension is missing an id attribute.
manifest_INVALID_VERSION_VALUE=The ODA driver plugin.xml has an invalid odaVersion value ({0}) in the data source extension ({1}).
manifest_NO_DRIVER_CLASS_DEFINED=The ODA driver plugin.xml is missing a driverClass attribute in the data source extension ({0}).
manifest_INVALID_SET_THREAD_CONTEXT_CLASSLOADER_VALUE=The ODA driver plugin.xml has an invalid setThreadContextClassLoader value ({0}) in the data source extension ({1}).
manifest_NO_DATA_SET_TYPES_DEFINED=The ODA data source extension ({0}) has no <dataSet> element defined in the extension manifest. This is valid configuration, but does limit the ODA extension capabilities.
manifest_NO_ATTRIBUTE_ID_DEFINED=The ODA driver plugin extension is missing an attribute ({0}) in the ({1}) element.
manifest_NO_DATA_TYPE_MAPPINGS_DEFINED=The ODA driver plugin.xml should have at least one <dataTypeMapping> element defined for the <dataSet> ({0}).
manifest_NO_NATIVE_TYPE_CODE_DEFINED=The ODA driver plugin.xml is missing a nativeDataTypeCode attribute in the <dataTypeMapping> ({0}) of the <dataSet> ({1}).
manifest_INVALID_NATIVE_TYPE_CODE_VALUE=The ODA driver plugin.xml has an invalid nativeDataTypeCode value ({0}) in the <dataTypeMapping> ({1}) of the <dataSet> ({2}).
manifest_NO_NATIVE_TYPE_NAME_DEFINED=The ODA driver plugin.xml is missing a nativeDataType attribute in the <dataTypeMapping> of the <dataSet> ({0}).
manifest_NO_ODA_SCALAR_DATA_TYPE_DEFINED_1=The ODA driver plugin.xml is missing an odaScalarDataType attribute in the <dataTypeMapping> ({0}).
manifest_NO_ODA_SCALAR_DATA_TYPE_DEFINED_2=The ODA driver plugin.xml is missing an odaScalarDataType attribute in the <alternativeOdaDataType> of the <dataTypeMapping> ({0}).
manifest_INVALID_ODA_SCALAR_DATA_TYPE_VALUE=The ODA driver plugin.xml has an invalid odaScalarDataType value ({0}) in the <dataTypeMapping> ({1}).
manifest_INVALID_LOG_LEVEL_VALUE=The ODA driver plugin.xml has an invalid logLevel value ({0}) in the data source extension ({1}).
manifest_NO_LOG_FILENAME_PREFIX_DEFINED=The ODA driver plugin.xml is missing a logFileNamePrefix attribute in the <traceLogging> of the data source extension ({0}).
#
sortSpec_INVALID_SORT_MODE_SPECIFIED=Invalid sort mode specified: {0}.
sortSpec_NULL_COLUMN_NAME_SPECIFIED=Null column name specified.
sortSpec_INVALID_COLUMN_NAME_SPECIFIED=Invalid column name specified: {0}.
sortSpec_INVALID_SORT_ORDER_SPECIFIED=Invalid sort order specified: {0}.
sortSpec_NO_DYNAMIC_SORT_KEY_FOR_SORTMODENONE=This sortSpec with sortModeNone does not allow any dynamic sort key.
sortSpec_ONE_SORTCOLUMN_FOR_SINGLE_COLUMN_MODE=A sort column already exists. The sortModeSingleColumn mode allows a maximum of one dynamic sort column.
sortSpec_ONE_SORTORDER_FOR_SINGLE_ORDER_MODE=The sortModeSingleOrder mode supports only one sort order.
sortSpec_ONLY_IN_SINGLE_ORDER_MODE=Supported only in sortModeSingleOrder mode.
#
stringSubUtil_NO_STRING_VALUE_TO_REPLACE=No string value to replace: {0}.
stringSubUtil_DELIMITER_CANNOT_BE_EMPTY=The delimiter cannot be an empty string or contain only white spaces.
stringSubUtil_DELIMITER_CANNOT_BE_NULL=The delimiter cannot be null.
stringSubUtil_SUBSTITUTION_LIST_CANNOT_BE_NULL=The string substitution list cannot be null.
stringSubUtil_SUBSTITUTION_VALUE_CANNOT_BE_NULL=The string substitution value cannot be null.
stringSubUtil_TEXT_STRING_CANNOT_BE_NULL=The text string cannot be null.
stringSubUtil_NAME_VALUE_MAP_CANNOT_BE_NULL=The name-value map cannot be null.

View File

@@ -1,64 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!--
*************************************************************************
* Copyright (c) 2004, 2006 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="white">
[<b>Provisional</b>] Defines the runtime API of the Open Data Access (ODA) extensions.
ODA provides the capability to plug any external data source into
a data consumer application that supports the ODA framework.
<p>
The ODA extension framework defines a set of ODA design-time and
run-time interfaces.
It adopts the Eclipse plug-in framework for one to provide a designer tool,
and a runtime driver for data retrieval.
This public API package specifies the Java interfaces of an
ODA extension's runtime driver.
<br>
An ODA consumer application, such as the BIRT Data Engine, uses the
data source connection and data set query definitions specified at design time to
access an ODA runtime driver for query execution and data retrieval.
<p>
The ODA runtime interfaces are JDBC-like, but have been extended to
support additional capabilities of non-RDBMS data sources.
An ODA driver would implement the public runtime interfaces,
which would in turn wrap data-source-specific APIs, such as web services,
to retrieve a result set's data rows.
<p>
Below is a brief overview of the API's main interfaces.
<br>The IDriver serves as the entry point to an ODA
runtime driver.
The driver produces a dedicated IConnection for establishing
a connection to the data source provider.
<br>An open connection in turn creates an IQuery to define
the specifics of a data set query.
A connection also provides meta-data information on the
capabilities of the data source, and its
supported data set types in IDataSetMetaData.
<br>A query is executed to retrieve one or
more IResultSet instances.
<br>A result set is then used to fetch result data.
It also provides an IResultSetMetaData for its
meta-data information.
<!-- Put @see and @since tags down here. -->
@since 1.0
</body>
</html>

View File

@@ -1,55 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2006 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.util;
import org.eclipse.core.runtime.Plugin;
import org.eclipse.datatools.connectivity.oda.util.manifest.ManifestExplorer;
import org.osgi.framework.BundleContext;
/**
* Bundle activator class.
*/
public class OdaPlugin extends Plugin
{
private static OdaPlugin sm_plugin;
public OdaPlugin()
{
super();
sm_plugin = this;
}
/**
* Returns the shared instance of this plugin activator.
* @return
*/
public static OdaPlugin getDefault()
{
return sm_plugin;
}
/* (non-Javadoc)
* @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
*/
public void stop( BundleContext context ) throws Exception
{
// release plugin's singleton instance(s)
ManifestExplorer.releaseInstance();
super.stop( context );
sm_plugin = null;
}
}

View File

@@ -1,808 +0,0 @@
//----------------------------------------------------------------------
// StringSubstitutionUtil.java
//
// Copyright (c) 2004, 2005 Actuate Corporation.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// Actuate Corporation - initial API and implementation
//
// StringSubstitutionUtil provides a utility class for performing
// string substitutions.
//----------------------------------------------------------------------
package org.eclipse.datatools.connectivity.oda.util;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.eclipse.datatools.connectivity.oda.nls.Messages;
/**
* StringSubstitutionUtil is a general utility that any ODA provider can use,
* which performs string substitutions. The utility is designed for ODA
* data sources that has a concept of embedded delimited strings in text strings.
* For example, an ODA driver query text could contain embedded parameters in the
* form of a colon followed by a parameter name, like ":myVariable". Two forms of
* string substitutions are supported by the utility: subsitution by index
* or by name.
*/
public final class StringSubstitutionUtil
{
private StringSubstitutionUtil()
{
// class is not meant to be instantiated
}
//---------------------------------------------------------------
// For logging purposes
//---------------------------------------------------------------
private static String sm_loggerName = StringSubstitutionUtil.class.getName();;
private static Logger sm_logger = Logger.getLogger( sm_loggerName );
/**
* Sets the <code>StringSubstitutionUtil</code> logger to log its
* utility methods.
* @param logger the logger that <code>StringSubstitutionUti</code>
* uses to log its methods.
*/
public static void setLogger( Logger logger )
{
sm_logger = logger;
}
/**
* Resets the <code>StringSubstitutionUtil</code> logger. The caller
* of <code>setLogger</code> should call this to remove its logger from
* the <code>StringSubstituionUtil</code>. Otherwise, subsequent calls
* to this utility's methods by other callers may be logged in the
* set logger.
*/
public static void resetLogger()
{
sm_logger = null;
}
private static void log( String message )
{
if( sm_logger != null )
sm_logger.log( Level.FINEST, message );
}
private static void log( Throwable thrown )
{
if( sm_logger != null )
sm_logger.log( Level.WARNING, thrown.getLocalizedMessage(),
thrown );
}
/**
* Returns the number of named and un-named delimited strings in the text argument, where
* the delimited strings are labeled by only a start delimiter. Calls
* <code>getDelimitedStringCount( text, startDelimiter, false )</code>.
* @param text string containing delimited strings.
* @param startDelimiter the start delimiter string.
* @return the number of named and un-named delimited strings.
* @see StringSubstitutionUtil#getDelimitedStringCount(String, String, boolean)
* getDelimitedStringCount
*/
public static int getDelimitedStringCount( String text,
String startDelimiter )
{
return getDelimitedStringCount( text, startDelimiter,
false /* requiresNamedDelimiters */ );
}
/**
* Returns the number of delimited strings in the text argument, where the delimited
* strings are labeled by only a start delimiter. If <code>requiresNamedDelimiters</code>
* is set to true, only the named delimiters will be counted. This should be used when
* the caller wants to perform substitution by name on the text string. Otherwise, both named
* and un-named delimiters will be counted. This should be used when the caller wants
* to perform substitution by index on the text string.
* <br>
* <br>
* <b>For example:</b><br>
* text = ":param1 :param2 :param3"<br>
* startDelimiter = ":"<br>
* returns: 3
* @param text string containing delimited strings.
* @param startDelimiter the start delimiter string.
* @param requiresNamedDelimiters
* determines whether only named delimiters will be counted.
* @return the number of delimited strings.
* @throws NullPointerException if text or startDelimiter is <code>null</code>.
*/
public static int getDelimitedStringCount( String text,
String startDelimiter,
boolean requiresNamedDelimiters )
{
String context = "StringSubstitutionUtil.getDelimitedStringCount( " + //$NON-NLS-1$
text + ", " + startDelimiter + ", " + //$NON-NLS-1$ //$NON-NLS-2$
requiresNamedDelimiters + " )\t"; //$NON-NLS-1$
log( context + "Called." ); //$NON-NLS-1$
sanityCheck( text, startDelimiter );
// we'll remove all beginning and trailing whitespaces
startDelimiter = sanityCheckDelimiter( startDelimiter );
int startDelimiterLength = startDelimiter.length();
StringBuffer stringBuffer = new StringBuffer( text );
int index = 0;
int numOfDelimitedStrings = 0;
while( ( index = text.indexOf( startDelimiter, index ) ) >= 0 )
{
log( context + "index: " + index ); //$NON-NLS-1$
int endIndex = getDelimitedStringEndIndex( stringBuffer, index,
startDelimiterLength,
requiresNamedDelimiters );
if( endIndex == -1 )
{
index += startDelimiterLength;
continue;
}
numOfDelimitedStrings++;
index = endIndex + 1;
}
log( context + "Exiting: " + numOfDelimitedStrings ); //$NON-NLS-1$
return numOfDelimitedStrings;
}
/**
* Returns the number of named and un-named delimited strings in the text
* argument, where the delimited strings are labeled by a start delimiter
* and an end delimiter. Calls
* <code>getDelimitedStringCount( text, startDelimiter, endDelimiter, false )</code>.
* @param text string containing delimited strings.
* @param startDelimiter the start delimiter string.
* @param endDelimiter the end delimiter string.
* @return the number of named and un-named delimited strings.
* @see StringSubstitutionUtil#getDelimitedStringCount(String, String, String, boolean)
* getDelimitedStringCount
*/
public static int getDelimitedStringCount( String text,
String startDelimiter,
String endDelimiter )
{
return getDelimitedStringCount( text, startDelimiter, endDelimiter,
false /* requiresNamedDelimiters */ );
}
/**
* Returns the number of delimited strings in the text argument, where the delimited
* strings are labeled by a start delimiter and an end delimiter. If <code>requiresNamedDelimiters</code>
* is set to true, only the named delimiters will be counted. This should be used when
* the caller wants to perform substitution by name on the text string. Otherwise, both named
* and un-named delimiters will be counted. This should be used when the caller wants
* to perform substitution by index on the text string.
* <br>
* <br>
* <b>For example:</b><br>
* text = "select &lt;start&gt;param1&lt;end&gt;.* from STUDENT"<br>
* startDelimiter = "&lt;start&gt;"<br>
* endDelimiter = "&lt;end&gt;"<br>
* returns: 1
* @param text string containing delimited strings.
* @param startDelimiter the start delimiter string.
* @param endDelimiter the end delimiter string.
* @param requiresNamedDelimiters
* determines whether only named delimiters will be counted.
* @return the number of delimited strings.
* @throws NullPointerException if text, startDelimiter, or endDelimiter
* is <code>null</code>.
*/
public static int getDelimitedStringCount( String text,
String startDelimiter,
String endDelimiter,
boolean requiresNamedDelimiters )
{
String context = "StringSubstitutionUtil.getDelimitedStringCount( " + //$NON-NLS-1$
text + ", " + startDelimiter + ", " + endDelimiter + //$NON-NLS-1$ //$NON-NLS-2$
", " + requiresNamedDelimiters +" )\t"; //$NON-NLS-1$ //$NON-NLS-2$
log( context + "Called." ); //$NON-NLS-1$
sanityCheck( text, startDelimiter, endDelimiter );
// we'll remove all beginning and trailing whitespaces
startDelimiter = sanityCheckDelimiter( startDelimiter );
endDelimiter = sanityCheckDelimiter( endDelimiter );
int startDelimiterLength = startDelimiter.length();
int endDelimiterLength = endDelimiter.length();
StringBuffer stringBuffer = new StringBuffer( text );
int startIndex = 0;
int currIndex = 0;
int numOfDelimitedStrings = 0;
while( ( startIndex = text.indexOf( startDelimiter, currIndex ) ) >= 0 )
{
log( context + "startIndex: " + startIndex + ", currIndex: " + currIndex ); //$NON-NLS-1$ //$NON-NLS-2$
currIndex = startIndex + startDelimiterLength;
// check whether it's really a start delimiter
if( ! isStartDelimiter( startIndex, stringBuffer ) )
continue;
int endIndex = getDelimitedStringEndIndex( stringBuffer, startIndex,
startDelimiterLength,
endDelimiter,
requiresNamedDelimiters );
if( endIndex < 0 )
break;
numOfDelimitedStrings++;
endIndex += endDelimiterLength;
currIndex = endIndex;
}
log( context + "Exiting: " + numOfDelimitedStrings ); //$NON-NLS-1$
return numOfDelimitedStrings;
}
/**
* Performs string substitution based on index, where the delimited strings
* are labeled by only a start delimiter.
* <br>
* <br>
* <b>For example:</b><br>
* text = "SELECT STUDENT.:COLUMN, STUDENT.:COLUMN FROM STUDENT"<br>
* startDelimiter = ":"<br>
* substitutionList = ["ID", "NAME"]<br>
* returns: "SELECT STUDENT.ID, STUDENT.NAME FROM STUDENT"
* @param text text string containing delimited strings.
* @param startDelimiter the start delimiter string.
* @param substitutionList list of substitution values for the delimited strings.
* @return the fully substituted string.
* @throws NullPointerException if text, startDelimiter, or substitutionList
* is <code>null</code>.
*/
public static String substituteByIndex( String text,
String startDelimiter,
List substitutionList )
{
String context = "StringSubstitutionUtil.substituteByIndex( " + //$NON-NLS-1$
text + ", " + startDelimiter + ", " + //$NON-NLS-1$ //$NON-NLS-2$
substitutionList + " )\t"; //$NON-NLS-1$
log( context + "Called." ); //$NON-NLS-1$
sanityCheck( text, startDelimiter, substitutionList );
// we'll remove all beginning and trailing whitespaces
startDelimiter = sanityCheckDelimiter( startDelimiter );
int startDelimiterLength = startDelimiter.length();
// string buffer is more efficient for manipulating strings
StringBuffer stringBuffer = new StringBuffer( text );
int index = 0;
ListIterator substitutionListIter = substitutionList.listIterator();
// find the index of the delimiter
while( ( index = stringBuffer.toString().indexOf( startDelimiter, index ) ) >= 0 )
{
log( context + "index: " + index ); //$NON-NLS-1$
int endIndex = getDelimitedStringEndIndex( stringBuffer, index,
startDelimiterLength,
false /* requiresNamedDelimiters */ );
if( endIndex == -1 )
{
index += startDelimiterLength;
continue;
}
if( ! substitutionListIter.hasNext() )
{
String message = Messages.bind( Messages.stringSubUtil_NO_STRING_VALUE_TO_REPLACE,
stringBuffer.substring( index + startDelimiterLength,
endIndex ) );
throw newIllegalArgumentException( message );
}
String replacementString = ( String ) substitutionListIter.next();
if( replacementString == null )
{
throw newIllegalArgumentException( Messages.stringSubUtil_SUBSTITUTION_VALUE_CANNOT_BE_NULL );
}
stringBuffer.replace( index, endIndex, replacementString );
index += ( replacementString.length() );
}
String ret = stringBuffer.toString();
log( context + "Exiting: " + ret ); //$NON-NLS-1$
return ret;
}
/**
* Performs string substitution based on index, where the delimited strings
* are labeled by a start delimiter and an end delimiter.
* <br>
* <br>
* <b>For example:</b><br>
* text = "SELECT &lt;start&gt;TABLE&lt;end&gt;.&lt;start&gt;COLUMN&lt;end&gt; FROM STUDENT"<br>
* startDelimiter = "&lt;start&gt;"<br>
* endDelimiter = "&lt;end&gt;"<br>
* substitutionList = ["STUDENT", "NAME"]<br>
* returns: "SELECT STUDENT.NAME FROM STUDENT"
* @param text text string containing delimited strings.
* @param startDelimiter the start delimiter string.
* @param endDelimiter the end delimiter string.
* @param substitutionList list of substitution values for the delimited strings.
* @return the fully substituted string.
* @throws NullPointerException if text, startDelimiter, endDelimiter, or
* substitutionList is <code>null</code>.
*/
public static String substituteByIndex( String text,
String startDelimiter,
String endDelimiter,
List substitutionList )
{
String context = "StringSubstitutionUtil.substituteByIndex( " + //$NON-NLS-1$
text + ", " + startDelimiter + ", " + endDelimiter + //$NON-NLS-1$ //$NON-NLS-2$
", " + substitutionList + " )\t"; //$NON-NLS-1$ //$NON-NLS-2$
log( context + "Called." ); //$NON-NLS-1$
sanityCheck( text, startDelimiter, endDelimiter,
substitutionList );
// we'll remove all beginning and trailing whitespaces
startDelimiter = sanityCheckDelimiter( startDelimiter );
endDelimiter = sanityCheckDelimiter( endDelimiter );
int startDelimiterLength = startDelimiter.length();
int endDelimiterLength = endDelimiter.length();
// string buffer is more efficient for manipulating strings
StringBuffer stringBuffer = new StringBuffer( text );
ListIterator substitutionListIter = substitutionList.listIterator();
int startIndex = 0;
int currIndex = 0;
while( ( startIndex = stringBuffer.toString().indexOf( startDelimiter, currIndex ) ) >= 0 )
{
log( context + "startIndex: " + startIndex + ", currIndex: " + currIndex ); //$NON-NLS-1$ //$NON-NLS-2$
currIndex = startIndex + startDelimiterLength;
// check whether it's really a start delimiter
if( ! isStartDelimiter( startIndex, stringBuffer ) )
continue;
int endIndex = getDelimitedStringEndIndex( stringBuffer, startIndex,
startDelimiterLength,
endDelimiter,
false /* requiresNamedDelimiters */ );
if( endIndex < 0 )
break;
if( ! substitutionListIter.hasNext() )
{
String message = Messages.bind( Messages.stringSubUtil_NO_STRING_VALUE_TO_REPLACE,
stringBuffer.substring( startIndex + startDelimiterLength,
endIndex ) );
throw newIllegalArgumentException( message );
}
String replacementString = ( String ) substitutionListIter.next();
if( replacementString == null )
throw newIllegalArgumentException( Messages.stringSubUtil_SUBSTITUTION_VALUE_CANNOT_BE_NULL );
endIndex += endDelimiterLength;
stringBuffer.replace( startIndex, endIndex, replacementString );
currIndex = startIndex + replacementString.length();
}
String ret = stringBuffer.toString();
log( context + "Exiting: " + ret ); //$NON-NLS-1$
return ret;
}
/**
* Performs string substitution based on name, where the delimited strings
* are labeled by only a start delimiter.
* <br>
* <br>
* <b>For example:</b><br>
* text = "SELECT ?PARAM.?PARAM1 FROM ?PARAM"<br>
* startDelimiter = "?"<br>
* nameValues = {PARAM=PEOPLE, PARAM1=NAME}<br>
* returns: "SELECT PEOPLE.NAME FROM PEOPLE"<br>
* @param text text string containing delimited strings.
* @param startDelimiter the start delimiter string.
* @param nameValues map of substitution name-value pairs.
* @return the fully substituted string.
* @throws NullPointerException if text, startDelimiter, or nameValues is
* <code>null</code>.
*/
public static String substituteByName( String text,
String startDelimiter,
Map nameValues )
{
String context = "StringSubstitutionUtil.substituteByName( " + //$NON-NLS-1$
text + ", " + startDelimiter + ", " + nameValues + " )\t"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
log( context + "Called." ); //$NON-NLS-1$
sanityCheck( text, startDelimiter, nameValues );
// we'll remove all beginning and trailing whitespaces
startDelimiter = sanityCheckDelimiter( startDelimiter );
int startDelimiterLength = startDelimiter.length();
// string buffer is more efficient for manipulating strings
StringBuffer stringBuffer = new StringBuffer( text );
int index = 0;
// find the index of the delimiter
while( ( index = stringBuffer.toString().indexOf( startDelimiter, index ) ) >= 0 )
{
log( context + "index: " + index ); //$NON-NLS-1$
int endIndex = getDelimitedStringEndIndex( stringBuffer, index,
startDelimiterLength,
true /* requiresNamedDelimiters */ );
if( endIndex == -1 )
{
index += startDelimiterLength;
continue;
}
// found the start and end of the delimited string
String delimitedString = stringBuffer.substring( index + startDelimiterLength,
endIndex );
String replacementString = ( String ) nameValues.get( delimitedString );
if( replacementString == null )
{
String message = Messages.stringSubUtil_SUBSTITUTION_VALUE_CANNOT_BE_NULL;
message += " [" + delimitedString + "]"; //$NON-NLS-1$ //$NON-NLS-2$
throw newIllegalArgumentException( message );
}
stringBuffer.replace( index, endIndex, replacementString );
index += ( replacementString.length() );
}
String ret = stringBuffer.toString();
log( context + "Exiting: " + ret ); //$NON-NLS-1$
return ret;
}
/**
* Performs string substitution based on name, where the delimited strings
* are labeled by a start delimiter and an end delimiter.
* <br>
* <br>
* <b>For example:</b><br>
* text = "SELECT :PARAM:.:PARAM1: FROM :PARAM:<br>
* startDelimiter = ":"<br>
* endDelimiter = ":"<br>
* nameValues = {PARAM=PEOPLE, PARAM1=NAME}<br>
* returns: "SELECT PEOPLE.NAME FROM PEOPLE"<br>
* @param text text string containing delimited strings.
* @param startDelimiter the start delimiter string.
* @param endDelimiter the end delimiter string.
* @param nameValues map of substitution name-value pairs.
* @return the fully substituted string.
* @throws NullPointerException if text, startDelimiter, endDelimiter, or
* nameValues is <code>null</code>.
*/
public static String substituteByName( String text,
String startDelimiter,
String endDelimiter,
Map nameValues )
{
String context = "StringSubstitutionUtil.substituteByName( " + //$NON-NLS-1$
text + ", " + startDelimiter + ", " + endDelimiter + //$NON-NLS-1$ //$NON-NLS-2$
", " + nameValues + " )\t"; //$NON-NLS-1$ //$NON-NLS-2$
log( context + "Called." ); //$NON-NLS-1$
sanityCheck( text, startDelimiter,
endDelimiter, nameValues );
// we'll remove all beginning and trailing whitespaces
startDelimiter = sanityCheckDelimiter( startDelimiter );
endDelimiter = sanityCheckDelimiter( endDelimiter );
int startDelimiterLength = startDelimiter.length();
int endDelimiterLength = endDelimiter.length();
// string buffer is more efficient for manipulating strings
StringBuffer stringBuffer = new StringBuffer( text );
int startIndex = 0;
int currIndex = 0;
while( ( startIndex = stringBuffer.toString().indexOf( startDelimiter, currIndex ) ) >= 0 )
{
log( context + "startIndex: " + startIndex + ", currIndex: " + currIndex ); //$NON-NLS-1$ //$NON-NLS-2$
currIndex = startIndex + startDelimiterLength;
// check whether it's really a start delimiter
if( ! isStartDelimiter( startIndex, stringBuffer ) )
continue;
int endIndex = getDelimitedStringEndIndex( stringBuffer, startIndex,
startDelimiterLength,
endDelimiter,
true /* requiresNamedDelimiters */ );
if( endIndex < 0 )
break;
String delimitedString = stringBuffer.substring( startIndex + startDelimiterLength,
endIndex );
String replacementString = ( String ) nameValues.get( delimitedString );
if( replacementString == null )
{
String message = Messages.stringSubUtil_SUBSTITUTION_VALUE_CANNOT_BE_NULL;
message += " [" + delimitedString + "]"; //$NON-NLS-1$ //$NON-NLS-2$
throw newIllegalArgumentException( message );
}
endIndex += endDelimiterLength;
stringBuffer.replace( startIndex, endIndex, replacementString );
currIndex = startIndex + replacementString.length();
}
String ret = stringBuffer.toString();
log( context + "Exiting: " + ret ); //$NON-NLS-1$
return ret;
}
//-------------------------------------------------------------------------
// helper methods for sanity checks
private static void sanityCheck( String text,
String startDelimiter,
String endDelimiter,
Object listOrMap )
{
sanityCheck( text, startDelimiter, endDelimiter );
sanityCheck( listOrMap );
}
private static void sanityCheck( String text,
String startDelimiter,
Object listOrMap )
{
sanityCheck( text, startDelimiter );
sanityCheck( listOrMap );
}
private static void sanityCheck( String text,
String startDelimiter,
String endDelimiter )
{
sanityCheck( text, startDelimiter );
if( endDelimiter == null )
throw newNullPointerException( Messages.stringSubUtil_DELIMITER_CANNOT_BE_NULL );
}
private static void sanityCheck( String text,
String startDelimiter )
{
if( text == null )
throw newNullPointerException( Messages.stringSubUtil_TEXT_STRING_CANNOT_BE_NULL );
if( startDelimiter == null )
throw newNullPointerException( Messages.stringSubUtil_DELIMITER_CANNOT_BE_NULL );
}
private static void sanityCheck( Object listOrMap )
{
if( listOrMap == null )
{
String message = listOrMap instanceof List ?
Messages.stringSubUtil_SUBSTITUTION_LIST_CANNOT_BE_NULL :
Messages.stringSubUtil_NAME_VALUE_MAP_CANNOT_BE_NULL;
throw newNullPointerException( message );
}
}
private static String sanityCheckDelimiter( String delimiter )
{
String trimmed = delimiter.trim();
int length = trimmed.length();
if( length == 0 )
throw newIllegalArgumentException( Messages.stringSubUtil_DELIMITER_CANNOT_BE_EMPTY );
return trimmed;
}
// returns -1 if we see that the delimiter isn't part of a delimited string,
// otherwise it will return the end index of the delimited string
private static int getDelimitedStringEndIndex( StringBuffer stringBuffer,
int index,
int startDelimiterLength,
boolean requiresNamedDelimiters )
{
String context = "StringSubstitutionUtil.getDelimitedStringEndIndex( " + //$NON-NLS-1$
stringBuffer + ", " + index + ", " + //$NON-NLS-1$ //$NON-NLS-2$
startDelimiterLength + " )\t"; //$NON-NLS-1$
log( context + "Called." ); //$NON-NLS-1$
// check whether it's really a start delimiter
if( ! isStartDelimiter( index, stringBuffer ) )
{
log( context + "Not a start delimiter. Exiting: -1" ); //$NON-NLS-1$
return -1;
}
int endIndex = index + startDelimiterLength;
while( endIndex < stringBuffer.length() &&
isStringMarkerCharacter( stringBuffer.charAt( endIndex ) ) )
endIndex++;
// if the endIndex is still the same as the index after the start delimiter,
// then it may be an empty marker. We only support empty markers for substitution
// by index. We also need to check the character to see whether it's the
// end of the string or a white space character.
// if that's the case, then it would be considered an embedded marker.
// i.e.: select * from aaa where id = ? and aaaId < ?
// where the ? is the delimiter
if( endIndex == index + startDelimiterLength &&
( requiresNamedDelimiters ||
( endIndex < stringBuffer.length() &&
! Character.isWhitespace( stringBuffer.charAt( endIndex ) ) ) ) )
{
log( context + "Not an embedded marker. Exiting: -1" ); //$NON-NLS-1$
return -1;
}
log( context + "Exiting: " + endIndex ); //$NON-NLS-1$
return endIndex;
}
private static int getDelimitedStringEndIndex( StringBuffer stringBuffer,
int startIndex,
int startDelimiterLength,
String endDelimiter,
boolean requiresNamedDelimiters )
{
String context = "StringSubstitutional.getDelimitedStringEndIndex( " + //$NON-NLS-1$
stringBuffer + ", " + startIndex + ", " + //$NON-NLS-1$ //$NON-NLS-2$
startDelimiterLength + ", " + endDelimiter + " )\t"; //$NON-NLS-1$ //$NON-NLS-2$
log( context + "Called." ); //$NON-NLS-1$
int currIndex = startIndex + startDelimiterLength;
int endDelimiterLength = endDelimiter.length();
int endIndex = -1;
String string = stringBuffer.toString();
while( ( endIndex = string.indexOf( endDelimiter, currIndex ) ) >= 0 )
{
log( context + "endIndex: " + endIndex + ", currIndex: " + currIndex ); //$NON-NLS-1$ //$NON-NLS-2$
// check whether it's really an end delimiter
if( isEndDelimiter( startIndex + startDelimiterLength, endIndex,
endDelimiterLength, string, requiresNamedDelimiters ) )
break;
// look for another end delimiter
currIndex = endIndex + endDelimiterLength;
}
log( context + "Exiting: " + endIndex ); //$NON-NLS-1$
return endIndex;
}
private static boolean isStringMarkerCharacter( char c )
{
return Character.isLetterOrDigit( c ) ||
isContinuatorCharacter( c );
}
private static boolean isContinuatorCharacter( char c )
{
return ( c == '_' );
}
private static boolean isEscapeCharacter( char c )
{
return ( c == '\\' );
}
private static boolean isStartDelimiter( int startDelimiterIndex,
StringBuffer stringBuffer )
{
String context = "StringSubstitutionUtil.isStartDelimiter( " + //$NON-NLS-1$
startDelimiterIndex + ", " + stringBuffer + " )\t"; //$NON-NLS-1$ //$NON-NLS-2$
log( context + "Called." ); //$NON-NLS-1$
// it's a start delimiter if it's at the beginning of the string
if( startDelimiterIndex == 0 )
{
log( context + "Beginning of string. Exiting: " + true ); //$NON-NLS-1$
return true;
}
// check that the character before the start delimiter isn't
// an alpha numeric character or underscore or the escape character
char prevChar = stringBuffer.charAt( startDelimiterIndex - 1 );
boolean ret = ( ! isStringMarkerCharacter( prevChar ) &&
! isEscapeCharacter( prevChar ) );
log( context + "Exiting: " + ret ); //$NON-NLS-1$
return ret;
}
private static boolean isEndDelimiter( int afterStartDelimiterIndex, int endIndex,
int endDelimiterLength, String string,
boolean requiresNamedDelimiters )
{
String context = "StringSubsitutionUtil.isEndDelimiter( " + //$NON-NLS-1$
afterStartDelimiterIndex + ", " + endIndex + ", " + //$NON-NLS-1$ //$NON-NLS-2$
endDelimiterLength + ", " + string + " )\t"; //$NON-NLS-1$ //$NON-NLS-2$
log( context + "Called." ); //$NON-NLS-1$
// if the end delimiter occurs right after the start delimiter and
// we require named delimiters, then it's not an end delimiter.
if( endIndex == afterStartDelimiterIndex &&
requiresNamedDelimiters )
{
log( context + "Requires a named delimiter. Exiting: " + false ); //$NON-NLS-1$
return false;
}
// check whether the character right before the end delimiter is the
// escape character, which would mean it's not really an end delimiter
// unless it's part of the start delimiter
if( endIndex - 1 >= afterStartDelimiterIndex &&
isEscapeCharacter( string.charAt( endIndex - 1 ) ) )
{
log( context + "End delimiter escaped. Exiting: " + false ); //$NON-NLS-1$
return false;
}
// it also wouldn't be an end delimiter if the end delimiter were
// immediately followed by an alpha numeric character
boolean ret = !( endIndex + endDelimiterLength < string.length() &&
isStringMarkerCharacter( string.charAt( endIndex + endDelimiterLength ) ) );
log( context + "Exiting: " + ret ); //$NON-NLS-1$
return ret;
}
private static IllegalArgumentException newIllegalArgumentException( String msg )
{
IllegalArgumentException ex =
new IllegalArgumentException( msg );
log( ex );
return ex;
}
private static NullPointerException newNullPointerException( String msg )
{
NullPointerException ex =
new NullPointerException( msg );
log( ex );
return ex;
}
}

View File

@@ -1,164 +0,0 @@
//----------------------------------------------------------------------
// FileHandler.java
//
// Copyright (c) 2004, 2005 Actuate Corporation.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// Actuate Corporation - initial API and implementation
//
// FileHandler is a specialized handler that publishes LogRecords
// to disk.
//----------------------------------------------------------------------
package org.eclipse.datatools.connectivity.oda.util.logging;
import java.io.File;
import java.io.FileOutputStream;
/**
* The <code>FileHandler</code> is a file logging <code>Handler</code>
* that publishes <code>LogRecords</code> to a specified file.
*/
public class FileHandler extends StreamHandler
{
private String m_filename;
private File m_file;
// Constructors
private FileHandler()
{
// no default constructor
}
/**
* Creates a <code>FileHandler</code> to publish <code>LogRecords</code>
* to the specified file. This will use the default <code>SimpleFormatter</code>
* to format the <code>LogRecords</code>. This does not create the physical
* file or the parent directories until publish() is called.
* @param filename the file to publish <code>LogRecords</code> to.
*/
public FileHandler( String filename )
{
m_filename = filename;
}
/**
* Creates a <code>FileHandler</code> to publish <code>LogRecords</code>
* to the sepcified file using the specified <code>LogFormatter</code>.
* This does not create the physical file or the parent directories until
* publish() is called.
* @param filename the file to publish <code>LogRecords</code> to.
* @param formatter the <code>LogFormatter</code> to format the
* <code>LogRecords</code>.
*/
public FileHandler( String filename, LogFormatter formatter )
{
m_filename = filename;
setFormatter( formatter );
}
/**
* Creates the log file and its applicable parent directories when called
* for the first time.
* @param record the record to publish.
*/
public void publish( LogRecord record )
{
if( m_file == null )
setOutputFile( m_filename );
super.publish( record );
}
/**
* Closes the current file handler.
*/
public void close()
{
super.close();
m_file = null;
m_filename = null;
}
/**
* Generates a file with an unique filename based on the specified preferred name.
* This is for the case when two consumer instances run concurrently and
* each tries to create a file with the same name.
* @param preferredFileName
* @return
*/
private File getUniqueFile( String preferredFileName )
{
try
{
File file = new File( preferredFileName );
createParentDirectory( file );
// must use createNewFile() for atomicity!
// if this file is already locked by someone else, we'll append a
// numeric value to our filename, we'll repeat this 10 times only to
// prevent infinite loops.
int looping = 0;
int index = preferredFileName.lastIndexOf( "." ); //$NON-NLS-1$
String prefix = preferredFileName.substring( 0, index );
String suffix = preferredFileName.substring( index, preferredFileName.length() );
while( ! file.createNewFile() && looping < 10 )
{
file = new File( prefix + "-" + looping + suffix ); //$NON-NLS-1$
looping++;
}
return file;
}
catch( java.io.FileNotFoundException ex )
{
return null;
}
catch( java.io.IOException ex )
{
return null;
}
}
// this may not be the actual unique name of the File handle.
String getPreferredFilename()
{
return m_filename;
}
// create any parent directory if necessary
private void createParentDirectory( File file )
{
File parentDirectory = file.getParentFile();
// parent directory could be null if the file is at the top most
// directory.
// if there's a parent directory but it doesn't exist, then we'll
// need to create it.
if( parentDirectory != null && ! parentDirectory.exists() )
parentDirectory.mkdirs();
}
void setOutputFile( String filename )
{
try
{
m_file = getUniqueFile( filename );
if( m_file != null )
setOutputStream( new FileOutputStream( m_file ) );
else
reportError( "", null, LoggingErrorHandler.OPEN_FAILURE ); //$NON-NLS-1$
}
catch( java.io.FileNotFoundException ex )
{
reportError( "", ex, LoggingErrorHandler.OPEN_FAILURE ); //$NON-NLS-1$
}
}
}

View File

@@ -1,39 +0,0 @@
//----------------------------------------------------------------------
// Filter.java
//
// Copyright (c) 2004, 2005 Actuate Corporation.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// Actuate Corporation - initial API and implementation
//
// Filter is an interface class from which all filter classes
// should implement. Filters will filter LogRecords from its
// parent handler based on the rules that are implemented in
// isLoggable().
//----------------------------------------------------------------------
package org.eclipse.datatools.connectivity.oda.util.logging;
/**
* A Filter can provide more control on what is logged.
* <br>
* <br>
* Each Handler can have an associated Filter and calls the
* <code>isLoggable</code> method to check whether the
* <code>LogRecord</code> should be published.
*/
public interface Filter
{
/**
* Checks if the the <code>LogRecord</code> should be published.
* @param record the log record.
* @return <code>true</code> if the log record should
* be published; <code>false</code> otherwise.
*/
public boolean isLoggable( LogRecord record );
}

View File

@@ -1,165 +0,0 @@
//----------------------------------------------------------------------
// Handler.java
//
// Copyright (c) 2004, 2005 Actuate Corporation.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// Actuate Corporation - initial API and implementation
//
// Handler is the base class from which all Handlers derive from.
// Handlers processes the LogRecord using its Formatter and
// then publishes it.
//----------------------------------------------------------------------
package org.eclipse.datatools.connectivity.oda.util.logging;
/**
* <code>Handler</code> is an abstract class that takes <code>LogRecords</code>
* from a <code>Logger</code> and outputs them. All log handler should inherit
* from this class and may publish log records to its supported sources. (i.e.
* console, file, etc. )
*/
public abstract class Handler
{
// member variables
private LoggingErrorHandler m_errorHandler;
private Filter m_filter;
private LogFormatter m_formatter;
private Level m_level;
/**
* Creates a <code>Handler</code> instance.
*/
protected Handler()
{
}
/**
* Close the <code>Handler</code> and free up resources.
*/
public abstract void close();
/**
* Flushes buffered output.
*/
public abstract void flush();
/**
* Publish the specified <code>LogRecord</code>. The record should
* only be published if it has the adequate log level, passes the
* associated <code>Filter</code>. This is responsible for formatting
* the <code>LogRecord</code>, if necessary.
* @param record the log record to publish.
*/
public abstract void publish( LogRecord record );
/**
* Checks whether the specified <code>LogRecord</code> should be logged.
* This checks whether the <code>LogRecord</code> has the adequate log level,
* passes the associated <code>Filter</code>, or other <code>Handler</code>
* specific checks.
* @param record the log record.
* @return true if the log record should be logged.
*/
public boolean isLoggable( LogRecord record )
{
// loggable if the record's log level is higher and if the handler's
// level isn't set to OFF, and if there's no associated filter or the
// filter allows the record to be logged.
return( ( record.getLevel().intValue() >= m_level.intValue() ) &&
m_level.intValue() <= Level.SEVERE &&
( m_filter == null || m_filter.isLoggable( record ) ) );
}
/**
* Reports an error to the assocated <code>LoggingErrorHandler</code>.
* @param message the error message.
* @param exception the exception that caused the error.
* @param errorCode the error code.
*/
protected void reportError( String message, Exception exception,
int errorCode )
{
if( m_errorHandler != null )
m_errorHandler.error( message, exception, errorCode );
}
/**
* Sets the <code>LoggingErrorHandler</code> for this <code>Handler</code>.
* @param errorHandler the error handler to set.
*/
public void setLoggingErrorHandler( LoggingErrorHandler errorHandler )
{
m_errorHandler = errorHandler;
}
/**
* Gets the <code>LoggingErrorHandler</code> associated with this <code>Handler</code>.
* @return the associated error handler.
*/
public LoggingErrorHandler getLoggingErrorHandler()
{
return m_errorHandler;
}
/**
* Sets the <code>Filter</code> for this <code>Handler</code>.
* @param filter the filter to set.
*/
public void setFilter( Filter filter )
{
m_filter = filter;
}
/**
* Gets the <code>Filter</code> associated with this <code>Handler</code>.
* @return the associated filter.
*/
public Filter getFilter()
{
return m_filter;
}
/**
* Sets the <code>LogFormatter</code> for this <code>Handler</code>.
* @param formatter the formatter to set.
*/
public void setFormatter( LogFormatter formatter )
{
if( formatter == null )
throw new NullPointerException();
m_formatter = formatter;
}
/**
* Gets the <code>LogFormatter</code> associated with this <code>Handler</code>.
* @return the associated formatter.
*/
public LogFormatter getFormatter()
{
return m_formatter;
}
/**
* Sets the <code>Level</code> for this <code>Handler</code>.
* @param level the level to set.
*/
public void setLevel( Level level )
{
m_level = level;
}
/**
* Gets the <code>Level</code> associated with this <code>Handler</code>.
* @return the associated level.
*/
public Level getLevel()
{
return m_level;
}
}

View File

@@ -1,184 +0,0 @@
//----------------------------------------------------------------------
// Level.java
//
// Copyright (c) 2004, 2005 Actuate Corporation.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// Actuate Corporation - initial API and implementation
//
// Level is a class that represents logging levels within this
// logging framework.
//----------------------------------------------------------------------
package org.eclipse.datatools.connectivity.oda.util.logging;
/**
* <code>Level</code> represents logging levels within the logging framework.
* It defines a standard set of logging levels to control logging.
*/
public final class Level
{
private static final int AC_LOG_LEVEL_MAX = Integer.MAX_VALUE;
private static final int AC_LOG_LEVEL_MIN = Integer.MIN_VALUE;
/**
* The constant indicating the integer value of OFF.
*/
public static final int OFF = AC_LOG_LEVEL_MAX;
/**
* The constant indicating the integer value of SEVERE.
*/
public static final int SEVERE = 1000;
/**
* The constant indicating the integer value of WARNING.
*/
public static final int WARNING = 900;
/**
* The constant indicating the integer value of INFO.
*/
public static final int INFO = 800;
/**
* The constant indicating the integer value of CONFIG.
*/
public static final int CONFIG = 700;
/**
* The constant indicating the integer value of FINE.
*/
public static final int FINE = 500;
/**
* The constant indicating the integer value of FINER.
*/
public static final int FINER = 400;
/**
* The constant indicating the integer value of FINEST.
*/
public static final int FINEST = 300;
/**
* The constant indicating the integer value of ALL.
*/
public static final int ALL = AC_LOG_LEVEL_MIN;
/**
* The constant indicating the log level OFF. OFF should be used to turn
* off logging.
*/
public static final Level OFF_LEVEL = new Level( "OFF", OFF ); //$NON-NLS-1$
/**
* The constant indicating the log level SEVERE. SEVERE should be used to
* indicate a serious failure.
*/
public static final Level SEVERE_LEVEL = new Level( "SEVERE", SEVERE ); //$NON-NLS-1$
/**
* The constant indicating the log level WARNING. WARNING should be used to
* indicate potential problems.
*/
public static final Level WARNING_LEVEL = new Level( "WARNING", WARNING ); //$NON-NLS-1$
/**
* The constant indicating the log level INFO. INFO should be used for
* informational messages.
*/
public static final Level INFO_LEVEL = new Level( "INFO", INFO ); //$NON-NLS-1$
/**
* The constant indicating the log level CONFIG. CONFIG should be used for
* configuration messages.
*/
public static final Level CONFIG_LEVEL = new Level( "CONFIG", CONFIG ); //$NON-NLS-1$
/**
* The constant indicating the log level FINE. FINE should be used for
* relatively detailed trace logging.
*/
public static final Level FINE_LEVEL = new Level( "FINE", FINE ); //$NON-NLS-1$
/**
* The constant indicating the log level FINER. FINER should be used for
* detailed trace logging.
*/
public static final Level FINER_LEVEL = new Level( "FINER", FINER ); //$NON-NLS-1$
/**
* The constant indicating the log level FINEST. FINEST should be used for
* very detailed trace logging.
*/
public static final Level FINEST_LEVEL = new Level( "FINEST", FINEST ); //$NON-NLS-1$
/**
* The constant indicating the log level ALL. ALL should be used to log
* everything.
*/
public static final Level ALL_LEVEL = new Level( "ALL", ALL ); //$NON-NLS-1$
// member variables
private String m_name;
private int m_level;
/**
* Creates a <code>Level</code> instance with the specified name and
* integer log level value.
* @param name the log level name.
* @param value the integer log level value.
*/
protected Level( String name, int value )
{
m_name = name;
m_level = value;
}
/**
* Checks whether the two objects have the same log level value.
* @param obj the object to compare against.
* @return true, if both objects have the same log level value.
*/
public boolean equals( Object obj )
{
if( ! ( obj instanceof Level ) )
return false;
Level level = ( Level ) obj;
return ( level.intValue() == m_level );
}
/**
* Generate a hashcode based on the log level value.
* @return the hashcode based on the log level value.
*/
public int hashCode()
{
// override hashCode() along with equals()
return m_level;
}
/**
* Gets the log level name.
* @return the log level name.
*/
public String getName()
{
return m_name;
}
/**
* Gets the log level value.
* @return the log level value.
*/
public int intValue()
{
return m_level;
}
}

View File

@@ -1,40 +0,0 @@
//----------------------------------------------------------------------
// LogFormatter.java
//
// Copyright (c) 2004, 2005 Actuate Corporation.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// Actuate Corporation - initial API and implementation
//
// LogFormatter is an abstract class from which all formatter classes
// should implement. Formatters format the LogRecords based on
// rules that are implemented in format().
//----------------------------------------------------------------------
package org.eclipse.datatools.connectivity.oda.util.logging;
/**
* <code>LogFormatter</code> is an abstract class from which all
* formatter classes should implement. It converts <code>LogRecords</code>
* into formatted strings based on <code>format()</code> rules.
*/
public abstract class LogFormatter
{
/**
* Creates a <code>LogFormatter</code> instance.
*/
protected LogFormatter()
{
}
/**
* Format the specified <code>LogRecord</code> into a string.
* @param record the log record to format.
* @return the formatted string.
*/
public abstract String format( LogRecord record );
}

View File

@@ -1,403 +0,0 @@
//----------------------------------------------------------------------
// LogManager.java
//
// Copyright (c) 2004, 2005 Actuate Corporation.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// Actuate Corporation - initial API and implementation
//
// LogManager is a static class that maintains a set of named Loggers.
//----------------------------------------------------------------------
package org.eclipse.datatools.connectivity.oda.util.logging;
import java.io.File;
import java.io.IOException;
import java.sql.Timestamp;
import java.text.ParseException;
import java.util.Hashtable;
import org.eclipse.core.runtime.IPath;
import org.eclipse.datatools.connectivity.oda.nls.Messages;
import org.eclipse.datatools.connectivity.oda.util.OdaPlugin;
import com.ibm.icu.text.SimpleDateFormat;
/**
* LogManager is a static class that maintains a set of named
* <code>Loggers</code>. It provides the interface to create
* named <code>Loggers</code> and to retrieve the loggers for
* logging purposes.
*/
public class LogManager
{
private static final String LOG_SUBFOLDER_NAME = "logs"; //$NON-NLS-1$
private static Hashtable m_loggers = new Hashtable();
private static SimpleDateFormat sm_dateFormat;
private LogManager()
{
// not meant to be instantiated.
}
/**
* Creates a named <code>Logger</code> with the necessary
* log configuration information. The specified logger name
* should be specific to the application using the logging
* framework to prevent name collision in the logger namespace,
* since multiple loggers cannot be created with the same
* logger name.
* @param loggerName the name of the logger to be created.
* @param logLevel the logger log level.
* @param logDirectory the required directory to store the logs.
* @param logPrefix the required file name prefix of the log
* file name; the format will be
* &lt;logPrefix&gt;-YYMMDD-hhmmss.log.
* @param formatterClassName a <code>LogFormatter</code> class
* name; if this is null or empty, the
* default <code>LogFormatter</code> will be
* used. The customized log formatter must inherit
* from <code>org.eclipse.datatools.connectivity.oda.logging.LogFormatter</code>
* and implements the <code>format()</code>
* method.
* @return the constructed named <code>Logger</code>.
* @throws IllegalArgumentException if logger with the same name
* already exists.
*/
public static Logger createLogger( String loggerName,
int logLevel,
String logDirectory,
String logPrefix,
String formatterClassName )
{
if( m_loggers.containsKey( loggerName ) )
throw new IllegalArgumentException( Messages.logManager_duplicateName );
validateInput( logLevel, logDirectory, logPrefix );
Logger logger = new Logger( loggerName );
// set up the logger
setLoggerLevel( logger, logLevel );
// if the caller wants the logger off, then don't bother setting the
// rest of the settings since they'll be empty strings
if( isLogLevelOff( logger.getLevel().intValue() ) )
return logger;
resetLoggerFileConfig( logger, logDirectory, logPrefix, formatterClassName );
m_loggers.put( loggerName, logger );
return logger;
}
private static void validateInput( int logLevel, String logDirectory, String logPrefix )
{
// no validation for log directory and log prefix if the caller just wants
// the logger off.
if( isLogLevelOff( logLevel ) )
return;
if( logDirectory == null || logPrefix == null )
throw new NullPointerException();
if( logDirectory.length() == 0 || logPrefix.length() == 0 )
throw new IllegalArgumentException();
}
/**
* Creates a named <code>Logger</code> with the specified log configuration
* information, if the named <code>Logger</code> doesn't already exist. If the
* named <code>Logger</code> already exists, then it will be updated the specified log
* configuration. If the specified log level or the formatter class is different,
* then the new values will be set while maintaining the same log file. If either
* the log directory or the log prefix has changed, then a new log file will be
* created.
* @param loggerName the name of the logger to be created or updated.
* @param logLevel the logger log level.
* @param logDirectory the required directory to store the logs.
* @param logPrefix the required file name prefix of the log
* file name; the format will be
* &lt;logPrefix&gt;-YYMMDD-hhmmss.log.
* @param formatterClassName a <code>LogFormatter</code> class
* name; if this is null or empty, the
* default <code>LogFormatter</code> will be
* used. The customized log formatter must inherit
* from <code>org.eclipse.datatools.connectivity.oda.logging.LogFormatter</code>
* and implements the <code>format()</code>
* method.
* @return the constructed or updated named <code>Logger</code>.
*/
public static Logger getLogger( String loggerName,
int logLevel,
String logDirectory,
String logPrefix,
String formatterClassName )
{
validateInput( logLevel, logDirectory, logPrefix );
Logger logger = getLogger( loggerName );
// if it didn't already exist, create it
if( logger == null )
return createLogger( loggerName, logLevel, logDirectory,
logPrefix, formatterClassName );
// the named logger already exists, update it.
// update with new log level
setLoggerLevel( logger, logLevel );
// if the caller wants the logger off, then don't bother setting the
// rest of the settings since they'll be empty strings
if( isLogLevelOff( logger.getLevel().intValue() ) )
{
logger.setHandler( null );
return logger;
}
// if the previous handler wasn't a file handler, then we need
// to replace the existing handler with a new file handler
Handler handler = logger.getHandler();
if( ! ( handler instanceof FileHandler ) )
{
resetLoggerFileConfig( logger, logDirectory, logPrefix, formatterClassName );
return logger;
}
// check whether the file configuration has changed.
FileHandler fileHandler = (FileHandler) handler;
if( hasLoggerFileConfigChanged( logger, fileHandler,
logDirectory, logPrefix ) )
{
resetLoggerFileConfig( logger, logDirectory, logPrefix, formatterClassName );
return logger;
}
// check if the formatter has changed
LogFormatter origFormatter = fileHandler.getFormatter();
String origFormatterClassName = origFormatter.getClass().getName();
if( origFormatterClassName.equals( formatterClassName ) )
return logger;
// formatter class was changed, try to change to the new formatter
try
{
LogFormatter formatter = getLogFormatterInstance( formatterClassName );
fileHandler.setFormatter( formatter );
}
catch( Exception ex )
{
// couldn't instantiate the new formatter class through reflection,
// so we're stuck using the old one, log the exception
logger.severe( ex );
}
return logger;
}
private static boolean hasLoggerFileConfigChanged( Logger logger,
FileHandler fileHandler,
String newLogDirectory,
String newLogPrefix )
{
String fullFilename = fileHandler.getPreferredFilename();
File origFile = new File( fullFilename );
File origDir = null;
File newDir = null;
try
{
origDir = origFile.getParentFile().getCanonicalFile();
newDir = ( new File( newLogDirectory ) ).getCanonicalFile();
}
catch( IOException ex )
{
// shouldn't be in here, but just in case that we can't resolve the
// canonical path for the original file's parent directory, then we
// need to create a new FileHandler based on the new log directory. Otherwise,
// the new directory couldn't be resolved, then we keep our old FileHandler.
logger.severe( ex );
return( origDir == null );
}
// check if the log directories are the same
if( ! origDir.equals( newDir ) )
return true;
// this gets just the file name without the directory part:
// <prefix>-YYYYMMDD-hhmmss.log
String origFilename = origFile.getName();
// check if the file name ends with the ".log" suffix and has the
// same prefix
if( ! origFilename.startsWith( newLogPrefix ) ||
! origFilename.endsWith( ".log" ) ) //$NON-NLS-1$
return true;
// validate whether the portion between the prefix and the log file
// suffix was our proper time stamp format
// (prefix length + 1) (length of string - 4)
// V V
// <prefix>-YYYYMMDD-hhmmss.log
String origTimetamp = origFilename.substring( newLogPrefix.length() + 1,
origFilename.length() - 4 );
// the length needs to be the same length as our time stamp format
if( origTimetamp.length() != 15 )
return true;
try
{
if( getDateFormat().parse( origTimetamp ) == null )
return true;
}
catch( ParseException ex )
{
// if there's parse exception, then the timestamp portion wasn't
// a time stamp, so it must have been something else which means that
// the file name has changed.
return true;
}
// the file config hasn't changed.
return false;
}
private static void setLoggerLevel( Logger logger, int logLevel )
{
// set to the specified level
Level level = new Level( "", logLevel ); //$NON-NLS-1$
logger.setLevel( level );
}
private static void resetLoggerFileConfig( Logger logger, String logDirectory,
String logPrefix, String formatterClassName )
{
// set the file handler with the file name and formatter
String logfileName = generateAbsoluteFileName( logDirectory, logPrefix );
// cache exceptions that could occur when users use a customized
// formatter, so that they can take a look at the log to see if something
// went wrong
Exception formatterException = null;
FileHandler handler = null;
try
{
LogFormatter formatter = getLogFormatterInstance( formatterClassName );
handler = ( formatter == null ) ? new FileHandler( logfileName ) :
new FileHandler( logfileName, formatter );
}
catch( Exception ex )
{
formatterException = ex;
// if a formatter class name wasn't specified or it can't be found using reflection,
// then we default back to the SimpleFormatter
handler = new FileHandler( logfileName );
}
logger.setHandler( handler );
// log the exception that we saw when looking for the formatter class
if( formatterException != null )
logger.severe( formatterException );
}
/**
* Gets a previously created <code>Logger</code> by name. The
* specified name must be the same name used in the
* <code>createLogger()</code> method.
* @param loggerName the logger's name.
* @return the <code>Logger</code> associated with the name;
* <code>null</code> if no <code>Logger</code> is
* associated with the specified name.
*/
public static Logger getLogger( String loggerName )
{
return (Logger) m_loggers.get( loggerName );
}
private static SimpleDateFormat getDateFormat()
{
if( sm_dateFormat == null )
sm_dateFormat = new SimpleDateFormat( "yyyyMMdd-HHmmss" ); //$NON-NLS-1$
return sm_dateFormat;
}
/**
* Logic to generate the absolute file name:
* <logDirectory>/<logPrefix>-YYYYMMDD-HHmmss.log
* If the specified <logDirectory> is not an absolute path,
* set it relative to the oda plugin's default log folder.
*/
private static String generateAbsoluteFileName( String logDirectory,
String logFilePrefix )
{
File logDir = getAbsoluteParent( logDirectory );
// format the filename with given prefix, followed by timestamp and .log suffix
String logfileName = logFilePrefix + "-"; //$NON-NLS-1$
Timestamp timestamp = new Timestamp( System.currentTimeMillis() );
logfileName += getDateFormat().format( timestamp ) + ".log"; //$NON-NLS-1$
return new File( logDir, logfileName ).getPath();
}
private static File getAbsoluteParent( String logDirectory )
{
assert( logDirectory != null && logDirectory.length() > 0 );
File logParent = new File( logDirectory );
if( logParent.isAbsolute() )
return logParent; // use as is
// the specified logDirectory is relative,
// set its parent to be the oda plugin's default log folder
logParent = getPluginLogPath().append( logDirectory ).toFile();
return logParent;
}
/**
* Returns the plugin's default log parent file
* in the workspace state location.
* @return
* @throws IllegalStateException when the plugin activator
* is not instantiated yet
*/
private static IPath getPluginLogPath() throws IllegalStateException
{
// try to use oda plugin's default state location's log folder as its parent
OdaPlugin odaPlugin = OdaPlugin.getDefault();
if( odaPlugin == null )
throw new IllegalStateException( "OdaPlugin.getDefault()" ); //$NON-NLS-1$
return odaPlugin.getStateLocation()
.append( LOG_SUBFOLDER_NAME );
}
// use reflection to generate the specified log formatter class instance
private static LogFormatter getLogFormatterInstance( String formatterClassName ) throws Exception
{
if( formatterClassName == null || formatterClassName.length() == 0 )
return null;
Class formatterClass = Class.forName( formatterClassName );
return (LogFormatter) formatterClass.newInstance();
}
// checks if the given log level is set to OFF
private static boolean isLogLevelOff( int logLevel )
{
return ( logLevel > Level.SEVERE );
}
}

View File

@@ -1,119 +0,0 @@
//----------------------------------------------------------------------
// LogRecord.java
//
// Copyright (c) 2004, 2005 Actuate Corporation.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// Actuate Corporation - initial API and implementation
//
// LogRecord is a class that represents all log records that are
// passed internally within the logging framework.
//----------------------------------------------------------------------
package org.eclipse.datatools.connectivity.oda.util.logging;
import java.io.Serializable;
/**
* <code>LogRecord</code> contains information that can be logged
* by a <code>Handler</code>.
*/
public class LogRecord implements Serializable
{
// member variables
private Level m_level;
private String m_message;
private long m_millis;
private Throwable m_thrown;
/**
* Creates a <code>LogRecord</code> instance with the specified
* log level and message. The <code>LogRecord</code> will automatically
* be set with the current time.
* @param level the log level.
* @param message the log message.
*/
public LogRecord( Level level, String message )
{
m_level = level;
m_message = message;
m_millis = System.currentTimeMillis();
}
/**
* Gets the logging level.
* @return the logging level.
*/
public Level getLevel()
{
return m_level;
}
/**
* Sets the logging level to the specified value.
* @param level the new logging level.
*/
public void setLevel( Level level )
{
m_level = level;
}
/**
* Sets the <code>LogRecord</code> message to the specified value.
* @param message the new log message.
*/
public void setMessage( String message )
{
m_message = message;
}
/**
* Gets the log message.
* @return the log message.
*/
public String getMessage()
{
return m_message;
}
/**
* Sets the <code>LogRecord</code> time to the specified value.
* @param millis the new time.
*/
public void setMillis( long millis )
{
m_millis = millis;
}
/**
* Gets the log time.
* @return the log time.
*/
public long getMillis()
{
return m_millis;
}
/**
* Sets an associated <code>Throwable</code> to the <code>LogRecord</code>.
* @param thrown the <code>Throwable</code>.
*/
public void setThrown( Throwable thrown )
{
m_thrown = thrown;
}
/**
* Gets the associated <code>Throwable</code>.
* @return the <code>Throwable</code>.
*/
public Throwable getThrown()
{
return m_thrown;
}
}

View File

@@ -1,242 +0,0 @@
//----------------------------------------------------------------------
// Logger.java
//
// Copyright (c) 2004, 2005 Actuate Corporation.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// Actuate Corporation - initial API and implementation
// Logger is class that contains the interface to allow java
// code to log messages through this logging framework.
//----------------------------------------------------------------------
package org.eclipse.datatools.connectivity.oda.util.logging;
/**
* <code>Logger</code> allows callers to log messages for their application.
* Loggers should be created using the <code>LogManager.createLogger</code>
* method, which creates named loggers with specific logging settings.
* Loggers should be named appropriately based on the application using the
* logging framework to prevent logger name collision. For example, if
* logging were done on javax.sql package, then an appropriate logger name
* would be "javax.sql".
*/
public class Logger
{
// Member Variables
private String m_loggerName;
private Level m_level;
private Handler m_handler;
// private constructor to deal with handling the deprecated
// use of the "global" logger
private Logger()
{
m_loggerName = "global"; //$NON-NLS-1$
// default to logging level OFF.
m_level = Level.OFF_LEVEL;
}
/**
* Creates a <code>Logger</code> instance with the specified name.
* The name should be appropriately named based on the application
* that is doing the logging.
* @param loggerName the name of the logger.
*/
protected Logger( String loggerName )
{
m_loggerName = loggerName;
// default to logging level OFF.
m_level = Level.OFF_LEVEL;
}
/**
* Log a SEVERE error or exception.
* @param thrown the throwable being thrown.
*/
public void severe( Throwable thrown )
{
log( Level.SEVERE_LEVEL, thrown );
}
/**
* Log a SEVERE log message.
* @param message the log message.
*/
public void severe( String message )
{
log( Level.SEVERE_LEVEL, message );
}
/**
* Log a WARNING log message.
* @param message the log message.
*/
public void warning( String message )
{
log( Level.WARNING_LEVEL, message );
}
/**
* Log a INFO log message.
* @param message the log message.
*/
public void info( String message )
{
log( Level.INFO_LEVEL, message );
}
/**
* Log a CONFIG log message.
* @param message the log message.
*/
public void config( String message )
{
log( Level.CONFIG_LEVEL, message );
}
/**
* Log a FINE log message.
* @param message the log message.
*/
public void fine( String message )
{
log( Level.FINE_LEVEL, message );
}
/**
* Log a FINER log message.
* @param message the log message.
*/
public void finer( String message )
{
log( Level.FINER_LEVEL, message );
}
/**
* Log a FINEST log message.
* @param message the log message.
*/
public void finest( String message )
{
log( Level.FINEST_LEVEL, message );
}
/**
* Log a message at the specified level.
* @param level the log level to log the message.
* @param message the log message.
*/
public void log( Level level, String message )
{
if( isLoggable( level ) && m_handler != null )
{
LogRecord record = new LogRecord( level, message );
m_handler.publish( record );
}
}
/**
* Log a throwable at the specified level.
* @param level the log level to log the throwable.
* @param thrown the throwable to log.
*/
public void log( Level level, Throwable thrown )
{
if( isLoggable( level ) && m_handler != null )
{
LogRecord record = new LogRecord( level, "" ); //$NON-NLS-1$
record.setThrown( thrown );
m_handler.publish( record );
}
}
/**
* Get the associated log level.
* @return the associated log level.
*/
public Level getLevel()
{
return m_level;
}
/**
* Sets the level to associate with this <code>Logger</code>.
* @param level the log level to associate.
*/
public void setLevel( Level level )
{
m_level = level;
if( m_handler != null )
m_handler.setLevel( m_level );
}
/**
* Gets the name of this <code>Logger</code>.
* @return the name of the <cdoe>Logger</code>.
*/
public String getName()
{
return m_loggerName;
}
/**
* Gets the associated <code>Handler</code>.
* @return the associated <code>Handler</code>.
*/
protected Handler getHandler()
{
return m_handler;
}
/**
* Sets the specified <code>Handler</code> to associate with this
* <code>Logger</code>.
* @param handler the <code>Handler</code> to associate.
*/
protected void setHandler( Handler handler )
{
// if there's an existing handler and it isn't the same one
// that's being set, then we should close the existing one
// before assigning the new one.
if( m_handler != null && m_handler != handler )
m_handler.close();
m_handler = handler;
if( m_handler != null )
m_handler.setLevel( m_level );
}
/**
* Checks whether the specified level is loggable by this
* <code>Logger</code>. Also checks whether the <code>Logger</code>
* level is set to OFF.
* @param level the log level.
* @return true if the specified level is higher or equal
* to the <code>Logger</code>'s level and if the
* <code>Logger</code>'s level isn't OFF.
*/
public boolean isLoggable( Level level )
{
return ( level.intValue() >= m_level.intValue() &&
m_level.intValue() <= Level.SEVERE );
}
void changeLogFile( String filename )
{
if( m_handler != null )
{
m_handler.close();
( ( FileHandler ) m_handler ).setOutputFile( filename );
}
else //in the case where the previous file creation failed.
m_handler = new FileHandler( filename );
}
}

View File

@@ -1,91 +0,0 @@
//----------------------------------------------------------------------
// LoggingErrorHandler.java
//
// Copyright (c) 2004, 2005 Actuate Corporation.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// Actuate Corporation - initial API and implementation
//
// LoggingErrorHandler simply catches all exceptions generated within
// the logging framework. The caller will not have to be concerned
// with dealing with exceptions during logging.
//----------------------------------------------------------------------
package org.eclipse.datatools.connectivity.oda.util.logging;
/**
* <code>LoggingErrorHandler</code> can be associated with
* <code>Handlers</code> to process any exceptions that occur
* during logging. This will alleviate the log caller from
* having to handle logging errors.
*/
public class LoggingErrorHandler
{
/**
* The constant indicating a <code>close</code> of an
* <code>OutputStream</code> fails.
*/
public static int CLOSE_FAILURE = 0;
/**
* The constant indicating a <code>flush</code> of an
* <code>OutputStream</code> fails.
*/
public static int FLUSH_FAILURE = 1;
/**
* The constant indicating that formatting failed.
*/
public static int FORMAT_FAILURE = 2;
/**
* The constant indicating a failure not in the other
* categories.
*/
public static int GENERIC_FAILURE = 3;
/**
* The constant indicating a <code>open</code> of an
* <code>OutputStream</code> fails.
*/
public static int OPEN_FAILURE = 4;
/**
* The constant indicating a <code>write</code> of an
* <code>OutputStream</code> fails.
*/
public static int WRITE_FAILURE = 5;
/**
* Creates a <code>LoggingErrorHandler</code> instance.
*/
public LoggingErrorHandler()
{
}
/**
* This method is called when a <code>Handler</code> failure occurs.
* It outputs the failure to <code>System.err</code>.
* @param message the error message.
* @param exception the <code>Exception</code> that caused the
* <code>Handler</code> to fail.
* @param errorCode the error code constant.
*/
public void error( String message, Exception exception,
int errorCode )
{
// print out to System.err similar to JDK
String err = "org.eclipse.datatools.connectivity.oda.util.logging (" + errorCode + ")"; //$NON-NLS-1$ //$NON-NLS-2$
if( message != null && message.length() > 0 )
err += ": " + message; //$NON-NLS-1$
System.err.println( err );
if( exception != null )
exception.printStackTrace();
}
}

View File

@@ -1,73 +0,0 @@
//----------------------------------------------------------------------
// SimpleFormatter.java
//
// Copyright (c) 2004, 2005 Actuate Corporation.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// Actuate Corporation - initial API and implementation
//
// SimpleFormatter is an implementation of LogFormatter that generates
// a string output based on the LogRecord in the form of:
//
// Log Level Time Log Message
// <Exception stack trace> ...
// ...
//----------------------------------------------------------------------
package org.eclipse.datatools.connectivity.oda.util.logging;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.sql.Timestamp;
/**
* Formats a <code>LogRecord</code> into an understandable format.
*/
public class SimpleFormatter extends LogFormatter
{
/**
* Creates an <code>SimpleFormatter</code> instance.
*/
public SimpleFormatter()
{
}
/**
* Formats the specified <code>LogRecord</code> to an understandable
* format.
* @param record the <code>LogRecord</code> to format.
* @return the formatted string.
*/
public String format( LogRecord record )
{
// resulting string:
// Log Level Time Log Message
// <Exception stack trace> ...
// ...
Timestamp stamp = new Timestamp( record.getMillis() );
StringBuffer buffer = new StringBuffer();
buffer.append( record.getLevel().intValue() );
buffer.append( "\t" ); //$NON-NLS-1$
buffer.append( stamp.toString() );
buffer.append( "\t\t" ); //$NON-NLS-1$
buffer.append( record.getMessage() );
buffer.append( "\n" ); //$NON-NLS-1$
Throwable thrown = record.getThrown();
if( thrown != null )
{
StringWriter stringWriter = new StringWriter();
PrintWriter printWriter = new PrintWriter( stringWriter );
thrown.printStackTrace( printWriter );
buffer.append( stringWriter.toString() );
printWriter.close();
// StringWriter.close() does nothing
}
return buffer.toString();
}
}

View File

@@ -1,166 +0,0 @@
//----------------------------------------------------------------------
// StreamHandler.java
//
// Copyright (c) 2004, 2005 Actuate Corporation.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// Actuate Corporation - initial API and implementation
//
// StreamHandler is a handler that uses OutputStream's to publish
// the LogRecords, these could include disk, network, console, etc.
//----------------------------------------------------------------------
package org.eclipse.datatools.connectivity.oda.util.logging;
import java.io.IOException;
import java.io.OutputStream;
/**
* <code>StreamHandler</code> is a stream based logging
* <code>Handler</code>.
*/
public class StreamHandler extends Handler
{
// member Variables
private OutputStream m_outStream;
/**
* Creates a <code>StreamHandler</code> with no output stream.
*/
public StreamHandler()
{
// defaults to SimpleFormatter
setFormatter( new SimpleFormatter() );
}
/**
* Creates a <code>StreamHandler</code> with the specified output
* stream and <code>LogFormatter</code>.
* @param output the output stream.
* @param formatter the log formatter.
*/
public StreamHandler( OutputStream output, LogFormatter formatter )
{
setOutputStream( output );
setFormatter( formatter );
}
/**
* Closes the current output stream.
*/
public void close()
{
try
{
// flush before closing
flush();
// this could happen if output stream was never specified.
if( m_outStream != null )
m_outStream.close();
}
catch( IOException ex )
{
reportError( "", ex, LoggingErrorHandler.CLOSE_FAILURE ); //$NON-NLS-1$
}
}
/**
* Cleans up this <code>StreamHandler</code> by calling the
* <code>close</code> method.
*/
protected void finalize()
{
close();
}
/**
* Flushes buffered message to the output stream.
*/
public void flush()
{
try
{
if( m_outStream != null )
m_outStream.flush();
}
catch( IOException ex )
{
reportError( "", ex, LoggingErrorHandler.FLUSH_FAILURE ); //$NON-NLS-1$
}
}
/**
* Format and publish the specified <code>LogRecord</code>. This first checks
* that there is an associated <code>OutputStream</code> and the specified
* <code>LogRecord</code> has the required log level. This also checks the
* <code>LogRecord</code> with the associated <code>Filter</code> to see if
* the record should be published. Then this uses its <code>LogFormatter</code>
* to format the record and publishes the result to the <code>OutputStream</code>.
* @param record the <code>LogRecord</code> to format and publish.
*/
public void publish( LogRecord record )
{
if( ! isLoggable( record ) )
return;
try
{
String recordString = getFormatter().format( record );
m_outStream.write( recordString.getBytes() );
}
catch( IOException ex )
{
reportError( "", ex, LoggingErrorHandler.WRITE_FAILURE ); //$NON-NLS-1$
}
catch( Exception ex )
{
reportError( "", ex, LoggingErrorHandler.FORMAT_FAILURE ); //$NON-NLS-1$
}
}
/**
* Checks if this <code>StreamHandler</code> has an associated
* <code>OutputStream</code>, whether the <code>LogRecord</code> has the
* adequate log level, and whether it satisfies the associated <code>Filter</code>.
* @param record the <code>LogRecord</code> to check.
* @return true if the <code>LogRecord</code> should be logged.
*/
public boolean isLoggable( LogRecord record )
{
return( super.isLoggable( record ) && m_outStream != null );
}
/**
* Sets the <code>LogFormatter</code> for this <code>StreamHandler</code>.
* If the formatter is <code>null</code>, then default <code>SimpleFormatter</code>
* will be used.
* @param formatter the formatter to set.
*/
public void setFormatter( LogFormatter formatter )
{
formatter = ( formatter != null ) ? formatter :
new SimpleFormatter();
super.setFormatter( formatter );
}
/**
* Sets the output stream.
* @param outStream the output stream.
*/
protected void setOutputStream( OutputStream outStream )
{
if( outStream == null )
throw new NullPointerException();
// flush the existing stream
flush();
m_outStream = outStream;
}
}

View File

@@ -1,41 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!--
*************************************************************************
* Copyright (c) 2004, 2006 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="white">
[<b>Experimental</b>] Provides a trace logging utility to an
ODA runtime extension.
<p>
The package provides a default implementation of trace logging framework,
which does not impose dependency on other packages or specific platforms.
<br>It may serve to encapsulate the type of logging framework used,
by simply extending its implementation.
Each ODA runtime driver is then not required to make any direct changes when
switching to another logging framework.
<p>
The use of this logging utility is purely optional.
An ODA runtime driver extension may directly use its driver-specific logging
utility, as appropriate.
<!-- Put @see and @since tags down here. -->
@since 1.0
</body>
</html>

View File

@@ -1,247 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2006 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.util.manifest;
import java.sql.Types;
import java.util.Collection;
import java.util.Hashtable;
import java.util.Properties;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.datatools.connectivity.oda.nls.Messages;
/**
* Defines a type of data set supported by the ODA data source extension.
* A data set definition has a unique id, display name
* and a set of driver to ODA data type mappings.
*/
public class DataSetType
{
private String m_id;
private String m_displayName;
private Hashtable m_dataTypeMappings;
private Property[] m_properties = null;
private Properties m_propsVisibility;
private IConfigurationElement m_configElement;
private Relationship m_relationship;
DataSetType( IConfigurationElement dataSetElement ) throws OdaException
{
init( dataSetElement );
}
protected DataSetType()
{
}
protected void init( IConfigurationElement dataSetElement ) throws OdaException
{
m_id = dataSetElement.getAttribute( "id" ); //$NON-NLS-1$
assert( m_id != null ); // this check is already done by caller
m_displayName = ManifestExplorer.getElementDisplayName( dataSetElement );
// dataTypeMapping elements
m_dataTypeMappings = new Hashtable();
IConfigurationElement[] typeMappings = dataSetElement.getChildren( "dataTypeMapping" ); //$NON-NLS-1$
int numOfTypeMappings = typeMappings.length;
if( numOfTypeMappings == 0 )
throw new OdaException( Messages.bind( Messages.manifest_NO_DATA_TYPE_MAPPINGS_DEFINED,
m_id ) );
for( int i = 0; i < numOfTypeMappings; i++ )
{
IConfigurationElement typeMapping = typeMappings[i];
String nativeDataTypeCode = typeMapping.getAttribute( "nativeDataTypeCode" ); //$NON-NLS-1$
m_dataTypeMappings.put( nativeDataTypeCode,
new DataTypeMapping( typeMapping, m_id ) );
}
// properties element
IConfigurationElement[] propertiesElements = dataSetElement.getChildren( "properties" ); //$NON-NLS-1$
if ( propertiesElements.length > 0 )
{
// if multiple properties elements exist, use the last one
IConfigurationElement propertiesElement =
propertiesElements[ propertiesElements.length - 1 ];
m_properties = ExtensionManifest.getPropertyDefinitions( propertiesElement );
m_propsVisibility = ExtensionManifest.getPropertyVisibilities( propertiesElement );
}
// relationship element
m_relationship = Relationship.createInstance( dataSetElement );
// successfully initialized
m_configElement = dataSetElement;
}
/**
* Returns the configuration element used to initialize this instance.
*/
protected IConfigurationElement getConfigurationElement()
{
return m_configElement;
}
/**
* Returns the ID which uniquely identifes the type of data set among
* all ODA data sets supported by the driver.
* @return the data set type name.
*/
public String getID()
{
return m_id;
}
/**
* Returns the display name of the ODA data set type element.
* Defaults to element ID if no display name is specified.
* It can be used by the designer tool of an ODA consumer application
* to display a list of ODA data sets.
* @return The display name of the ODA data set element.
*/
public String getDisplayName()
{
return m_displayName;
}
/**
* Returns the data type mapping for the specified native data type code.
* @param nativeDataTypeCode the native data type code.
* @return the data type mapping for the native type code, or null
* if there is no data type mapping for the native type code in
* the data set type.
*/
public DataTypeMapping getDataTypeMapping( int nativeDataTypeCode )
{
String typeCode = Integer.toString( nativeDataTypeCode );
return (DataTypeMapping) m_dataTypeMappings.get( typeCode );
}
/**
* Returns the data type mappings for the data set type, or an
* empty array if no mappings exist.
* @return the data type mappings for this data set type, or an
* empty array if no mappings exist.
*/
public DataTypeMapping[] getDataTypeMappings()
{
Collection typeMappings = m_dataTypeMappings.values();
int count = typeMappings.size();
return ( DataTypeMapping[] ) typeMappings.toArray( new DataTypeMapping[count] );
}
/**
* Returns the primary ODA scalar data type code
* that the specified native data type is mapped to.
* <br>If none or unknown native data type value (0) is specified,
* maps to an ODA String data type by default.
* If no default ODA data type mapping is defined by the driver
* for the specified native data type, returns Types.NULL
* for unknown ODA data type.
* @return the primary ODA scalar data type code;
* may be java.sql.Types.NULL if no mapping is found.
*/
public int getDefaultOdaDataTypeCode( int nativeDataTypeCode )
{
DataTypeMapping mapping = getDataTypeMapping( nativeDataTypeCode );
if( mapping != null )
return mapping.getOdaScalarDataTypeCode();
// no mapping is defined by the ODA driver
// for the specified nativeDataTypeCode,
// maps a 0 native data type (defined as none or unknown value in
// the oda.design model) to an ODA String data type by default
if( nativeDataTypeCode == 0 )
return Types.CHAR;
// unknown ODA data type
return Types.NULL;
}
/**
* Returns an array of Property definition instances that represent
* the properties defined by this data set element.
* The collection includes both top-level properties and
* those in a group.
* @return an array of property definitions;
* an empty array is returned if no properties are defined.
*/
public Property[] getProperties()
{
if ( m_properties == null )
{
// creates an empty array to return
m_properties = new Property[ 0 ];
}
return m_properties;
}
/**
* Returns the Property definition instance that matches the specified name
* in the list of properties defined by this data set element.
* @param propertyName the name of a property
* @return the matching Property definition, or null if no match is found.
*/
public Property getProperty( String propertyName )
{
if ( propertyName == null || propertyName.length() == 0 )
return null;
Property[] props = getProperties();
for( int i = 0; i < props.length; i++ )
{
if ( propertyName.equals( props[ i ].getName() ))
return props[ i ];
}
return null; // no matching property
}
/**
* Returns a Properties collecton of property visibilty settings.
* @return Properties with the property name as key, and
* its visibility setting as value.
* An empty collection if no property visibility is defined.
*/
public Properties getPropertiesVisibility()
{
if ( m_propsVisibility == null )
m_propsVisibility = new Properties();
return m_propsVisibility;
}
/**
* Indicates whether this data set type is defined to be deprecated.
*/
public boolean isDeprecated()
{
return ( m_relationship != null && m_relationship.isDeprecated() );
}
/**
* Returns the related oda data set element id, if specified.
* @return the related oda data set element id, or
* null if none is specified.
*/
public String getRelatedDataSetId()
{
if( m_relationship == null )
return null;
return m_relationship.getRelatedId();
}
}

View File

@@ -1,265 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2006 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.util.manifest;
import java.sql.Types;
import java.util.Hashtable;
import java.util.Locale;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.datatools.connectivity.oda.nls.Messages;
/**
* The data type mapping of a data provider's native data type to one or more ODA
* data types. A single native data type must be mapped to a primary ODA scalar
* data type. The driver can optionally provide a list of alternate ODA data types
* to which it is capable of converting the native data type.
*/
public class DataTypeMapping
{
private static Hashtable sm_odaTypeCodes;
private int m_nativeTypeCode;
private String m_nativeType;
private String m_odaScalarType;
private String[] m_alternativeDataTypes;
private int[] m_alternativeDataTypeCodes;
DataTypeMapping( IConfigurationElement dataTypeMapping,
String dataSetTypeName ) throws OdaException
{
m_nativeType = dataTypeMapping.getAttribute( "nativeDataType" ); //$NON-NLS-1$
if( m_nativeType == null )
throw new OdaException( Messages.bind( Messages.manifest_NO_NATIVE_TYPE_NAME_DEFINED,
dataSetTypeName ) );
String nativeDataTypeCode = dataTypeMapping.getAttribute( "nativeDataTypeCode" ); //$NON-NLS-1$
if( nativeDataTypeCode == null )
throw new OdaException( Messages.bind( Messages.manifest_NO_NATIVE_TYPE_CODE_DEFINED,
m_nativeType, dataSetTypeName ) );
try
{
m_nativeTypeCode = Integer.parseInt( nativeDataTypeCode );
}
catch( NumberFormatException ex )
{
throw new OdaException( Messages.bind( Messages.manifest_INVALID_NATIVE_TYPE_CODE_VALUE,
new Object[] { m_nativeType, nativeDataTypeCode, dataSetTypeName } ) );
}
m_odaScalarType = dataTypeMapping.getAttribute( "odaScalarDataType" ); //$NON-NLS-1$
sanityCheckOdaScalarType( m_odaScalarType, false /* isForAlternatives */ );
IConfigurationElement[] alternativeDataTypes =
dataTypeMapping.getChildren( "alternativeOdaDataType" ); //$NON-NLS-1$
int length = alternativeDataTypes.length;
m_alternativeDataTypes = new String[length];
for( int i = 0; i < length; i++ )
{
m_alternativeDataTypes[i] =
alternativeDataTypes[i].getAttribute( "odaScalarDataType" ); //$NON-NLS-1$
sanityCheckOdaScalarType( m_alternativeDataTypes[i], true /* isForAlternatives */ );
}
}
protected DataTypeMapping( int nativeTypeCode, String nativeType,
String odaScalarType,
String[] alternativeDataTypes )
{
m_nativeTypeCode = nativeTypeCode;
m_nativeType = nativeType;
m_odaScalarType = odaScalarType;
m_alternativeDataTypes = alternativeDataTypes;
}
private void sanityCheckOdaScalarType( String odaScalarType, boolean isForAlternatives )
throws OdaException
{
if( odaScalarType == null )
throw new OdaException( isForAlternatives ?
Messages.bind( Messages.manifest_NO_ODA_SCALAR_DATA_TYPE_DEFINED_2, m_nativeType ) :
Messages.bind( Messages.manifest_NO_ODA_SCALAR_DATA_TYPE_DEFINED_1, m_nativeType ) );
if( ! getOdaTypeCodes().containsKey( toOdaTypeKey( odaScalarType ) ))
throw new OdaException( Messages.bind( Messages.manifest_INVALID_ODA_SCALAR_DATA_TYPE_VALUE,
odaScalarType, m_nativeType ) );
}
/**
* Returns the native type name of the data type mapping.
* @return the native type name.
*/
public String getNativeType()
{
return m_nativeType;
}
/**
* Returns the native type code of the data type mapping.
* Its value must match one of the data type codes returned in the
* driver's ODA interface implementation.
* @return the native type code.
*/
public int getNativeTypeCode()
{
return m_nativeTypeCode;
}
/**
* Returns the primary ODA scalar data type that the native data type maps to
* @return the primary ODA scalar data type.
*/
public String getOdaScalarDataType()
{
return m_odaScalarType;
}
/**
* Returns the primary ODA scalar data type code
* that the native data type maps to.
* @return the primary ODA scalar data type code.
*/
public int getOdaScalarDataTypeCode()
{
return toOdaDataTypeCode( m_odaScalarType );
}
/**
* Returns the alternative ODA data types of the data type mapping, or
* an empty array if no alternative ODA data types exist.
* @return the alternative ODA data types, or an empty array if no alternative
* ODA data types exist.
*/
public String[] getAlternativeOdaDataTypes()
{
return m_alternativeDataTypes;
}
/**
* Returns the alternative ODA data type codes of the data type mapping, or
* an empty array if no alternative ODA data types exist.
* @return the alternative ODA data type codes, or an empty array if no alternative
* ODA data types exist.
*/
public int[] getAlternativeOdaDataTypeCodes()
{
if( m_alternativeDataTypeCodes == null )
{
int numCodes = m_alternativeDataTypes.length;
m_alternativeDataTypeCodes = new int[numCodes];
for( int i = 0; i < numCodes; i++ )
{
m_alternativeDataTypeCodes[i] =
toOdaDataTypeCode( m_alternativeDataTypes[i] );
}
}
return m_alternativeDataTypeCodes;
}
/**
* A convenient method to indicate whether the ODA data provider
* is capable of converting this mapping's native data type
* to the specified ODA data type code.
* @param odaDataTypeCode an ODA data type code
* @return true if the specified ODA data type can be converted from this
* mapping's native data type; false otherwise.
*/
public boolean canConvertToOdaType( int odaDataTypeCode )
{
// check if the specified code is the primary ODA data type
// defined in this native type's mapping
if( odaDataTypeCode == getOdaScalarDataTypeCode() )
return true;
// check if the specified code is one of the alternative ODA data types
// defined in this native type's mapping
int[] alternateOdaTypes = getAlternativeOdaDataTypeCodes();
for( int i = 0; i < alternateOdaTypes.length; i++ )
{
if( odaDataTypeCode == alternateOdaTypes[i] )
return true;
}
return false;
}
/**
* Converts an ODA data type literal value to its
* corresponding code value.
* @param odaDataTypeLiteral a literal value of an ODA data type
* @return corresponding ODA data type code value,
* or Types.NULL if specified literal value is
* not recognized
*/
public static int toOdaDataTypeCode( String odaDataTypeLiteral )
{
if( odaDataTypeLiteral == null ||
odaDataTypeLiteral.length() == 0 )
return Types.NULL;
Object typeCode =
getOdaTypeCodes().get( toOdaTypeKey( odaDataTypeLiteral ) );
if( typeCode != null )
return ((Integer) typeCode).intValue();
return Types.NULL;
}
/**
* Returns the cached table that maps each ODA data type name
* to its corresponding data type code.
* The data type name serves as the key in the cached table.
*/
private static Hashtable getOdaTypeCodes()
{
if( sm_odaTypeCodes == null )
{
sm_odaTypeCodes = new Hashtable( 10 );
sm_odaTypeCodes.put( toOdaTypeKey( "String" ), //$NON-NLS-1$
new Integer( Types.CHAR ));
sm_odaTypeCodes.put( toOdaTypeKey( "Integer" ), //$NON-NLS-1$
new Integer( Types.INTEGER ));
sm_odaTypeCodes.put( toOdaTypeKey( "Double" ), //$NON-NLS-1$
new Integer( Types.DOUBLE ));
sm_odaTypeCodes.put( toOdaTypeKey( "Decimal" ), //$NON-NLS-1$
new Integer( Types.DECIMAL ));
sm_odaTypeCodes.put( toOdaTypeKey( "Date" ), //$NON-NLS-1$
new Integer( Types.DATE ));
sm_odaTypeCodes.put( toOdaTypeKey( "Time" ), //$NON-NLS-1$
new Integer( Types.TIME ));
sm_odaTypeCodes.put( toOdaTypeKey( "Timestamp" ), //$NON-NLS-1$
new Integer( Types.TIMESTAMP ));
sm_odaTypeCodes.put( toOdaTypeKey( "Blob" ), //$NON-NLS-1$
new Integer( Types.BLOB ));
sm_odaTypeCodes.put( toOdaTypeKey( "Clob" ), //$NON-NLS-1$
new Integer( Types.CLOB ));
}
return sm_odaTypeCodes;
}
private static String toOdaTypeKey( String odaDataTypeLiteral )
{
assert odaDataTypeLiteral != null;
return odaDataTypeLiteral.toLowerCase( Locale.US );
}
}

View File

@@ -1,456 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.util.manifest;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Hashtable;
import java.util.Properties;
import java.util.Set;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtension;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.datatools.connectivity.oda.nls.Messages;
/**
* Encapsulates access to the content of an ODA data source
* plug-in extension manifest.
*/
public class ExtensionManifest
{
public static final String CLASS_ATTRIBUTE_NAME = "driverClass"; //$NON-NLS-1$
private String m_namespace;
private String m_dataSourceElementId;
private String m_odaVersion;
private String m_displayName;
private RuntimeInterface m_runtime;
private Hashtable m_dataSetTypes;
private TraceLogging m_traceLogging;
private Property[] m_properties = null;
private Properties m_propsVisibility;
private IConfigurationElement m_dataSourceElement;
private IExtension m_dataSourceExtn;
private Relationship m_relationship;
ExtensionManifest( IExtension dataSourceExtn ) throws OdaException
{
init( dataSourceExtn );
}
protected ExtensionManifest()
{
}
protected void init( IExtension dataSourceExtn ) throws OdaException
{
m_dataSourceElement =
ManifestExplorer.getDataSourceElement( dataSourceExtn );
assert( m_dataSourceElement != null );
m_namespace = dataSourceExtn.getContributor().getName();
// first cache the data source element's attributes
m_dataSourceElementId = m_dataSourceElement.getAttribute( "id" ); //$NON-NLS-1$
if( m_dataSourceElementId == null || m_dataSourceElementId.length() == 0 )
throw new OdaException( Messages.manifest_NO_DATA_SOURCE_EXTN_ID_DEFINED );
m_odaVersion = m_dataSourceElement.getAttribute( "odaVersion" ); //$NON-NLS-1$
m_displayName = ManifestExplorer.getElementDisplayName( m_dataSourceElement );
// runtime interface
String driverClass = m_dataSourceElement.getAttribute( CLASS_ATTRIBUTE_NAME );
if( driverClass == null )
throw new OdaException( Messages.bind( Messages.manifest_NO_DRIVER_CLASS_DEFINED,
m_dataSourceElementId ) );
String needSetThreadContextClassLoader =
m_dataSourceElement.getAttribute( "setThreadContextClassLoader" ); //$NON-NLS-1$
if( needSetThreadContextClassLoader == null ||
needSetThreadContextClassLoader.length() == 0 )
{
// assign default
needSetThreadContextClassLoader = "false"; //$NON-NLS-1$
}
else // validate specified value
{
if( ! needSetThreadContextClassLoader.equalsIgnoreCase( "true" ) && //$NON-NLS-1$
! needSetThreadContextClassLoader.equalsIgnoreCase( "false" ) ) //$NON-NLS-1$
throw new OdaException( Messages.bind( Messages.manifest_INVALID_SET_THREAD_CONTEXT_CLASSLOADER_VALUE,
needSetThreadContextClassLoader, m_dataSourceElementId ) );
}
m_runtime =
new JavaRuntimeInterface( driverClass,
Boolean.valueOf( needSetThreadContextClassLoader ).booleanValue(),
m_namespace );
// data set definition elements in the same extension
m_dataSetTypes = ManifestExplorer.getDataSetElements( dataSourceExtn, m_dataSourceElementId );
// trace logging element
IConfigurationElement[] traceLogging = m_dataSourceElement.getChildren( "traceLogging" ); //$NON-NLS-1$
int numOfTraceLogging = traceLogging.length;
// if multiple trace logging configuration exist, use the last one
if( numOfTraceLogging > 0 )
m_traceLogging = new TraceLogging( traceLogging[ numOfTraceLogging - 1 ], m_dataSourceElementId );
// properties element
IConfigurationElement[] propertiesElements = m_dataSourceElement.getChildren( "properties" ); //$NON-NLS-1$
if( propertiesElements.length > 0 )
{
// if multiple properties elements exist, use the last one
IConfigurationElement propertiesElement =
propertiesElements[ propertiesElements.length - 1 ];
m_properties = getPropertyDefinitions( propertiesElement );
m_propsVisibility = getPropertyVisibilities( propertiesElement );
}
// relationship element
m_relationship = Relationship.createInstance( m_dataSourceElement );
// successfully initialized
m_dataSourceExtn = dataSourceExtn;
}
/**
* Returns the data source extension element used to initialize this instance.
*/
protected IExtension getDataSourceExtension()
{
return m_dataSourceExtn;
}
/*
* Parse and return all the property definitions,
* combining both top-level and grouped properties.
*/
static Property[] getPropertyDefinitions( IConfigurationElement propertiesElement )
throws OdaException
{
IConfigurationElement[] propElements = propertiesElement.getChildren( "property" ); //$NON-NLS-1$
IConfigurationElement[] propGroupElements = propertiesElement.getChildren( "propertyGroup" ); //$NON-NLS-1$
int numProperties = propElements.length + propGroupElements.length;
if ( numProperties <= 0 )
return new Property[ 0 ];
ArrayList properties = new ArrayList();
// first convert top-level property elements
for( int i = 0, size = propElements.length; i < size; i++ )
{
IConfigurationElement propElement = propElements[i];
properties.add( new Property( propElement ) );
}
// next convert property elements in each group
for( int j = 0, size2 = propGroupElements.length; j < size2; j++ )
{
IConfigurationElement propGroupElement = propGroupElements[j];
// no validation is done; up to the consumer to process
String groupName = propGroupElement.getAttribute( "name" ); //$NON-NLS-1$
String groupDisplayName = ManifestExplorer.getElementDisplayName( propGroupElement );
IConfigurationElement[] groupedPropElements = propGroupElement.getChildren( "property" ); //$NON-NLS-1$
for( int i = 0, size = groupedPropElements.length; i < size; i++ )
{
IConfigurationElement groupedPropElement = groupedPropElements[i];
properties.add( new Property( groupedPropElement, groupName, groupDisplayName ) );
}
}
return (Property[]) properties.toArray( new Property[ properties.size() ] );
}
/*
* Parse and return the property visibility definitions.
*/
static Properties getPropertyVisibilities( IConfigurationElement propertiesElement )
throws OdaException
{
// convert propertyVisibility elements to a collection
IConfigurationElement[] propVisibilityElements =
propertiesElement.getChildren( "propertyVisibility" ); //$NON-NLS-1$
if ( propVisibilityElements.length == 0 )
return null; // done
Properties propsVisibility = new Properties();
for( int i = 0, size = propVisibilityElements.length; i < size; i++ )
{
IConfigurationElement propVisibltyElement = propVisibilityElements[i];
// no validation is done; up to the consumer to process
String propName = propVisibltyElement.getAttribute( "name" ); //$NON-NLS-1$
String propVisbility = propVisibltyElement.getAttribute( "visibility" ); //$NON-NLS-1$
propsVisibility.setProperty( propName, propVisbility );
}
return propsVisibility;
}
/**
* Returns the namespace of the plugin that contributes this ODA runtime extension.
* @return the plugin namespace for the ODA driver, null if the driver does not have
* a namespace.
*/
public String getNamespace()
{
return m_namespace;
}
/**
* Returns the ID that uniquely identifies this
* ODA data source extension in an ODA consumer application's
* environment. This is the extension that implements
* the org.eclipse.datatools.connectivity.oda.dataSource extension point.
* <br>Since each data source extension
* has one and only one data source element, the element ID
* is used as the extension ID.
* @return the data source extension ID.
*/
public String getExtensionID()
{
return getDataSourceElementID();
}
/**
* Returns the ID that uniquely identifies the dataSource element defined
* in the ODA data source extension.
* @return the data source element ID.
*/
public String getDataSourceElementID()
{
return m_dataSourceElementId;
}
/**
* Returns the configuration element of this extension's
* data source element.
* @return a dataSource configuration element
*/
public IConfigurationElement getDataSourceElement()
{
return m_dataSourceElement;
}
/**
* Returns the driver installation location.
* @return the driver directory.
* @throws IOException if an IO error occurs.
*/
public URL getDriverLocation() throws IOException
{
// should be same as the runtime library location in this case
return m_runtime.getLibraryLocation();
}
/**
* Returns the version of the <i>org.eclipse.datatools.connectivity.oda</i>
* interfaces for which this driver is developed.
* @return The ODA interface version. Its format is as defined
* in the extension point schema.
*/
public String getOdaVersion()
{
return m_odaVersion;
}
/**
* Returns the display name of the data source element
* defined in the ODA data source extension.
* Defaults to element ID if no display name is specified.
* It can be used by an ODA consumer application's designer tool
* to display a list of ODA data source extensions.
* @return The display name of the ODA data source element.
*/
public String getDataSourceDisplayName()
{
return m_displayName;
}
/**
* Returns an array of DataSetType instances that
* represent the dataSet elements defined in
* this data source extension.
* @return an array of data set types; may return an empty array
* if no dataSet elements are defined.
*/
public DataSetType[] getDataSetTypes()
{
Collection dataSetTypes = m_dataSetTypes.values();
int size = dataSetTypes.size();
return (DataSetType[]) dataSetTypes.toArray( new DataSetType[size] );
}
/**
* Returns an array of ids of the dataSet elements
* defined in this data source extension.
* @return an array of data set type IDs; may return an empty array
* if no dataSet elements are defined.
*/
public String[] getDataSetTypeIDs()
{
Set dataSetTypeIDs = m_dataSetTypes.keySet();
int size = dataSetTypeIDs.size();
return (String[]) dataSetTypeIDs.toArray( new String[size] );
}
/**
* Returns the number of data set types defined in this ODA data source extension.
* @return number of data set types defined; may be zero if none is defined
*/
public int getDataSetTypeCount()
{
return m_dataSetTypes.size();
}
/**
* Returns the DataSetType instance that
* represents the dataSet element with the given ID
* defined in this data source extension.
* If the given data set element ID is null and the data source
* extension supports only one data set type, that
* data set element will be returned by default.
* @param dataSetElementID the id of the data set element.
* @return the data set element definition.
* @throws OdaException if there is no data set definition associated
* with the specified data set element ID, or
* if there are more than one data set elements
* that match the ID.
*/
public DataSetType getDataSetType( String dataSetElementID ) throws OdaException
{
if( dataSetElementID == null )
{
// find default data set element and return it if found
if( m_dataSetTypes.size() != 1 )
throwsIllegalArgumentOdaException( dataSetElementID );
Collection dataSetTypes = m_dataSetTypes.values();
assert( dataSetTypes.size() == 1 );
return (DataSetType) dataSetTypes.toArray()[0];
}
DataSetType dsType = (DataSetType) m_dataSetTypes.get( dataSetElementID );
if( dsType == null )
throwsIllegalArgumentOdaException( dataSetElementID );
return dsType;
}
private void throwsIllegalArgumentOdaException( String arg ) throws OdaException
{
Exception illegalArg = new IllegalArgumentException( arg );
OdaException ex = new OdaException( illegalArg.toString() );
ex.initCause( illegalArg );
throw ex;
}
/**
* Returns the optional trace logging configuration for the driver.
* @return the trace logging configuration, or null if no trace logging
* configuration was specified.
*/
public TraceLogging getTraceLogging()
{
return m_traceLogging;
}
/**
* Returns the runtime interface configuration.
* @return the runtime interface configuration.
*/
public RuntimeInterface getRuntimeInterface()
{
return m_runtime;
}
/**
* Returns an array of Property definition instances that represent
* the properties defined by this data source extension.
* The collection includes both top-level properties and
* those in a group.
* @return an array of property definitions;
* an empty array is returned if no properties are defined.
*/
public Property[] getProperties()
{
if ( m_properties == null )
{
// creates an empty array to return
m_properties = new Property[ 0 ];
}
return m_properties;
}
/**
* Returns the Property definition instance that matches the specified name
* in the list of properties defined by this data source extension.
* @param propertyName the name of a property
* @return the matching Property definition, or null if no match is found.
*/
public Property getProperty( String propertyName )
{
if ( propertyName == null || propertyName.length() == 0 )
return null;
Property[] props = getProperties();
for( int i = 0; i < props.length; i++ )
{
if ( propertyName.equals( props[ i ].getName() ))
return props[ i ];
}
return null; // no matching property
}
/**
* Returns a Properties collecton of property visibilty settings.
* @return Properties with the property name as key, and
* its visibility setting as value.
* An empty collection if no property visibility is defined.
*/
public Properties getPropertiesVisibility()
{
if ( m_propsVisibility == null )
m_propsVisibility = new Properties();
return m_propsVisibility;
}
/**
* Indicates whether this extension is defined to be deprecated.
*/
public boolean isDeprecated()
{
return ( m_relationship != null && m_relationship.isDeprecated() );
}
/**
* Returns the related oda data source element id, if specified.
* @return the related oda data source element id, or
* null if none is specified.
*/
public String getRelatedDataSourceId()
{
if( m_relationship == null )
return null;
return m_relationship.getRelatedId();
}
}

View File

@@ -1,100 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.util.manifest;
import java.io.IOException;
import java.net.URL;
import org.eclipse.core.runtime.Platform;
import org.osgi.framework.Bundle;
/**
* This class encapsulates the Java runtime interface specific configurations.
*/
public class JavaRuntimeInterface extends RuntimeInterface
{
private String m_driverClass;
private boolean m_needSetThreadContextClassLoader;
private String m_namespace;
JavaRuntimeInterface( String driverClass,
boolean needSetThreadContextClassLoader,
String namespace )
{
m_driverClass = driverClass;
m_needSetThreadContextClassLoader = needSetThreadContextClassLoader;
m_namespace = namespace;
}
public int getInterfaceType()
{
return JAVA_TYPE;
}
/**
* Returns the fully qualified concrete class that implements the
* <i>org.eclipse.datatools.connectivity.oda.IDriver</i> interface.
* This is the entry point of the ODA runtime extension.
* @return the fully qualified connection factory class name.
*/
public String getDriverClass()
{
return m_driverClass;
}
/**
* If true, the consumer of the ODA runtime extension plugin should set the
* thread context class loader to the class loader used to load this driver
* before calling any ODA interface method. The default is false.
* @return true if the thread context classloader is to be set for the
* ODA runtime extension plugin.
*/
public boolean needSetThreadContextClassLoader()
{
return m_needSetThreadContextClassLoader;
}
/**
* @see org.eclipse.datatools.connectivity.oda.util.manifest.RuntimeInterface#getLibraryLocation()
*/
public URL getLibraryLocation() throws IOException
{
return getLocation( "/" ); //$NON-NLS-1$
}
/**
* @see org.eclipse.datatools.connectivity.oda.util.manifest.RuntimeInterface#getDriverFileLocation(java.lang.String)
*/
public URL getDriverFileLocation( String filename ) throws IOException
{
return getLocation( filename );
}
private URL getLocation( String entry ) throws IOException
{
Bundle bundle = Platform.getBundle( m_namespace );
URL url = bundle.getEntry( entry );
return Platform.asLocalURL( url );
}
/**
* @see org.eclipse.datatools.connectivity.oda.util.manifest.RuntimeInterface#getLibraries()
*/
public String[] getLibraries()
{
// Eclipse core classes doesn't expose this information
throw new UnsupportedOperationException();
}
}

View File

@@ -1,669 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2006 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.util.manifest;
import java.sql.Types;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtension;
import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.IExtensionRegistry;
import org.eclipse.core.runtime.Platform;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.datatools.connectivity.oda.nls.Messages;
/**
* The Manifest Explorer is the entry point to explore and access
* the manifest of all the ODA plug-ins extensions that implement the
* <code>org.eclipse.datatools.connectivity.oda.dataSource</code> extension point.
* The <code>ManifestExplorer</code> singleton instance is retrieved
* using the <code>getInstance()</code> method.
*/
public class ManifestExplorer
{
private static ManifestExplorer sm_instance = null;
// trace logging variables
private static Logger sm_logger = null;
private Hashtable m_manifestsById; // cached copy of manifests by odaDataSourceId
private static final String DTP_ODA_EXT_POINT =
"org.eclipse.datatools.connectivity.oda.dataSource"; //$NON-NLS-1$
// works around bug in some J2EE servers - Bugzilla #126073
private static final String PACKAGE_NAME =
"org.eclipse.datatools.connectivity.oda.util.manifest"; //$NON-NLS-1$
/**
* Gets the <code>ManifestExplorer</code> instance to
* explore the manifest of the data source extensions.
* @return the <code>ManifestExplorer</code> instance.
*/
public static ManifestExplorer getInstance()
{
if( sm_instance == null )
sm_instance = new ManifestExplorer();
return sm_instance;
}
/**
* Singleton instance release method.
*/
public static void releaseInstance()
{
sm_instance = null;
sm_logger = null;
}
static Logger getLogger()
{
if( sm_logger == null )
sm_logger = Logger.getLogger( PACKAGE_NAME );
return sm_logger;
}
private ManifestExplorer()
{
}
/**
* Refresh the manifest explorer, and allows it to get
* the latest ODA Design UI extension manifests.
*/
public void refresh()
{
// reset the cached collection of ODA extension manifest instances
m_manifestsById = null;
}
private Hashtable getCachedManifests()
{
if( m_manifestsById == null )
m_manifestsById = new Hashtable();
return m_manifestsById;
}
/**
* Returns a collection of identifiers of
* all ODA data source extensions.
* The extension's data source element ID and display name
* are stored as the key and value in the returned Properties instance.
* The returned collection includes all matching extensions, including those
* with no dataSet elements defined.
* Returns an empty <code>Properties</code> if there are
* no data source extensions found.
* @return a <code>Properties</code> containing the id
* and display name of all data source extensions.
*/
public Properties getDataSourceIdentifiers()
{
IExtension[] extensions = getDataSourceExtensions();
int length = ( extensions == null ) ?
0 : extensions.length;
Properties extensionIds = new Properties();
for( int i = 0; i < length; i++ )
{
IExtension extension = extensions[i];
try
{
IConfigurationElement dsElement = getDataSourceElement( extension );
String dataSourceId = dsElement.getAttribute( "id" ); //$NON-NLS-1$
String dataSourceDisplayName = getElementDisplayName( dsElement );
extensionIds.setProperty( dataSourceId, dataSourceDisplayName );
}
catch( OdaException ex )
{
getLogger().log( Level.WARNING, "Ignoring invalid extension.", ex ); //$NON-NLS-1$
}
}
return extensionIds;
}
/**
* Returns the extension configuration information found
* in the plugin manifest file of the data source extension
* that contains the specified data source element and
* implements the DTP ODA run-time extension point -
* org.eclipse.datatools.connectivity.oda.dataSource.
* @param dataSourceId the unique id of the data source element
* in a data source extension.
* @return the extension manifest information
* @throws OdaException if the extension manifest is invalid.
* @throws IllegalArgumentException if no extension is found.
*/
public ExtensionManifest getExtensionManifest( String dataSourceId )
throws OdaException
{
ExtensionManifest manifest =
getExtensionManifest( dataSourceId, DTP_ODA_EXT_POINT );
if( manifest != null )
return manifest;
throw new IllegalArgumentException( dataSourceId );
}
/**
* Returns the extension configuration information found
* in the plugin manifest file of the data source extension
* that contains the specified data source element and
* implements the specified ODA extension point.
* @param dataSourceId the unique id of the data source element
* in a data source extension.
* @param extensionPoint the id of the extension point to search
* @return the extension manifest information,
* or null if no extension configuration is found.
* @throws OdaException if the extension manifest is invalid.
*/
public ExtensionManifest getExtensionManifest( String dataSourceId,
String extensionPoint )
throws OdaException
{
if ( dataSourceId == null || dataSourceId.length() == 0 )
throw new IllegalArgumentException( dataSourceId );
if ( extensionPoint == null || extensionPoint.length() == 0 )
throw new IllegalArgumentException( extensionPoint );
// first check if specified dataSourceId's manifest
// is already in cache, and use it
ExtensionManifest aManifest =
(ExtensionManifest) getCachedManifests().get( dataSourceId );
if( aManifest != null )
return aManifest;
IExtension[] extensions = getExtensions( extensionPoint );
IExtension dataSourceExtn = findExtension( dataSourceId, extensions );
if ( dataSourceExtn == null ) // not found
return null;
// found extension
return getExtensionManifest( dataSourceExtn );
}
/**
* Returns the extension configuration information found
* in the plugin manifest file for the specified data source
* extension.
* Applies the matching manifest from the cached collection,
* if exists. Otherwise, instantiates a new manifest, and saves in cache.
* @param dataSourceExtn data source extension object
* @return the extension manifest information
* @throws OdaException if the extension manifest is invalid
*/
private ExtensionManifest getExtensionManifest( IExtension dataSourceExtn )
throws OdaException
{
if( dataSourceExtn == null )
throw new OdaException(
new IllegalArgumentException( Messages.manifest_nullArgument ));
IConfigurationElement dataSourceElement =
getDataSourceElement( dataSourceExtn );
assert( dataSourceElement != null );
String dataSourceId = dataSourceElement.getAttribute( "id" ); //$NON-NLS-1$
// first check if specified extension's dataSourceId manifest
// is already in cache, and use it
ExtensionManifest aManifest =
(ExtensionManifest) getCachedManifests().get( dataSourceId );
if( aManifest != null )
return aManifest;
// validate and create its extension manifest
aManifest = new ExtensionManifest( dataSourceExtn );
// keep it in cached collection
getCachedManifests().put( dataSourceId, aManifest );
return aManifest;
}
/**
* Returns an array of DTP ODA dataSource extension configuration information
* found in corresponding plugin manifest file.
* Returns an empty array if there are no data source extensions found.
* Invalid data source extension definitions are ignored.
* @return an <code>ExtensionManifest</code> array containing
* the definition of all matching ODA data source extensions.
*/
public ExtensionManifest[] getExtensionManifests()
{
return getExtensionManifests( DTP_ODA_EXT_POINT );
}
/**
* Returns an array of ODA dataSource extension configuration information
* of those extensions that implement the specified extension point.
* Returns an empty array if there are no data source extensions found.
* Invalid data source extension definitions are ignored.
* @param extensionPoint name of an ODA data source extension point
* @return an <code>ExtensionManifest</code> array containing
* the definition of all matching ODA data source extensions.
*/
public ExtensionManifest[] getExtensionManifests( String extensionPoint )
{
// for backward compatibility, exclude those extensions
// that have no data set elements defined, and
// include deprecated extensions
Filter aFilter = createFilter();
aFilter.setMissingDataSetTypesFilter( true );
aFilter.setDeprecatedFilter( false );
return getExtensionManifests( extensionPoint, aFilter );
}
/**
* Returns an array of DTP ODA dataSource extension configuration information
* found in corresponding plugin manifest file.
* The argument specifies whether to include all matching extensions, regardless of
* whether it has defined no dataSet element, such as a driver adapter plugin.
* @param includesAllExtensions true to return all matching extensions,
* including those with no valid dataSet element defined;
* false to include only those matching extensions
* with at least one valid dataSet element defined
* @return an <code>ExtensionManifest</code> array containing
* the definition of all matching ODA data source extensions.
* @deprecated As of DTP 1.0, replaced by
* {@link #getExtensionManifests(String, org.eclipse.datatools.connectivity.oda.util.manifest.ManifestExplorer.Filter)}
*/
public ExtensionManifest[] getExtensionManifests( boolean includesAllExtensions )
{
return getExtensionManifests( DTP_ODA_EXT_POINT, includesAllExtensions );
}
/**
* Returns an array of ODA dataSource extension configuration information
* of those extensions that implement the specified extension point.
* The argument specifies whether to include all matching extensions, regardless of
* whether it has defined no dataSet element, such as a driver adapter plugin.
* @param extensionPoint name of an ODA data source extension point
* @param includesAllExtensions true to return all matching extensions,
* including those with no valid dataSet element defined;
* false to include only those matching extensions
* with at least one valid dataSet element defined
* @return an <code>ExtensionManifest</code> array containing
* the definition of all matching ODA data source extensions.
* @deprecated As of DTP 1.0, replaced by
* {@link #getExtensionManifests(String, org.eclipse.datatools.connectivity.oda.util.manifest.ManifestExplorer.Filter)}
*/
public ExtensionManifest[] getExtensionManifests( String extensionPoint,
boolean includesAllExtensions )
{
Filter aFilter = createFilter();
aFilter.setMissingDataSetTypesFilter( includesAllExtensions == false );
aFilter.setDeprecatedFilter( false );
return getExtensionManifests( extensionPoint, aFilter );
}
/**
* Returns an array of ODA dataSource extension configuration information
* of those extensions that implement the specified extension point and
* meet the filter criteria.
* @param extensionPoint name of an ODA data source extension point
* @param collectionFilter specifies the types of extensions to exclude in
* the returned collection;
* may be null if no filtering is needed
* @return an <code>ExtensionManifest</code> array containing
* the definition of all matching ODA data source extensions.
*/
public ExtensionManifest[] getExtensionManifests( String extensionPoint,
Filter collectionFilter )
{
IExtension[] extensions = getExtensions( extensionPoint );
int length = ( extensions == null ) ?
0 : extensions.length;
ArrayList manifestList = new ArrayList( length );
for( int i = 0; i < length; i++ )
{
IExtension dataSourceExtn = extensions[i];
try
{
ExtensionManifest manifest = getExtensionManifest( dataSourceExtn );
boolean includeExtension = true;
// applies filter options, if specified
if( collectionFilter != null )
{
/* excludes this extension manifest if the specified filter argument
* indicates to filter out those without a data set element
*/
if( collectionFilter.isMissingDataSetTypesFilterOn() &&
manifest.getDataSetTypeCount() <= 0 )
includeExtension = false;
/* excludes this extension manifest if the filter argument
* indicates to filter out deprecated extensions
*/
if( collectionFilter.isDeprecatedFilterOn() &&
manifest.isDeprecated() )
includeExtension = false;
}
if( includeExtension )
manifestList.add( manifest );
}
catch( OdaException ex )
{
getLogger().log( Level.WARNING, "Ignoring invalid extension.", ex ); //$NON-NLS-1$
}
}
int numOfValidExtensions = manifestList.size();
return (ExtensionManifest[])
manifestList.toArray( new ExtensionManifest[ numOfValidExtensions ] );
}
private IExtension findExtension( String dataSourceId, IExtension[] extensions )
throws OdaException
{
int length = ( extensions == null ) ?
0 : extensions.length;
for( int i = 0; i < length; i++ )
{
IExtension extension = extensions[i];
String extnDataSourceId = null;
try
{
/* Each odaDataSource extension should have only
* one dataSource element.
*/
IConfigurationElement dataSourceElement =
getDataSourceElement( extension );
extnDataSourceId = dataSourceElement.getAttribute( "id" ); //$NON-NLS-1$
}
catch( OdaException ex )
{
getLogger().log( Level.WARNING, "Ignoring invalid extension.", ex ); //$NON-NLS-1$
continue;
}
/* The first extension found with matching dataSourceId
* in its dataSource element is considered a match.
*/
if( extnDataSourceId != null &&
extnDataSourceId.equalsIgnoreCase( dataSourceId ) )
return extension;
}
return null;
}
private IExtension[] getDataSourceExtensions()
{
return getExtensions( DTP_ODA_EXT_POINT );
}
// Package static helper methods
/*
* Returns all the plugin extensions that implements the given
* extension point.
*/
public static IExtension[] getExtensions( String extPoint )
{
IExtensionRegistry pluginRegistry = Platform.getExtensionRegistry();
if( pluginRegistry == null ) // possible in web deployment
return null;
IExtensionPoint extensionPoint =
pluginRegistry.getExtensionPoint( extPoint );
if ( extensionPoint == null )
return null;
return extensionPoint.getExtensions();
}
/*
* Returns the dataSource element of the given data source extension.
*/
static IConfigurationElement getDataSourceElement( IExtension extension )
throws OdaException
{
return getNamedElement( extension, "dataSource" ); //$NON-NLS-1$
}
/**
* Returns the configuration element of the given extension
* and element name.
* <br>For internal use only.
*/
public static IConfigurationElement getNamedElement( IExtension extension,
String elementName )
throws OdaException
{
IConfigurationElement[] configElements =
getNamedElements( extension, elementName );
if( configElements.length == 0 )
throw new OdaException( Messages.manifest_NO_DRIVER_RUNTIME_CONFIGURATION_DEFINED );
return configElements[0]; // returns the first matching element
}
/**
* Returns a collection of configuration elements with the given name
* in the given extension.
* Validates that each element has an id attribute defined.
* @return a collection of matching configuration elements
* <br>For internal use only.
*/
public static IConfigurationElement[] getNamedElements(
IExtension extension,
String elementName )
throws OdaException
{
return getNamedElements( extension, elementName, "id" ); //$NON-NLS-1$
}
/**
* Returns a collection of configuration elements with the given name
* in the given extension.
* Validates that each element has the specified attribute defined.
* @return a collection of matching configuration elements
* <br>For internal use only.
*/
public static IConfigurationElement[] getNamedElements(
IExtension extension,
String elementName,
String requiredAttributeName )
throws OdaException
{
IConfigurationElement[] configElements = extension.getConfigurationElements();
ArrayList matchedElements = new ArrayList();
for( int i = 0, n = configElements.length; i < n; i++ )
{
IConfigurationElement configElement = configElements[i];
if( ! configElement.getName().equalsIgnoreCase( elementName ) )
continue;
// validate that the element has the required attribute with non-empty value
String attrValue = configElement.getAttribute( requiredAttributeName );
if( attrValue == null || attrValue.length() == 0 )
throw new OdaException(
Messages.bind( Messages.manifest_NO_ATTRIBUTE_ID_DEFINED,
requiredAttributeName, elementName ));
matchedElements.add( configElement );
}
return (IConfigurationElement[]) matchedElements.toArray(
new IConfigurationElement[ matchedElements.size() ] );
}
/*
* Returns a collection of dataSet elements of the given data source extension.
* May return an empty collection if no dataSet elements are defined.
*/
static Hashtable getDataSetElements( IExtension extension,
String dataSourceElementId )
throws OdaException
{
IConfigurationElement[] configElements =
getNamedElements( extension, "dataSet" ); //$NON-NLS-1$
Hashtable dataSetElements = new Hashtable();
int numConfigElements = configElements.length;
for( int i = 0; i < numConfigElements; i++ )
{
IConfigurationElement configElement = configElements[i];
String dataSetTypeId = configElement.getAttribute( "id" ); //$NON-NLS-1$
// if duplicated data set type ids exist in the extension,
// only the last one applies
dataSetElements.put( dataSetTypeId, new DataSetType( configElement ) );
}
if( dataSetElements.size() < 1 )
{
String msg = Messages.bind( Messages.manifest_NO_DATA_SET_TYPES_DEFINED,
dataSourceElementId );
if( numConfigElements >= 1 ) // defined elements are all invalid
throw new OdaException( msg );
// no dataSet elements are defined; ok to proceed
getLogger().log( Level.CONFIG, msg );
}
return dataSetElements;
}
/*
* Encapsulates the logic of finding the most appropriate
* display name to use for the given element.
*/
static String getElementDisplayName( IConfigurationElement dsElement )
{
String displayName = dsElement.getAttribute( "defaultDisplayName" ); //$NON-NLS-1$
// Default to its id or name, if no display name is specified
if ( displayName == null || displayName.length() == 0 )
{
displayName = dsElement.getAttribute( "name" ); //$NON-NLS-1$
if ( displayName == null ) // no such attribute
displayName = dsElement.getAttribute( "id" ); //$NON-NLS-1$
}
return displayName;
}
/**
* Converts the specified native data type code to
* its default ODA data type code,
* based on the data type mapping defined
* by the specified ODA data source and data set types.
* @param nativeTypeCode native type code specific to the ODA data source
* @param odaDataSourceId the ODA data source element id
* @param dataSetType the type of data set
* @return the converted ODA data type code,
* or java.sql.Types.NULL if no valid mapping is found
*/
public int getDefaultOdaDataTypeCode( int nativeTypeCode,
String odaDataSourceId, String dataSetType )
{
DataSetType setType = null;
try
{
ExtensionManifest manifest = getExtensionManifest( odaDataSourceId );
if( manifest == null )
return Types.NULL;
setType = manifest.getDataSetType( dataSetType );
}
catch( OdaException e )
{
// ignore
}
if( setType == null )
return Types.NULL;
return setType.getDefaultOdaDataTypeCode( nativeTypeCode );
}
/**
* Instantiates a new Filter object for the manifest explorer to apply when
* retrieving a collection of ODA data source extension manifests.
* @return a new Filter object
*/
public static Filter createFilter()
{
return getInstance().new Filter();
}
/**
* Filtering options for the manifest explorer to apply when
* retrieving a collection of ODA data source extension manifests.
*/
public class Filter
{
private boolean m_noDataSetTypes; // extensions with no data set types defined
private boolean m_deprecated; // deprecated extensions
Filter()
{
// do not exclude or filter out any extensions, by default
m_noDataSetTypes = false;
m_deprecated = false;
}
/**
* Specifies whether to exclude extensions with no data set types defined.
* @param exclude true to exclude, false otherwise.
*/
public void setMissingDataSetTypesFilter( boolean exclude )
{
m_noDataSetTypes = exclude;
}
/**
* Specifies whether to exclude deprecated extensions.
* @param exclude true to exclude, false otherwise.
*/
public void setDeprecatedFilter( boolean exclude )
{
m_deprecated = exclude;
}
/**
* Indicates whether to exclude extensions with no data set types defined.
*/
public boolean isMissingDataSetTypesFilterOn()
{
return m_noDataSetTypes;
}
/**
* Indicates whether to exclude deprecated extensions.
*/
public boolean isDeprecatedFilterOn()
{
return m_deprecated;
}
}
}

View File

@@ -1,279 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2006 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.util.manifest;
import java.util.ArrayList;
import java.util.Properties;
import org.eclipse.core.runtime.IConfigurationElement;
/**
* The definition of a property defined by an ODA data source extension or
* its supported data set definitions.
* <br>
* No validation is done on the attribute values;
* it is up to the consumer to process as appropriate.
*/
public class Property
{
private static final String VISIBILITY_LOCK = "lock"; //$NON-NLS-1$
private static final String VISIBILITY_CHANGE = "change"; //$NON-NLS-1$
private static final String VISIBILITY_HIDE = "hide"; //$NON-NLS-1$
private static final String LITERAL_TRUE = "true"; //$NON-NLS-1$
private static final String LITERAL_FALSE = "false"; //$NON-NLS-1$
private static final String NAME_ATTR = "name"; //$NON-NLS-1$
private static final String TYPE_ATTR = "type"; //$NON-NLS-1$
private static final String DEFAULT_VALUE_ATTR = "defaultValue"; //$NON-NLS-1$
private static final String ENCRYPTABLE_ATTR = "isEncryptable"; //$NON-NLS-1$
private static final String CAN_INHERIT_ATTR = "canInherit"; //$NON-NLS-1$
private static final String EMPTY_VALUE_TYPE_ATTR = "allowsEmptyValueAsNull"; //$NON-NLS-1$
private static final String CHOICE_ELEMENT = "choice"; //$NON-NLS-1$
private String m_name;
private String m_displayName;
private String m_groupName;
private String m_groupDisplayName;
private String m_type;
private boolean m_canInherit;
private String m_defaultValue;
private boolean m_isEncryptable;
private PropertyChoice[] m_choices = null;
private boolean m_allowsEmptyValueAsNull;
Property( IConfigurationElement propertyElement )
{
setAttributes( propertyElement, null, null );
}
Property( IConfigurationElement propertyElement,
String groupName, String groupDisplayName )
{
setAttributes( propertyElement, groupName, groupDisplayName );
}
private void setAttributes( IConfigurationElement propertyElement,
String groupName, String groupDisplayName )
{
// no validation is done; up to the consumer to process
m_name = propertyElement.getAttribute( NAME_ATTR );
m_displayName = ManifestExplorer.getElementDisplayName( propertyElement );
m_groupName = groupName;
m_groupDisplayName = groupDisplayName;
m_type = propertyElement.getAttribute( TYPE_ATTR );
if( m_type == null || m_type.length() == 0 ) // assign default
m_type = "string"; //$NON-NLS-1$
m_defaultValue = propertyElement.getAttribute( DEFAULT_VALUE_ATTR );
Boolean boolValue = convertBooleanValue(
propertyElement.getAttribute( ENCRYPTABLE_ATTR ) );
m_isEncryptable = ( boolValue != null ) ? boolValue.booleanValue() : false;
boolValue = convertBooleanValue(
propertyElement.getAttribute( CAN_INHERIT_ATTR ) );
m_canInherit = ( boolValue != null ) ? boolValue.booleanValue() : true;
boolValue = convertBooleanValue(
propertyElement.getAttribute( EMPTY_VALUE_TYPE_ATTR ) );
m_allowsEmptyValueAsNull = ( boolValue != null ) ? boolValue.booleanValue() : true;
// choice elements
IConfigurationElement[] choiceElements =
propertyElement.getChildren( CHOICE_ELEMENT );
int numChoices = choiceElements.length;
if ( numChoices <= 0 )
return; // done
ArrayList choices = new ArrayList( numChoices );
for( int i = 0; i < numChoices; i++ )
{
IConfigurationElement choiceElement = choiceElements[i];
choices.add( new PropertyChoice( choiceElement ) );
}
m_choices = (PropertyChoice[]) choices.toArray( new PropertyChoice[ numChoices ] );
}
private Boolean convertBooleanValue( String value )
{
if ( value == null || value.length() == 0 )
return null;
if ( value.equalsIgnoreCase( LITERAL_TRUE ) ||
value.equalsIgnoreCase( LITERAL_FALSE ) )
return Boolean.valueOf( value );
return null;
}
/**
* Returns the property name.
* @return property name
*/
public String getName()
{
return m_name;
}
/**
* Returns the display name of the extension-defined property.
* Defaults to property name if no display name is specified.
* @return The display name of the property
*/
public String getDisplayName()
{
return m_displayName;
}
/**
* If the property is defined in a group, returns
* the group's name. Returns null for top-level property.
* @return the group name of the property, if applicable.
*/
public String getGroupName()
{
return m_groupName;
}
/**
* If the property is defined in a group, returns
* the group's display name.
* Defaults to group name if no display name is specified.
* Returns null for top-level property.
* @return the group display name of the property, if applicable.
*/
public String getGroupDisplayName()
{
return m_groupDisplayName;
}
/**
* Returns the type of property. See the extension point
* schema for a list of valid type values.
* @return property type.
*/
public String getType()
{
return m_type;
}
/**
* Returns whether the property can inherit from parent.
* Defaults to true if none is specified.
* @return whether the property can inherit.
*/
public boolean canInherit()
{
return m_canInherit;
}
/**
* Returns the default value of the property.
* Could be null value.
* @return property default value.
*/
public String getDefaultValue()
{
return m_defaultValue;
}
/**
* Returns a flag indicating whether this property value should be encrypted
* in the persistent report design file.
* @return 'true' or 'false' value that indicates whether
* the property value should be encrypted.
*/
public boolean isEncryptable()
{
return m_isEncryptable;
}
/**
* Returns a flag that indicates whether an empty value of this property
* can be treated as a null value.
* @return 'true' or 'false' value that indicates whether
* this property value can be treated as a null value.
*/
public boolean allowsEmptyValueAsNull()
{
return m_allowsEmptyValueAsNull;
}
/**
* Returns the selection list of choices for the property value.
* An empty array is returned if no choices are specified.
* @return an array of PropertyChoice instances that
* represent the choice elements defined for the property.
*/
public PropertyChoice[] getChoices()
{
if ( m_choices == null )
{
m_choices = new PropertyChoice[ 0 ];
}
return m_choices;
}
/**
* Indicates whether this property should be visible
* per the definition specified in the properties element.
* @param propertiesVisibility the collection of property visibility
* defined for the element associated with
* this property
* @return true if property is defined to be visible;
* false otherwise
*/
public boolean isVisible( Properties propertiesVisibility )
{
String visibility =
getVisibility( getName(), propertiesVisibility );
if( visibility.equalsIgnoreCase( VISIBILITY_HIDE ) )
return false;
return true;
}
/**
* Indicates whether this property value should be editable,
* per the definition specified in the properties element.
* @param propertiesVisibility the collection of property visibility
* defined for the element associated with
* this property
* @return true if property is defined to be editable;
* false if the property value should be read only.
*/
public boolean isEditable( Properties propertiesVisibility )
{
String visibility =
getVisibility( getName(), propertiesVisibility );
if( visibility.equalsIgnoreCase( VISIBILITY_HIDE ) ||
visibility.equalsIgnoreCase( VISIBILITY_LOCK ) )
return false;
return true;
}
/**
* Finds the property visibility value.
*/
private String getVisibility( String propName,
Properties propertiesVisibility )
{
if( propertiesVisibility == null ||
propertiesVisibility.size() == 0 )
return VISIBILITY_CHANGE; // default
assert( propName != null );
return propertiesVisibility.getProperty(
propName, VISIBILITY_CHANGE );
}
}

View File

@@ -1,64 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.util.manifest;
import org.eclipse.core.runtime.IConfigurationElement;
/**
* A choice of property values for an extension-defined property.
*/
public class PropertyChoice
{
private String m_name;
private String m_displayName;
private String m_value;
PropertyChoice( IConfigurationElement choiceElement )
{
// no validation is done; up to the consumer to process
m_name = choiceElement.getAttribute( "name" ); //$NON-NLS-1$
m_displayName = ManifestExplorer.getElementDisplayName( choiceElement );
m_value = choiceElement.getAttribute( "value" ); //$NON-NLS-1$
}
/**
* Returns the name of the choice element.
* @return the name of the choice
*/
public String getName()
{
return m_name;
}
/**
* Returns the display name of the choice element.
* Defaults to the choice name if no display name is specified.
* @return the display name of the choice
*/
public String getDisplayName()
{
return m_displayName;
}
/**
* Returns the value of this choice of property values.
* @return the value of the choice.
*/
public String getValue()
{
return m_value;
}
}

View File

@@ -1,126 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2006 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.util.manifest;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.datatools.connectivity.oda.nls.Messages;
/**
* Represents a data source extension manifest's relationship element.
*/
class Relationship
{
static final String ELEMENT_NAME = "relationship"; //$NON-NLS-1$
static final String RELATED_ID_ATTRIBUTE_NAME = "relatedId"; //$NON-NLS-1$
static final String TYPE_ATTRIBUTE_NAME = "type"; //$NON-NLS-1$
// relationship types
static final int TYPE_REPLACED_BY_CODE = 1;
static final String[] sm_typeValues =
{
"none", //$NON-NLS-1$
"replacedBy" //$NON-NLS-1$
};
private int m_type;
private String m_relatedId;
/**
* Instantiates a Relationship object that represents the content
* of the relationship element in the specified parent element.
* @param relationshipParentElement configuration element that may contain
* a relationship element
* @return the relationship object, or null if none is defined or
* has an invalid element
*/
static Relationship createInstance( IConfigurationElement relationshipParentElement )
{
Relationship anInstance = new Relationship();
try
{
anInstance.init( relationshipParentElement );
}
catch( OdaException e )
{
// none or invalid relationship element, ignore and return null
return null;
}
return anInstance;
}
private Relationship()
{
}
private void init( IConfigurationElement parentElement )
throws OdaException
{
if( parentElement == null )
throw new OdaException(); // nothing to initialize
IConfigurationElement[] elements =
parentElement.getChildren( ELEMENT_NAME );
if( elements.length < 1 ) // no relationship element
throw new OdaException();
// expects one element only, use the first element found
IConfigurationElement relationshipElement = elements[0];
m_relatedId = relationshipElement.getAttribute( RELATED_ID_ATTRIBUTE_NAME );
if( m_relatedId == null || m_relatedId.length() == 0 )
throw new OdaException(
Messages.bind( Messages.manifest_NO_ATTRIBUTE_ID_DEFINED,
RELATED_ID_ATTRIBUTE_NAME, ELEMENT_NAME ));
setRelationshipType( relationshipElement.getAttribute( TYPE_ATTRIBUTE_NAME ) );
}
private void setRelationshipType( String typeAttributeValue )
throws OdaException
{
if( typeAttributeValue == null || typeAttributeValue.length() == 0 )
throw new OdaException();
for( int i = 1; i < sm_typeValues.length; i++ )
{
if( typeAttributeValue.equalsIgnoreCase( sm_typeValues[i] ) )
{
m_type = i;
return; // found a match, done with setting type value
}
}
// not a recognized type
throw new OdaException();
}
/**
* Indicates whether this extension is defined to be deprecated with
* a replacedBy relationship type.
*/
boolean isDeprecated()
{
return ( m_type == TYPE_REPLACED_BY_CODE );
}
/**
* Returns the related id.
*/
String getRelatedId()
{
return m_relatedId;
}
}

View File

@@ -1,64 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.util.manifest;
import java.io.IOException;
import java.net.URL;
/**
* Encapsulates the runtime interface specific configurations
* of an ODA driver that implements a data source extension.
*/
public abstract class RuntimeInterface
{
/**
* Implements C/C++ runtime interface.
*/
public static final int C_TYPE = 0;
/**
* Implements Java runtime interface.
*/
public static final int JAVA_TYPE = 1;
/**
* Returns the interface type of the runtime. Either RuntimeInterface.C_TYPE
* or RuntimeInterface.JAVA_TYPE.
* @return runtime interface type: RuntimeInterface.C_TYPE or
* RuntimeInterface.JAVA_TYPE.
*/
public abstract int getInterfaceType();
/**
* Returns the library location for the current OS platform.
* @return the library location URL.
* @throws IOException if an IO error occurs.
*/
public abstract URL getLibraryLocation() throws IOException;
/**
* Returns the driver file location for the current OS platform.
* @param filename the name of the driver file.
* @return the driver file location URL.
* @throws IOException if an IO error occurs.
*/
public abstract URL getDriverFileLocation( String filename ) throws IOException;
/**
* Returns the list of libraries for the current OS platform.
* @return the list of libraries.
*/
public abstract String[] getLibraries();
}

View File

@@ -1,141 +0,0 @@
/*
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*/
package org.eclipse.datatools.connectivity.oda.util.manifest;
import java.util.HashMap;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.datatools.connectivity.oda.util.logging.Level;
/**
* Configuration of the driver's trace logging settings
* for a data source extension.
*/
public class TraceLogging
{
private int m_logLevel;
private String m_logFileNamePrefix;
private String m_logDirectory;
private String m_logFormatterClass;
private static HashMap sm_logLevelLiterals = null;
TraceLogging( IConfigurationElement traceLogging, String dataSourceElementId ) throws OdaException
{
String logLevelString = traceLogging.getAttribute( "logLevel" ); //$NON-NLS-1$
m_logLevel = toLogLevelNumber( logLevelString );
m_logFileNamePrefix = traceLogging.getAttribute( "logFileNamePrefix" ); //$NON-NLS-1$
m_logDirectory = traceLogging.getAttribute( "logDirectory" ); //$NON-NLS-1$
m_logFormatterClass = traceLogging.getAttribute( "logFormatterClass" ); //$NON-NLS-1$
}
/**
* Returns the value for the driver's log level,
* as defined in the ODA data source extension point schema.
* @return the log level.
*/
public int getLogLevel()
{
return m_logLevel;
}
/**
* Returns the string prefix for driver's log file names.
* @return the log file name prefix.
*/
public String getLogFileNamePrefix()
{
return m_logFileNamePrefix;
}
/**
* Returns the optional directory for log files.
* @return the log directory, or null if a log directory was not specified.
*/
public String getLogDirectory()
{
return m_logDirectory;
}
/**
* Returns the full class name of a concrete log formatter implementation,
* suitable for use by the driver-specific logging utility.
* @return the fully qualified class name for the log formatter class, or
* null if the class was not specified.
*/
public String getLogFormatterClass()
{
return m_logFormatterClass;
}
/**
* Converts a string that represents a log level name or
* numeric value to a number.
* Returns the default WARNING log level if given string value is null or
* not valid.
* @param logLevelName A string that represents a log level name or numeric value.
* @return A log level number.
*/
static public int toLogLevelNumber( String logLevelName )
{
int defaultLogLevel = Level.WARNING;
if( logLevelName == null || logLevelName.length() == 0 )
return defaultLogLevel;
// first check if given string value is a pre-defined log level name or number
Integer mappedLevel = (Integer) getLogLevelLiterals().get( logLevelName );
if( mappedLevel != null ) // found a match
return mappedLevel.intValue();
// could be numeric string value, try to convert to number
try
{
int logLevel = Short.parseShort( logLevelName );
if( logLevel > Level.SEVERE )
logLevel = Level.OFF;
return logLevel;
}
catch( NumberFormatException ex )
{
return defaultLogLevel;
}
}
static private HashMap getLogLevelLiterals()
{
if( sm_logLevelLiterals != null )
return sm_logLevelLiterals;
sm_logLevelLiterals = new HashMap( 18, 1 );
sm_logLevelLiterals.put( "SEVERE", new Integer( Level.SEVERE ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "1000", new Integer( Level.SEVERE ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "WARNING", new Integer( Level.WARNING ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "900", new Integer( Level.WARNING ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "INFO", new Integer( Level.INFO ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "800", new Integer( Level.INFO ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "CONFIG", new Integer( Level.CONFIG ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "700", new Integer( Level.CONFIG ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "FINE", new Integer( Level.FINE ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "500", new Integer( Level.FINE ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "FINER", new Integer( Level.FINER ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "400", new Integer( Level.FINER ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "FINEST", new Integer( Level.FINEST ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "300", new Integer( Level.FINEST ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "ALL", new Integer( Level.ALL ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "0", new Integer( Level.ALL ) ); //$NON-NLS-1$
sm_logLevelLiterals.put( "OFF", new Integer( Level.OFF ) ); //$NON-NLS-1$
return sm_logLevelLiterals;
}
}

View File

@@ -1,43 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!--
*************************************************************************
* Copyright (c) 2004, 2006 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="white">
[<b>Provisional</b>] Provides a utility component for accessing the content of an
ODA data source extension's manifest.
<br>
It can be used by an ODA consumer and/or a data provider
to discover the plug-in extension configuration.
<p>
The utility's initial entry point is the singleton <code>ManifestExplorer</code>.
It provides the service to explore all the static
ODA data source extensions, and access to each
extension's configuration information specified
in its plug-in manifest file.
<br>
The content of such ODA data source extension configuration
is encapsulated in an <code>ExtensionManifest</code> and its
associated objects.
<!-- Put @see and @since tags down here. -->
@since 2.0
</body>
</html>

View File

@@ -1,33 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!--
*************************************************************************
* Copyright (c) 2004, 2006 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="white">
[<b>Provisional</b>] Provides utility components for the development of Open Data Access (ODA)
consumers and providers. This package includes functionalities that
are commonly needed by both ODA providers and consumers, such as
accessing the content of an ODA data source extension's manifest,
and a string substitution utility.
<!-- Put @see and @since tags down here. -->
@since 1.0
</body>
</html>

View File

@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@@ -1,5 +0,0 @@
bin
download
*.jar
*.zip
utestreports

View File

@@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.eclipse.datatools.enablement.oda.xml</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@@ -1,20 +0,0 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: DTP ODA-XML Driver
Bundle-SymbolicName: org.eclipse.datatools.enablement.oda.xml;singleton:=true
Bundle-Version: 1.0.0.200610021
Bundle-ClassPath: .
Bundle-Vendor: Eclipse.org
Bundle-Localization: plugin
Require-Bundle: org.eclipse.datatools.connectivity.oda;bundle-version="3.0.1";visibility:=reexport,
org.eclipse.jface,
org.apache.xerces,
org.eclipse.xsd;bundle-version="2.6.0",
org.talend.libraries.apache;bundle-version="1.0.0"
Eclipse-LazyStart: true
Export-Package: org.eclipse.datatools.enablement.oda.xml;x-internal:=false,
org.eclipse.datatools.enablement.oda.xml.i18n;x-friends:="org.eclipse.birt.report.data.oda.xml",
org.eclipse.datatools.enablement.oda.xml.impl;x-friends:="org.eclipse.birt.report.data.oda.xml,org.eclipse.datatools.enablement.oda.xml.ui,org.eclipse.datatools.enablement.oda.xml.tests",
org.eclipse.datatools.enablement.oda.xml.util;x-friends:="org.eclipse.birt.report.data.oda.xml,org.eclipse.datatools.enablement.oda.xml.ui,org.eclipse.datatools.enablement.oda.xml.tests",
org.eclipse.datatools.enablement.oda.xml.util.date;x-friends:="org.eclipse.birt.report.data.oda.xml,org.eclipse.datatools.enablement.oda.xml.tests",
org.eclipse.datatools.enablement.oda.xml.util.ui;x-friends:="org.eclipse.birt.report.data.oda.xml,org.eclipse.datatools.enablement.oda.xml.ui,org.eclipse.datatools.enablement.oda.xml.tests"

View File

@@ -1,52 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>About</title>
</head>
<body lang="EN-US">
<h2>About This Content</h2>
<p>June 28, 2006</p>
<h3>License</h3>
<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
indicated below, the Content is provided to you under the terms and conditions of the
Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
apply to your use of any object code in the Content. Check the Redistributor's license that was
provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
indicated below, the terms and conditions of the EPL still apply to any source code in the Content
and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.</p>
<h3>Third Party Content</h3>
<p>The Content includes items that have been sourced from third parties as set out below. If you
did not receive this Content directly from the Eclipse Foundation, the following is provided
for informational purposes only, and you should look to the Redistributor&rsquo;s license for
terms and conditions of use.</p>
<h4> Xerces2 Java Parser 2.6.2</strong></h4>
The plug-in is accompanied by software developed by the Apache Software Foundation at
<a href="http://xerces.apache.org/xerces2-j/">http://xerces.apache.org/xerces2-j/</a>.
The binary code of Xerces2 Java Parser 2.6.2 (&quot;Xerces&quot;) is included with the plug-in without modification
in the following files:</p>
<ul>
<li>lib/resolver.jar</li>
<li>lib/xercesImpl.jar</li>
<li>lib/xml-apis.jar</li>
</ul>
<p>Your use of Xerces is subject to the terms and conditions of the Apache License, Version 2.0 (&quot;Apache License&quot;).
A copy of the Apache License can be found in <a href="about_files/LICENSE-2.0.txt">about_files/LICENSE-2.0.txt</a>
and is also available at <a href="http://www.apache.org/licenses/LICENSE-2.0.html">http://www.apache.org/licenses/LICENSE-2.0.html</a>.</p>
</body>
</html>

View File

@@ -1,25 +0,0 @@
#
#*************************************************************************
# Copyright (c) 2004, 2006 Actuate Corporation.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Actuate Corporation - initial API and implementation
#
#*************************************************************************
#
# $Id: build.properties,v 1.2 2006/09/30 01:17:57 lchan Exp $
#
bin.includes = about.html,\
plugin.xml,\
META-INF/,\
lib/,\
.,\
plugin.properties,\
about_files/
download.dir = ./download/
source.. = src/
output.. = bin/

View File

@@ -1,6 +0,0 @@
fix bug 0003796: tfileinputXML choose wrong DTD-Path
see http://www.talendforge.org/bugs/view.php?id=3796
modify SchemaPopulationUtil.getSchemaTree and SaxParser
use method public void parse (String systemId) in XMLReader instead of public void parse (InputSource input)
because it cannot load the dtd file with relative path

View File

@@ -1,20 +0,0 @@
###############################################################################
# Copyright (c) 2004,2005 Actuate Corporation.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Actuate Corporation - initial API and implementation
###############################################################################
###############################################################################
# NLS String
###############################################################################
datasource.name=DTP XML Data Source
dataset.name=DTP XML Data Set
datasource.property.xmlFile=XML Data Source File
datasource.property.schemaFile=XML Schema File

View File

@@ -1,134 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension
point="org.eclipse.datatools.connectivity.oda.dataSource">
<dataSet
defaultDisplayName="%dataset.name"
id="org.eclipse.datatools.enablement.oda.xml.dataSet">
<properties>
<propertyGroup
defaultDisplayName="Dataset Properties"
name="dateset properties">
<property
type="string"
defaultDisplayName="max row"
canInherit="true"
name="MAX_ROW"/>
<property
type="string"
defaultDisplayName="xml file"
canInherit="true"
name="XML_FILE"/>
</propertyGroup>
<propertyVisibility name="queryText" visibility="hide"/>
<propertyVisibility name="MAX_ROW" visibility="hide"/>
<propertyVisibility name="XML_FILE" visibility="hide"/>
</properties>
<dataTypeMapping
nativeDataType="BIT"
nativeDataTypeCode="-7"
odaScalarDataType="Integer"/>
<dataTypeMapping
nativeDataType="TINYINT"
nativeDataTypeCode="-6"
odaScalarDataType="Integer"/>
<dataTypeMapping
nativeDataType="SMALLINT"
nativeDataTypeCode="5"
odaScalarDataType="Integer"/>
<dataTypeMapping
nativeDataType="INTEGER"
nativeDataTypeCode="4"
odaScalarDataType="Integer"/>
<dataTypeMapping
nativeDataType="BIGINT"
nativeDataTypeCode="-5"
odaScalarDataType="Decimal"/>
<dataTypeMapping
nativeDataType="FLOAT"
nativeDataTypeCode="6"
odaScalarDataType="Double"/>
<dataTypeMapping
nativeDataType="REAL"
nativeDataTypeCode="7"
odaScalarDataType="Double"/>
<dataTypeMapping
nativeDataType="DOUBLE"
nativeDataTypeCode="8"
odaScalarDataType="Double"/>
<dataTypeMapping
nativeDataType="NUMERIC"
nativeDataTypeCode="2"
odaScalarDataType="Decimal"/>
<dataTypeMapping
nativeDataType="DECIMAL"
nativeDataTypeCode="3"
odaScalarDataType="Decimal"/>
<dataTypeMapping
nativeDataType="CHAR"
nativeDataTypeCode="1"
odaScalarDataType="String"/>
<dataTypeMapping
nativeDataType="VARCHAR"
nativeDataTypeCode="12"
odaScalarDataType="String"/>
<dataTypeMapping
nativeDataType="LONGVARCHAR"
nativeDataTypeCode="-1"
odaScalarDataType="String"/>
<dataTypeMapping
nativeDataType="DATE"
nativeDataTypeCode="91"
odaScalarDataType="Date"/>
<dataTypeMapping
nativeDataType="TIME"
nativeDataTypeCode="92"
odaScalarDataType="Time"/>
<dataTypeMapping
nativeDataType="TIMESTAMP"
nativeDataTypeCode="93"
odaScalarDataType="Timestamp"/>
<dataTypeMapping
nativeDataType="BINARY"
nativeDataTypeCode="-2"
odaScalarDataType="String"/>
<dataTypeMapping
nativeDataType="VARBINARY"
nativeDataTypeCode="-3"
odaScalarDataType="String"/>
<dataTypeMapping
nativeDataType="LONGVARBINARY"
nativeDataTypeCode="-4"
odaScalarDataType="String"/>
<dataTypeMapping
nativeDataType="BOOLEAN"
nativeDataTypeCode="16"
odaScalarDataType="Integer"/>
</dataSet>
<dataSource
odaVersion="3.0.0"
driverClass="org.eclipse.datatools.enablement.oda.xml.impl.Driver"
defaultDisplayName="%datasource.name"
id="org.eclipse.datatools.enablement.oda.xml"
setThreadContextClassLoader="false">
<properties>
<propertyGroup
defaultDisplayName="Connection Properties"
name="connectionProperties">
<property
type="string"
defaultDisplayName="%datasource.property.xmlFile"
canInherit="true"
name="FILELIST"/>
<property
type="string"
defaultDisplayName="%datasource.property.schemaFile"
canInherit="true"
name="SCHEMAFILELIST"/>
</propertyGroup>
</properties>
</dataSource>
</extension>
</plugin>

View File

@@ -1,36 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml;
import org.eclipse.datatools.enablement.oda.xml.i18n.Messages;
/**
* This class hosts all constants used in xml driver.
*/
public final class Constants
{
private Constants()
{}
public static final int DATA_SOURCE_MAJOR_VERSION = 1;
public static final int DATA_SOURCE_MINOR_VERSION = 0;
public static final String DATA_SOURCE_PRODUCT_NAME = Messages.getString("Constants.DriverName");
public static final int CACHED_RESULT_SET_LENGTH = 10000;
public static final String APPCONTEXT_INPUTSTREAM = "org.eclipse.datatools.enablement.oda.xml.inputStream";
public static final String APPCONTEXT_CLOSEINPUTSTREAM = "org.eclipse.datatools.enablement.oda.xml.closeInputStream";
//The connection proporty that is used to give the relation information string
//to the driver.
public static final String CONST_PROP_RELATIONINFORMATION = "RELATIONINFORMATION";
//The connection property that gives the file name(s).Currently we only
//support single file.
public static final String CONST_PROP_FILELIST = "FILELIST";
}

View File

@@ -1,43 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml.i18n;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
/**
*
*/
public class Messages
{
private static final String BUNDLE_NAME = "org.eclipse.datatools.enablement.oda.xml.i18n.messages"; //$NON-NLS-1$
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
private Messages( )
{
}
public static String getString( String key )
{
// TODO Auto-generated method stub
try
{
return RESOURCE_BUNDLE.getString( key );
}
catch ( MissingResourceException e )
{
return '!' + key + '!';
}
}
}

View File

@@ -1,10 +0,0 @@
Connection.PropertiesMissing=Some connection properties are missing.
Connection.InvalidAppContext=Invalid AppContext.
Constants.DriverName=DTP ODA XML Driver
ResultSet.ResultSetClosed=ResultSet is closed.
Query.QueryHasNotBeenPrepared=The query has not been prepared yet.
Query.ResultSetClosed=ResultSet is closed.
Query.InvalidQueryText=The query text is invalid.
RelationInformation.InputStringCannotBeNull=The input string cannot be null or blank.
RelationInformation.InvalidDataTypeName=The provided data type name is invalid.
DateUtil.ConvertFails=Convert to date fails. Source:

View File

@@ -1,16 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<body bgcolor="white">
[<b>Non-API</b>] DTP XML Driver - an ODA run-time extension.
<p>
Note: <i>The implementation classes are <b>not</b> public APIs.
<br>Backward compatibility support in future releases is not guaranteed.</i>
<h2>Package Specification</h2>
The DTP ODA XML driver is a driver that can be used to parse XML files.
This internal package is used for internationalization purpose.
</body>
</html>

View File

@@ -1,175 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml.impl;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
import java.util.Properties;
import org.eclipse.datatools.connectivity.oda.IConnection;
import org.eclipse.datatools.connectivity.oda.IDataSetMetaData;
import org.eclipse.datatools.connectivity.oda.IQuery;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.datatools.enablement.oda.xml.Constants;
import org.eclipse.datatools.enablement.oda.xml.i18n.Messages;
import org.eclipse.datatools.enablement.oda.xml.util.XMLDataInputStreamCreator;
/**
* This class is used to build an XML data source connection.
*/
public class Connection implements IConnection
{
//The file which server as data source.
private XMLDataInputStreamCreator is;
//The boolean indicate whether the connection is open.
private boolean isOpen;
private Map appContext;
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IConnection#open(java.util.Properties)
*/
public void open( Properties connProperties )
throws org.eclipse.datatools.connectivity.oda.OdaException
{
if( isOpen == true )
return;
String file = (String) connProperties.get( Constants.CONST_PROP_FILELIST );
if ( appContext != null
&& appContext.get( Constants.APPCONTEXT_INPUTSTREAM ) != null
&& appContext.get( Constants.APPCONTEXT_INPUTSTREAM ) instanceof InputStream )
is = XMLDataInputStreamCreator.getCreator( (InputStream) appContext.get( Constants.APPCONTEXT_INPUTSTREAM ) );
else if ( file != null )
is = XMLDataInputStreamCreator.getCreator( file );
else
throw new OdaException( Messages.getString( "Connection.PropertiesMissing" ) );
isOpen = true;
}
/*
* (non-Javadoc)
*
* @see org.eclipse.datatools.connectivity.oda.IConnection#close()
*/
public void close( )
throws org.eclipse.datatools.connectivity.oda.OdaException
{
isOpen = false;
try
{
if(appContext != null && appContext.get(Constants.APPCONTEXT_INPUTSTREAM)!= null)
{
Object closeInputStream = appContext.get(Constants.APPCONTEXT_CLOSEINPUTSTREAM);
if( closeInputStream != null )
{
if( closeInputStream.toString().equalsIgnoreCase("true"))
closeInputStreamFromAppContext( );
}
}
}
catch ( IOException e )
{
// TODO Auto-generated catch block
e.printStackTrace();
}
this.appContext = null;
}
/**
* @throws IOException
*/
private void closeInputStreamFromAppContext( ) throws IOException
{
((InputStream) appContext.get( Constants.APPCONTEXT_INPUTSTREAM )).close( );
}
/*
* (non-Javadoc)
*
* @see org.eclipse.datatools.connectivity.oda.IConnection#isOpen()
*/
public boolean isOpen( )
throws OdaException
{
return isOpen;
}
/*
* (non-Javadoc)
*
* @see org.eclipse.datatools.connectivity.oda.IConnection#setAppContext(java.lang.Object)
*/
public void setAppContext( Object context ) throws OdaException
{
if( !( context instanceof Map ) )
throw new OdaException( Messages.getString("Connection.InvalidAppContext") );
this.appContext = (Map)context;
}
/*
* (non-Javadoc)
*
* @see org.eclipse.datatools.connectivity.oda.IConnection#getMetaData(java.lang.String)
*/
public IDataSetMetaData getMetaData( String dataSetType )
throws OdaException
{
return new DataSetMetaData( this );
}
/*
* (non-Javadoc)
*
* @see org.eclipse.datatools.connectivity.oda.IConnection#newQuery(java.lang.String)
*/
public IQuery newQuery( String dataSetType ) throws OdaException
{
return new Query( this.is );
}
/*
* (non-Javadoc)
*
* @see org.eclipse.datatools.connectivity.oda.IConnection#getMaxQueries()
*/
public int getMaxQueries( ) throws OdaException
{
return 0;
}
/*
* (non-Javadoc)
*
* @see org.eclipse.datatools.connectivity.oda.IConnection#commit()
*/
public void commit( ) throws OdaException
{
throw new UnsupportedOperationException( );
}
/*
* (non-Javadoc)
*
* @see org.eclipse.datatools.connectivity.oda.IConnection#rollback()
*/
public void rollback( ) throws OdaException
{
throw new UnsupportedOperationException( );
}
}

View File

@@ -1,164 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml.impl;
import org.eclipse.datatools.connectivity.oda.IConnection;
import org.eclipse.datatools.connectivity.oda.IDataSetMetaData;
import org.eclipse.datatools.connectivity.oda.IResultSet;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.datatools.enablement.oda.xml.Constants;
/**
* This class descript the meta data information of xml driver.
*
*/
public class DataSetMetaData implements IDataSetMetaData
{
//
private IConnection connection = null;
/**
*
* @param connection
*/
public DataSetMetaData( Connection connection )
{
this.connection = connection;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getConnection()
*/
public IConnection getConnection( ) throws OdaException
{
return this.connection;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getDataSourceObjects(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
*/
public IResultSet getDataSourceObjects( String catalog, String schema,
String object, String version ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getDataSourceMajorVersion()
*/
public int getDataSourceMajorVersion( ) throws OdaException
{
return Constants.DATA_SOURCE_MAJOR_VERSION;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getDataSourceMinorVersion()
*/
public int getDataSourceMinorVersion( ) throws OdaException
{
return Constants.DATA_SOURCE_MINOR_VERSION;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getDataSourceProductName()
*/
public String getDataSourceProductName( ) throws OdaException
{
return Constants.DATA_SOURCE_PRODUCT_NAME;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getDataSourceProductVersion()
*/
public String getDataSourceProductVersion( ) throws OdaException
{
return String.valueOf(this.getDataSourceMajorVersion()) + "." +
String.valueOf(this.getDataSourceMinorVersion());
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getSQLStateType()
*/
public int getSQLStateType( ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#supportsMultipleResultSets()
*/
public boolean supportsMultipleResultSets( ) throws OdaException
{
return false;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#supportsMultipleOpenResults()
*/
public boolean supportsMultipleOpenResults( ) throws OdaException
{
return false;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#supportsNamedResultSets()
*/
public boolean supportsNamedResultSets( ) throws OdaException
{
return false;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#supportsNamedParameters()
*/
public boolean supportsNamedParameters( ) throws OdaException
{
return false;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#supportsInParameters()
*/
public boolean supportsInParameters( ) throws OdaException
{
return false;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#supportsOutParameters()
*/
public boolean supportsOutParameters( ) throws OdaException
{
return false;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDataSetMetaData#getSortMode()
*/
public int getSortMode( )
{
throw new UnsupportedOperationException ();
}
}

View File

@@ -1,60 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml.impl;
import org.eclipse.datatools.connectivity.oda.IConnection;
import org.eclipse.datatools.connectivity.oda.IDriver;
import org.eclipse.datatools.connectivity.oda.LogConfiguration;
import org.eclipse.datatools.connectivity.oda.OdaException;
/**
* This class implements IDriver interface.
*/
public class Driver implements IDriver
{
/**
*
*/
public IConnection getConnection( String dataSourceId ) throws OdaException
{
return new Connection();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDriver#setLogConfiguration(org.eclipse.datatools.connectivity.oda.LogConfiguration)
*/
public void setLogConfiguration( LogConfiguration logConfig )
throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDriver#getMaxConnections()
*/
public int getMaxConnections( ) throws OdaException
{
// TODO Auto-generated method stub
return 0;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IDriver#setAppContext(java.lang.Object)
*/
public void setAppContext( Object context ) throws OdaException
{
throw new UnsupportedOperationException ();
}
}

View File

@@ -1,355 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml.impl;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
import org.eclipse.datatools.connectivity.oda.IParameterMetaData;
import org.eclipse.datatools.connectivity.oda.IQuery;
import org.eclipse.datatools.connectivity.oda.IResultSet;
import org.eclipse.datatools.connectivity.oda.IResultSetMetaData;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.datatools.connectivity.oda.SortSpec;
import org.eclipse.datatools.enablement.oda.xml.i18n.Messages;
import org.eclipse.datatools.enablement.oda.xml.util.RelationInformation;
import org.eclipse.datatools.enablement.oda.xml.util.XMLDataInputStreamCreator;
/**
* This class implements IQuery interface.
*/
public class Query implements IQuery
{
public static final String QUERYTEXT_TABLE_NAME_DEFN_DELIMITER = "#-TNAME-#";
//The RelationInformation
private RelationInformation relationInformation;
//The name of the XML table that will be prepared
private String tableName;
//The max rows of result set created by this query that might returned
private int maxRows;
// indicate whether the result set has been closed.
private boolean isClosed;
private XMLDataInputStreamCreator xmlDataInputStreamCreator;
/**
*
* @param file
* @param ri
*/
public Query( XMLDataInputStreamCreator creator )
{
tableName = null;
maxRows = 0;
isClosed = false;
xmlDataInputStreamCreator = creator;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#prepare(java.lang.String)
*/
public void prepare( String queryText ) throws OdaException
{
testClosed();
if ( queryText == null )
throw new org.eclipse.datatools.connectivity.oda.OdaException( Messages.getString("Query.InvalidQueryText") ); //$NON-NLS-1$
String[] temp = queryText.split(QUERYTEXT_TABLE_NAME_DEFN_DELIMITER);
assert temp.length == 2;
if ( temp.length != 2 )
throw new org.eclipse.datatools.connectivity.oda.OdaException( Messages.getString("Query.InvalidQueryText") ); //$NON-NLS-1$
this.tableName = temp[0];
this.relationInformation = new RelationInformation( temp[1] );
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setProperty(java.lang.String, java.lang.String)
*/
public void setProperty( String name, String value ) throws OdaException
{
//Do nothing.
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#close()
*/
public void close( ) throws OdaException
{
this.isClosed = true;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setMaxRows(int)
*/
public void setMaxRows( int max ) throws OdaException
{
testClosed();
this.maxRows = max > 0 ? max:0;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#getMaxRows()
*/
public int getMaxRows( ) throws OdaException
{
testClosed();
return this.maxRows;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#getMetaData()
*/
public IResultSetMetaData getMetaData( ) throws OdaException
{
testClosed();
return new ResultSetMetaData( relationInformation, tableName);
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#executeQuery()
*/
public IResultSet executeQuery( ) throws OdaException
{
testClosed( );
if ( this.tableName == null || this.tableName.trim( ).length( ) == 0 )
throw new OdaException( Messages.getString( "Query.QueryHasNotBeenPrepared" ) ); //$NON-NLS-1$
ResultSet result = new ResultSet( xmlDataInputStreamCreator.createXMLDataInputStream( ),
relationInformation,
tableName,
this.getMaxRows( ));
return result;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#clearInParameters()
*/
public void clearInParameters( ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setInt(java.lang.String, int)
*/
public void setInt( String parameterName, int value ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setInt(int, int)
*/
public void setInt( int parameterId, int value ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setDouble(java.lang.String, double)
*/
public void setDouble( String parameterName, double value )
throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setDouble(int, double)
*/
public void setDouble( int parameterId, double value ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setBigDecimal(java.lang.String, java.math.BigDecimal)
*/
public void setBigDecimal( String parameterName, BigDecimal value )
throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setBigDecimal(int, java.math.BigDecimal)
*/
public void setBigDecimal( int parameterId, BigDecimal value )
throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setString(java.lang.String, java.lang.String)
*/
public void setString( String parameterName, String value )
throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setString(int, java.lang.String)
*/
public void setString( int parameterId, String value ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setDate(java.lang.String, java.sql.Date)
*/
public void setDate( String parameterName, Date value ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setDate(int, java.sql.Date)
*/
public void setDate( int parameterId, Date value ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setTime(java.lang.String, java.sql.Time)
*/
public void setTime( String parameterName, Time value ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setTime(int, java.sql.Time)
*/
public void setTime( int parameterId, Time value ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setTimestamp(java.lang.String, java.sql.Timestamp)
*/
public void setTimestamp( String parameterName, Timestamp value )
throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setTimestamp(int, java.sql.Timestamp)
*/
public void setTimestamp( int parameterId, Timestamp value )
throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#findInParameter(java.lang.String)
*/
public int findInParameter( String parameterName ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#getParameterMetaData()
*/
public IParameterMetaData getParameterMetaData( ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setSortSpec(org.eclipse.datatools.connectivity.oda.SortSpec)
*/
public void setSortSpec( SortSpec sortBy ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#getSortSpec()
*/
public SortSpec getSortSpec( ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/**
* Get the RelationInformation of this Query.
* @return
*/
RelationInformation getRelationInformation()
{
return this.relationInformation;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IQuery#setAppContext(java.lang.Object)
*/
public void setAppContext( Object context ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/**
* If the result set is closed then throw an OdaException. This method is invoked
* before an method defined in IResultSet is called.
*
* @throws OdaException
*/
private void testClosed() throws OdaException
{
if( isClosed )
throw new OdaException( Messages.getString("Query.ResultSetClosed")); //$NON-NLS-1$
}
}

View File

@@ -1,526 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml.impl;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
import org.eclipse.datatools.enablement.oda.xml.i18n.Messages;
import org.eclipse.datatools.enablement.oda.xml.util.RelationInformation;
import org.eclipse.datatools.enablement.oda.xml.util.SaxParserConsumer;
import org.eclipse.datatools.enablement.oda.xml.util.XMLDataInputStream;
import org.eclipse.datatools.enablement.oda.xml.util.date.DateUtil;
import org.eclipse.datatools.connectivity.oda.IBlob;
import org.eclipse.datatools.connectivity.oda.IClob;
import org.eclipse.datatools.connectivity.oda.IResultSet;
import org.eclipse.datatools.connectivity.oda.IResultSetMetaData;
import org.eclipse.datatools.connectivity.oda.OdaException;
/**
* This class implement IResultSet class
*/
public class ResultSet implements IResultSet
{
//The ResultSetMetaData of this resultSet.
private ResultSetMetaData rsMetaData;
//the max number of rows can be fetched from this result set.
private int maxRows;
//indicate whether the last getX() returns null.
private boolean wasNull;
//indicate whether the result set has been closed.
private boolean isClosed;
//The ISaxParserConsumer class used to help populating the data.
private SaxParserConsumer spConsumer;
/**
*
* @param fileName
* @param ri
* @param tableName
* @throws OdaException
*/
public ResultSet( XMLDataInputStream is, RelationInformation ri, String tableName, int maxRows )
throws OdaException
{
this.rsMetaData = new ResultSetMetaData( ri, tableName );
this.maxRows = maxRows;
isClosed = false;
spConsumer = new SaxParserConsumer( this, ri, is, tableName );
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getMetaData()
*/
public IResultSetMetaData getMetaData( ) throws OdaException
{
testClosed();
return rsMetaData;
}
/**
* If the result set is closed then throw an OdaException. This method is invoked
* before an method defined in IResultSet is called.
*
* @throws OdaException
*/
private void testClosed() throws OdaException
{
if( isClosed )
throw new OdaException( Messages.getString("ResultSet.ResultSetClosed")); //$NON-NLS-1$
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#close()
*/
public void close( ) throws OdaException
{
this.spConsumer.close();
this.rsMetaData = null;
this.isClosed = true;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#setMaxRows(int)
*/
public void setMaxRows( int max ) throws OdaException
{
testClosed();
this.maxRows = max;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#next()
*/
public boolean next( ) throws OdaException
{
testClosed();
//If the row number exceeds the defined maxRows then return false;
if ( spConsumer.getCurrentRowNo() >= maxRows && maxRows != 0 )
{
return false;
}
return spConsumer.next();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getRow()
*/
public int getRow( ) throws OdaException
{
testClosed();
return spConsumer.getCurrentRowNo();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getString(int)
*/
public String getString( int index ) throws OdaException
{
testClosed();
String result = spConsumer.getResultSet()[getRowPosition( )][getColumnPosition( index )];
this.wasNull = result == null ? true : false;
return result;
}
/**
* Transform 1-based column index to 0-based column position in the array.
* @param index
* @return
*/
private int getColumnPosition( int index )
{
return index - 1;
}
/**
* Transform the 1-based row number to 0-based row position in the array
* @return
*/
private int getRowPosition( )
{
return spConsumer.getRowPosition();
}
/**
* Return the index of a column
*
* @param columnName
* @return
* @throws OdaException
*/
private int getColumnIndex( String columnName ) throws OdaException
{
for ( int i = 1; i <= rsMetaData.getColumnCount( ); i++ )
{
if ( rsMetaData.getColumnName( i ).equals( columnName ) )
return i;
}
throw new OdaException( );
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getString(java.lang.String)
*/
public String getString( String name ) throws OdaException
{
testClosed();
return this.getString(this.getColumnIndex( name));
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getInt(int)
*/
public int getInt( int index ) throws OdaException
{
return stringToInt ( getString(index) );
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getInt(java.lang.String)
*/
public int getInt( String name ) throws OdaException
{
return stringToInt( getString( name));
}
/**
* Transform a String value to an int value.
*
* @param stringValue String value
* @return Corresponding int value
* @throws OdaException
*/
private int stringToInt( String stringValue ) throws OdaException
{
testClosed();
if( stringValue != null )
{
try
{
return new Integer( stringValue ).intValue();
}
catch( NumberFormatException e )
{
this.wasNull = true;
}
}
return 0;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getDouble(int)
*/
public double getDouble( int index ) throws OdaException
{
return stringToDouble( getString(index));
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getDouble(java.lang.String)
*/
public double getDouble( String name ) throws OdaException
{
return stringToDouble( getString( name));
}
/**
* Transform a String value to a double value
*
* @param stringValue String value
* @return Corresponding double value
* @throws OdaException
*/
private double stringToDouble( String stringValue ) throws OdaException
{
testClosed();
if( stringValue != null )
{
try
{
return new Double( stringValue ).doubleValue();
}
catch( NumberFormatException e )
{
this.wasNull = true;
}
}
return 0;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getBigDecimal(int)
*/
public BigDecimal getBigDecimal( int index ) throws OdaException
{
return stringToBigDecimal( getString( index ));
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getBigDecimal(java.lang.String)
*/
public BigDecimal getBigDecimal( String name ) throws OdaException
{
return stringToBigDecimal( getString( name ));
}
/**
* Transform a String value to a big decimal value
*
* @param stringValue String value
* @return Corresponding BigDecimal value
* @throws OdaException
*/
private BigDecimal stringToBigDecimal( String stringValue ) throws OdaException
{
testClosed( );
if( stringValue != null )
{
try
{
return new BigDecimal( stringValue );
}
catch( NumberFormatException e )
{
this.wasNull = true;
}
}
return null;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getDate(int)
*/
public Date getDate( int index ) throws OdaException
{
return stringToDate( getString( index ));
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getDate(java.lang.String)
*/
public Date getDate( String columnName ) throws OdaException
{
return stringToDate( getString( columnName ) );
}
/**
* Transform a String value to a date value
*
* @param stringValue String value
* @return Corresponding date value
* @throws OdaException
*/
private Date stringToDate( String stringValue ) throws OdaException
{
testClosed();
if ( stringValue != null )
{
try
{
java.util.Date date = DateUtil.toDate( stringValue );
return new Date( date.getTime( ) );
}
catch ( OdaException oe )
{
this.wasNull = true;
return null;
}
}
return null;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getTime(int)
*/
public Time getTime( int index ) throws OdaException
{
return stringToTime( this.getString( index ));
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getTime(java.lang.String)
*/
public Time getTime( String columnName ) throws OdaException
{
return stringToTime( this.getString( columnName ));
}
/**
* Transform a String value to a Time value
* @param stringValue String value
* @return Corresponding Time value
* @throws OdaException
*/
private Time stringToTime( String stringValue ) throws OdaException
{
testClosed();
if ( stringValue != null )
{
try
{
java.util.Date date = DateUtil.toDate( stringValue );
return new Time( date.getTime( ) );
}
catch ( OdaException oe )
{
this.wasNull = true;
return null;
}
}
this.wasNull = true;
return null;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getTimestamp(int)
*/
public Timestamp getTimestamp( int index ) throws OdaException
{
return stringToTimestamp( this.getString( index ) );
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getTimestamp(java.lang.String)
*/
public Timestamp getTimestamp( String columnName ) throws OdaException
{
return stringToTimestamp( this.getString( columnName) );
}
/**
* Transform a String value to a Timestamp value
* @param stringValue String value
* @return Corresponding Timestamp value
* @throws OdaException
*/
private Timestamp stringToTimestamp( String stringValue ) throws OdaException
{
testClosed();
if( stringValue != null )
{
try
{
stringValue = stringValue.replaceAll("\\QT\\E"," ").split("\\QZ\\E")[0];
return Timestamp.valueOf( stringValue );
}
catch( IllegalArgumentException e )
{
try{
long timeMills = new Long(stringValue).longValue();
return new Timestamp( timeMills );
}catch ( NumberFormatException e1)
{
try
{
java.util.Date date = DateUtil.toDate( stringValue );
Timestamp timeStamp = new Timestamp( date.getTime( ) );
return timeStamp;
}
catch ( OdaException oe )
{
this.wasNull = true;
return null;
}
}
}
}
this.wasNull = true;
return null;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#wasNull()
*/
public boolean wasNull( ) throws OdaException
{
testClosed();
return this.wasNull;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#findColumn(java.lang.String)
*/
public int findColumn( String columnName ) throws OdaException
{
testClosed();
return this.getColumnIndex( columnName );
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getBlob(int)
*/
public IBlob getBlob( int index ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getBlob(java.lang.String)
*/
public IBlob getBlob( String columnName ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getClob(int)
*/
public IClob getClob( int index ) throws OdaException
{
throw new UnsupportedOperationException ();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSet#getClob(java.lang.String)
*/
public IClob getClob( String columnName ) throws OdaException
{
throw new UnsupportedOperationException ();
}
}

View File

@@ -1,134 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml.impl;
import org.eclipse.datatools.connectivity.oda.IResultSetMetaData;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.datatools.enablement.oda.xml.util.RelationInformation;
/**
* This class describe the information of certain ResultSet.
*/
public class ResultSetMetaData implements IResultSetMetaData
{
//Column Names
private String[] columnNames;
private RelationInformation ri;
//Table Name.
private String tableName;
/**
*
* @param ri
* @param tableName
*/
public ResultSetMetaData(RelationInformation ri, String tableName)
{
this.ri = ri;
this.tableName = tableName;
columnNames = ri.getTableColumnNames(tableName);
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getColumnCount()
*/
public int getColumnCount( ) throws OdaException
{
return columnNames.length;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getColumnName(int)
*/
public String getColumnName( int index ) throws OdaException
{
return columnNames[index-1];
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getColumnLabel(int)
*/
public String getColumnLabel( int index ) throws OdaException
{
return columnNames[index-1];
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getColumnType(int)
*/
public int getColumnType( int index ) throws OdaException
{
return DataTypes.getType(getColumnTypeName(index));
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getColumnTypeName(int)
*/
public String getColumnTypeName( int index ) throws OdaException
{
return ri.getTableColumnType(tableName, getColumnName(index));
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getColumnDisplayLength(int)
*/
public int getColumnDisplayLength( int index ) throws OdaException
{
throw new UnsupportedOperationException();
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getPrecision(int)
*/
public int getPrecision( int index ) throws OdaException
{
return -1;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getScale(int)
*/
public int getScale( int index ) throws OdaException
{
return -1;
}
/*
* (non-Javadoc)
* @see org.eclipse.datatools.connectivity.oda.IResultSetMetaData#isNullable(int)
*/
public int isNullable( int index ) throws OdaException
{
return columnNullableUnknown;
}
/**
* Return the column's Xpath expression.
*
* @param index
* @return
* @throws OdaException
*/
public String getColumnPath( int index ) throws OdaException
{
return ri.getTableColumnPath(tableName,getColumnName(index));
}
}

View File

@@ -1,17 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<body bgcolor="white">
[<b>Non-API</b>] DTP XML Driver - an ODA run-time extension.
<p>
Note: <i>The implementation classes are <b>not</b> public APIs.
<br>Backward compatibility support in future releases is not guaranteed.</i>
<h2>Package Specification</h2>
The DTP ODA XML driver is a data provider that parses and accesses data
in XML files using XPath expressions.
<br>This package implements ODA 3.0 interfaces.
</body>
</html>

View File

@@ -1,16 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<body bgcolor="white">
[<b>Non-API</b>] DTP XML Driver - an ODA run-time extension.
<p>
Note: <i>The implementation classes are <b>not</b> public APIs.
<br>Backward compatibility support in future releases is not guaranteed.</i>
<h2>Package Specification</h2>
The DTP ODA XML driver is a data provider that parses and accesses data
in XML files using XPath expressions.
</body>
</html>

View File

@@ -1,166 +0,0 @@
package org.eclipse.datatools.enablement.oda.xml.util;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
/**
* This class is used to process nested xml columns, either Simple one or Complex one.
* For the definition of Simple nesed xml columns and Complex nested xml columns, please
* refer to RelationInformation
*/
class NestedColumnUtil {
// The HashMap
private HashMap nestedXMLColumns;
private RelationInformation relationInfo;
private String tableName;
/**
* Constructor
*
* @param relationInfo
* @param tableName
* @param isSimple
*/
NestedColumnUtil(RelationInformation relationInfo, String tableName,
boolean isSimple) {
this.relationInfo = relationInfo;
this.tableName = tableName == null ? "":tableName.trim( );
String[] namesOfNestedColumns = isSimple ? relationInfo
.getTableSimpleNestedXMLColumnNames(this.tableName) : relationInfo
.getTableComplexNestedXMLColumnNames(this.tableName);
nestedXMLColumns = new HashMap();
for (int i = 0; i < namesOfNestedColumns.length; i++)
{
int backRefNumber = relationInfo.getTableNestedColumnBackRefNumber( tableName, namesOfNestedColumns[i] );
int forwardRefNumber = relationInfo.getTableColumnForwardRefNumber( tableName, namesOfNestedColumns[i] );
nestedXMLColumns.put(namesOfNestedColumns[i], new ThreshHoldInfo(
backRefNumber, forwardRefNumber, isSimple));
}
}
/**
* Return the value of certain nested column marked by the column name and current root path(the SaxParser generated one)
*
* @param columnName
* @param currentRootPath
* @return
*/
String getNestedColumnValue(String columnName, String currentRootPath) {
ThreshHoldInfo thInfo = (ThreshHoldInfo) nestedXMLColumns
.get(columnName);
assert columnName != null;
return thInfo.getValue(currentRootPath);
}
void update(String columnName, String path, String value) {
String columnPath = relationInfo.getTableColumnPath(tableName,
columnName);
if (SaxParserUtil.isSamePath(columnPath, path))
((ThreshHoldInfo) this.nestedXMLColumns.get(columnName)).addInfo(
path, value);
}
}
/**
* This class is used to map column XPath expressions and their corresponding values. Each instance of this
* class is responsible for the storage of values of one nested XML column.
*
*/
class ThreshHoldInfo {
//
private Map map;
private int backRefLevel;
private boolean isSimple;
private int forwardRefLevel;
/**
* The constructor.
*
*/
ThreshHoldInfo(int backRefLevel, int forwardRefLevel, boolean isSimple) {
this.map = new HashMap();
this.backRefLevel = backRefLevel;
this.isSimple = isSimple;
this.forwardRefLevel = forwardRefLevel;
}
/**
* Add nested column info.
*
* @param path
* @param value
*/
void addInfo(String path, String value) {
map.put(path, value);
}
/**
* Get value of nested column according to the current rootpath and the backRefNumber of the very nested column.
*
* @param rootPath
* @return
*/
String getValue(String rootPath) {
String nestedXMLPath = getCorrespondingNestedXMLColumnPath(rootPath);
if (nestedXMLPath == null)
return null;
return map.get(nestedXMLPath).toString();
}
/**
* @param rootPath
* @param backRefNumber
* @return
*/
private String getCorrespondingNestedXMLColumnPath(String rootPath) {
Iterator it = map.keySet().iterator();
String nestedXMLPath = null;
while (it.hasNext()) {
String temp = it.next().toString();
if (pathMatch(temp, rootPath)) {
nestedXMLPath = temp;
break;
}
}
return nestedXMLPath;
}
/**
* Test if the current root path is acceptable as the root path of nested XML column,
* if so then return true else return false.
*
* @param path
* @param currentRootPath
* @param backRefNumber
* @return
*/
private boolean pathMatch(String path, String currentRootPath) {
if (path == null)
return false;
String[] paths = path.split("/");
String[] nestedXMLColumnPaths = currentRootPath.split("/");
int commonRootLen = nestedXMLColumnPaths.length - backRefLevel;
if (commonRootLen < 0 || paths.length != commonRootLen + this.forwardRefLevel)
return false;
for (int i = 0; i < commonRootLen; i++) {
if (!paths[i].startsWith(nestedXMLColumnPaths[i]))
return false;
}
if (isSimple && paths.length != commonRootLen)
return false;
return true;
}
}

View File

@@ -1,852 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml.util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.datatools.enablement.oda.xml.i18n.Messages;
import org.eclipse.datatools.enablement.oda.xml.impl.DataTypes;
/**
* This class is used to dealing with the strings which are parsed as arguments to
* create an XML data source connection.The structure of string must follow the given rule:
* TableName1#:#[TableRootPath]#:#{columnName1;Type;RelativeXPath},{columnName2;Type;RelativeXPath}...
* #-#TableName2#:#[TableRootPath]#:#{columnName1;Type;RelativeXpath}.....
*
*/
public class RelationInformation
{
//
public static final String CONST_TABLE_DELIMITER = "#-#";
public static final String CONST_TABLE_COLUMN_DELIMITER = "#:#";
public static final String CONST_COLUMN_METAINFO_DELIMITER = ";";
public static final String CONST_COLUMN_DELIMITER = ",";
//
private HashMap tableInfos;
/**
*
* @param relationString
* @throws OdaException
*/
public RelationInformation( String relationString ) throws OdaException
{
this.tableInfos = new HashMap( );
initialize( relationString.trim( ) );
}
/**
* Initialize tableInfos by analyzing the input string.
* @param relationString
* @throws OdaException
*/
private void initialize( String relationString ) throws OdaException
{
if( relationString == null|| relationString.length() == 0)
throw new OdaException( Messages.getString("RelationInformation.InputStringCannotBeNull"));
String[] tables = relationString.split( CONST_TABLE_DELIMITER );
for ( int i = 0; i < tables.length; i++ )
{
String[] temp = tables[i].trim( )
.split( CONST_TABLE_COLUMN_DELIMITER );
assert ( temp.length == 3 );
// //////////////////////////////
TableInfo tableInfo = new TableInfo( temp[0].trim( ),
temp[1].substring( 1, temp[1].length( ) - 1 ).trim( ) );
// ////////////////////////////////
String[] columns = temp[2].trim( ).split( CONST_COLUMN_DELIMITER );
for ( int j = 0; j < columns.length; j++ )
{
String trimedColumn = columns[j].trim( );
// remove column info delimiter "{" and "}"
String[] columnInfos = trimedColumn.substring( 1,
trimedColumn.length( ) - 1 )
.split( CONST_COLUMN_METAINFO_DELIMITER );
//columnInfos[0]: column name
//columnInfos[1]: column type
//columnInfos[2]: column XPath
String columnXpath = null;
if( columnInfos.length == 3 )
{
columnXpath = columnInfos[2];
}else
{
columnXpath = "";
}
for ( int m = 0; m < columnInfos.length; m++ )
columnInfos[m] = columnInfos[m].trim( );
String originalColumnXpath = columnXpath;
//if it is a filter expression
if ( columnXpath.matches( ".*\\Q[@\\E.*\\Q=\\E.*" ) )
{
//get the filter value
String value = columnXpath.replaceAll( ".*\\Q[@\\E.*\\Q=\\E",
"" )
.trim( );
value = value.substring( 1, value.length( ) - 2 );
//add it to filter
tableInfo.addFilter( columnInfos[0], value );
columnXpath = columnXpath.replaceAll( "\\Q=\\E.*",
"]" );
}
tableInfo.addColumn( new ColumnInfo( j + 1,
columnInfos[0],
columnInfos[1],
tableInfo.getRootPath( ), columnXpath, originalColumnXpath));
}
this.tableInfos.put( temp[0].trim( ), tableInfo );
}
}
/**
* Return the path of a column in certain table.
*
* @param tableName
* @param columnName
* @return
*/
public String getTableColumnPath( String tableName, String columnName )
{
Object tableInfo = this.tableInfos.get( tableName == null ? "":tableName.trim( ) );
if( tableInfo!= null )
return ( (TableInfo) tableInfo ).getPath( columnName == null? "":columnName.trim( ) );
else
return null;
}
/**
* Return the path of a column in certain table.
*
* @param tableName
* @param columnName
* @return
*/
public String getTableOriginalColumnPath( String tableName, String columnName )
{
Object tableInfo = this.tableInfos.get( tableName == null ? "":tableName.trim( ) );
if( tableInfo != null )
return ( (TableInfo) tableInfo ).getOriginalPath( columnName == null? "":columnName.trim( ) );
else
return null;
}
/**
* Return the back ref number of a column in certain table.
*
* @param tableName
* @param columnName
* @return
*/
public int getTableNestedColumnBackRefNumber( String tableName, String columnName )
{
Object tableInfo = this.tableInfos.get( tableName == null ? "":tableName.trim( ) );
if( tableInfo!= null )
return ( (TableInfo)tableInfo ).getBackRefNumber( columnName == null? "":columnName.trim( ) );
else
return -1;
}
/**
* Return the forward ref number of a column in certain table.
*
* @param tableName
* @param columnName
* @return
*/
public int getTableColumnForwardRefNumber( String tableName, String columnName )
{
Object tableInfo = this.tableInfos.get( tableName == null ? "":tableName.trim( ) );
if( tableInfo!= null )
return ( (TableInfo)tableInfo ).getForwardRefNumber( columnName == null? "":columnName.trim( ) );
else
return -1; }
/**
* Return the type of a column in certain table.
*
* @param tableName
* @param columnName
* @return
*/
public String getTableColumnType( String tableName, String columnName )
{
Object tableInfo = this.tableInfos.get( tableName == null ? "":tableName.trim( ) );
if( tableInfo!= null )
return ( (TableInfo)tableInfo ).getType( columnName == null? "":columnName.trim( ) );
else
return null;
}
/**
* Return the array of column names of certain table.
*
* @param tableName
* @return
*/
public String[] getTableColumnNames( String tableName )
{
Object tableInfo = this.tableInfos.get( tableName == null ? "":tableName.trim( ) );
if( tableInfo!= null )
return ( (TableInfo)tableInfo ).getColumnNames( );
else
return new String[0];
}
/**
* Return the array of complex nested column names of certain table.
*
* @param tableName
* @return
*/
public String[] getTableComplexNestedXMLColumnNames( String tableName )
{
Object tableInfo = this.tableInfos.get( tableName == null ? "":tableName.trim( ) );
if( tableInfo!= null )
return ( (TableInfo)tableInfo ).getComplexNestXMLColumnNames( );
else
return new String[0];
}
/**
* Return the array of simple nested column names of certain table.
*
* @param tableName
* @return
*/
public String[] getTableSimpleNestedXMLColumnNames( String tableName )
{
Object tableInfo = this.tableInfos.get( tableName == null ? "":tableName.trim( ) );
if( tableInfo!= null )
return ( (TableInfo)tableInfo ).getSimpleNestXMLColumnNames( );
else
return new String[0];
}
/**
* Return the table root path.
*
* @param tableName
* @return
*/
public String getTableRootPath( String tableName )
{
Object tableInfo = this.tableInfos.get( tableName == null ? "":tableName.trim( ) );
if( tableInfo!= null )
return ( (TableInfo)tableInfo ).getRootPath( );
else
return null;
}
/**
* Return the table original root path.
*
* @param tableName
* @return
*/
public String getTableOriginalRootPath( String tableName )
{
Object tableInfo = this.tableInfos.get( tableName == null ? "":tableName.trim( ) );
if( tableInfo!= null )
return ( (TableInfo)tableInfo ).getOriginalRootPath( );
else
return null;
}
/**
* Return the table filter.
*
* @param tableName
* @return
*/
public HashMap getTableFilter( String tableName )
{
Object tableInfo = this.tableInfos.get( tableName == null ? "":tableName.trim( ) );
if( tableInfo!= null )
return ( (TableInfo)tableInfo ).getFilter( );
else
return null;
}
public Iterator getTableNames()
{
return this.tableInfos.keySet( ).iterator( );
}
}
/**
* The instance of this class describe a table.
*
*/
class TableInfo
{
//The name of the table.
private String tableName;
//The hashmap which host columnInfos
private HashMap columnInfos;
//The hashmap which host filterInfos
private HashMap filterInfos;
//The original root path of this table
private String originalRootPath;
//The root path of this table
private String rootPath;
public TableInfo( String tableName, String rootPath )
{
this.tableName = tableName;
this.originalRootPath = rootPath;
String temp = SaxParserUtil.processParentAxis( originalRootPath );
if( "//".equals( temp ))
this.rootPath = "//*";
else
this.rootPath = temp;
this.columnInfos = new HashMap( );
this.filterInfos = new HashMap( );
}
/**
* Return the name of the table.
*
* @return
*/
public String getTableName( )
{
return this.tableName;
}
/**
* Return the path of certain column.
*
* @param columnName
* @return
*/
public String getPath( String columnName )
{
return ( (ColumnInfo) this.columnInfos.get( columnName ) ).getColumnPath( );
}
/**
* Return the original path of certain column.
*
* @param columnName
* @return
*/
public String getOriginalPath( String columnName )
{
return ( (ColumnInfo) this.columnInfos.get( columnName ) ).getColumnOriginalPath();
}
/**
* Return the back reference number of the column, this only applys to nested xml columns.
*
* @param columnName
* @return
*/
public int getBackRefNumber( String columnName )
{
return ( (ColumnInfo) this.columnInfos.get( columnName ) ).getBackRefNumber();
}
/**
* Return the forward reference number of the column.
*
* @param columnName
* @return
*/
public int getForwardRefNumber( String columnName )
{
return ( (ColumnInfo) this.columnInfos.get( columnName ) ).getForwardRefNumber();
}
/**
* Return the defined data type of certain column.
*
* @param columnName
* @return
*/
public String getType( String columnName )
{
return ( (ColumnInfo) this.columnInfos.get( columnName ) ).getColumnType( );
}
/**
* Return the hash map which defines the filters.
*
* @return
*/
public HashMap getFilter( )
{
return this.filterInfos;
}
/**
* Add a column to a table.
*
* @param ci
*/
public void addColumn( ColumnInfo ci )
{
this.columnInfos.put( ci.getColumnName( ), ci );
}
/**
* Add a filter to a table.
*
* @param columnName
* @param value
*/
public void addFilter( String columnName, String value )
{
this.filterInfos.put( columnName, value );
}
/**
* Return the column name array.
*
* @return
*/
public String[] getColumnNames( )
{
Object[] names = this.columnInfos.keySet( ).toArray( );
String[] result = new String[names.length];
for ( int i = 0; i < names.length; i++ )
{
result[( (ColumnInfo) columnInfos.get( names[i] ) ).getColumnIndex( ) - 1] = names[i].toString( );
}
return result;
}
/**
* The complex nested xml columnNames are the names of columns the value of which may be shared by multiple
* columns. The most significant feature of a complex nested xml column is that its xpath expression does not start with
* table root path, nor is it an attribute of parent of root path element.
*
* @return
*/
public String[] getComplexNestXMLColumnNames( )
{
ArrayList temp = new ArrayList();
String[] columnNames = getColumnNames();
String[] simpleNestXMLColumnNames = getSimpleNestXMLColumnNames( );
for(int i = 0; i < columnNames.length; i++)
{
//First filter out all "non-nested xml columns
if(!((ColumnInfo)columnInfos.get(columnNames[i])).getColumnPath().startsWith(rootPath))
{
boolean isComplexNestXMLColumn = true;
//Then filter out all simple nested xml columns
for( int j = 0; j < simpleNestXMLColumnNames.length; j++ )
{
if( simpleNestXMLColumnNames[j].equals( columnNames[i] ))
{
isComplexNestXMLColumn = false;
break;
}
}
if( isComplexNestXMLColumn )
temp.add( columnNames[i]);
}
}
return getStringArrayFromList( temp );
}
/**
* @param temp
* @return
*/
private String[] getStringArrayFromList( ArrayList temp )
{
String[] result = new String[temp.size()];
for(int i = 0; i < result.length; i ++)
{
result[i] = temp.get(i).toString();
}
return result;
}
/**
* The simple nested xml columnNames are the names of columns the value of which may be shared by multiple
* columns. The most significant feature of a simple nested xml column is that its xpath expression does not start with
* table root path, and it is an attribute of parent of root path element.
*
* @return
*/
public String[] getSimpleNestXMLColumnNames( )
{
ArrayList temp = new ArrayList();
String[] columnNames = getColumnNames();
for( int i = 0; i < columnNames.length; i++)
{
String nestedXMLColumnPathPrefix = ((ColumnInfo)columnInfos.get(columnNames[i])).getColumnPath();
//All simple nested xml column must be xml attributes rather than xml elements.
if( !nestedXMLColumnPathPrefix.matches( ".*\\Q@\\E.*" ))
continue;
//Remove the attribute so that only
nestedXMLColumnPathPrefix = nestedXMLColumnPathPrefix.replaceAll( "\\Q[@\\E.*", "" );
if( isSimpleNestedColumn( rootPath, nestedXMLColumnPathPrefix))
temp.add( columnNames[i] );
}
return getStringArrayFromList( temp );
}
/**
* Test if given treated column path refer to a Simple Nested Column
*
* @param rootPath
* @param treatedColumPath
* @return
*/
private boolean isSimpleNestedColumn( String rootPath, String treatedColumPath )
{
String[] tempString1 = treatedColumPath.split( "/" );
String[] tempString2 = rootPath.split( "/" );
if( tempString2.length <= tempString1.length )
return false;
for( int j = 0; j < tempString1.length; j++ )
{
if ( !(( ( tempString1[j] == null || tempString2[j] == null ) )
|| ( tempString1[j].equals( tempString2[j] )
|| "*".equals( tempString1[j] ) || "*".equals( tempString2[j] ) ) ))
return false;
}
return true;
}
/**
* Return the root path of that table.
*
* @return
*/
public String getRootPath( )
{
return this.rootPath;
}
/**
* Return the original root path of this table.
*
* @return
*/
public String getOriginalRootPath( )
{
return this.originalRootPath;
}
/**
* Return the table's ancestor path. A table's ancestor path is the common prefix that all table columns'
* pathes shared. Table's rootpath should only equal to, or prefixed with a table's ancestor path.
* @return
*/
public String getAncestor( )
{
String[] columnNames = this.getColumnNames( );
// If the table only contains one column. Then the root path of that
// table is the path of
// the column without the tailing attribute path(if exists)
if ( columnNames.length == 1 )
return getPath( columnNames[0] );// .replaceFirst("@.*","");
String[] paths = new String[columnNames.length];
for ( int i = 0; i < paths.length; i++ )
{
paths[i] = getPath( columnNames[i] ).replaceFirst("\\Q\\[@\\E.*\\Q\\]\\E","");
}
String theLongestPath = "";
for ( int i = 0; i < paths.length; i++ )
{
if ( paths[i].split( "\\Q/\\E" ).length > theLongestPath.split( "\\Q/\\E" ).length )
theLongestPath = paths[i];
}
boolean isAbsolutePath = false;
if ( theLongestPath.startsWith( "//" ) )
{
isAbsolutePath = false;
theLongestPath = theLongestPath.replaceFirst( "\\Q//\\E", "" );
}
else
{
isAbsolutePath = true;
theLongestPath = theLongestPath.replaceFirst( "\\Q/\\E", "" );
}
String[] temp = theLongestPath.split( "\\Q/\\E" );
String prefix = isAbsolutePath ? "/" : "//";
for ( int j = 0; j < temp.length; j++ )
{
String attempedPrefix = j == 0 ? prefix + temp[j] : prefix + "/" + temp[j];
for ( int i = 0; i < paths.length; i++ )
{
if ( !paths[i].startsWith( attempedPrefix ) )
return prefix;
}
prefix = attempedPrefix;
}
return prefix;
}
}
/**
* The instance of this class describe a single column.
*
*/
class ColumnInfo
{
//
private int index;
private String name;
private String type;
private String path;
private String originalPath;
//The backRefNumber is the number of parent element should a nested xml column
//retrieve back from its root XPath to find itself.This is only used in nest xml column
//mapping.
private int backRefNumber;
//The forwardRefNumber is the number of element of the corrent column substract the number of
//elements contains in the common part of current root path. In case of not nested column path,
//the common part of current root path is the root path itself.
private int forwardRefNumber;
/**
*
* @param index
* @param name
* @param type
* @param path
* @param originalPath
* @throws OdaException
*/
public ColumnInfo( int index, String name, String type, String rootPath, String relativePath,
String originalPath ) throws OdaException
{
this.index = index;
this.name = name;
this.type = type;
if ( !DataTypes.isValidType( type ) )
throw new OdaException( Messages.getString( "RelationInformation.InvalidDataTypeName" ) );
this.path = fixTrailingAttr( SaxParserUtil.processParentAxis( combineColumnPath( rootPath, relativePath ) ) );
this.originalPath = originalPath;
this.initBackAndForwardRefNumbers( );
}
/**
* Combine column root path and the relative column path.
*
* @param rootPath
* @param declaredPath
* @return
*/
private String combineColumnPath( String rootPath, String declaredPath)
{
if (declaredPath == null || declaredPath.length() == 0)
return rootPath;
else if( declaredPath.startsWith("[")||declaredPath.startsWith("/"))
return rootPath+declaredPath;
return rootPath + "/" + declaredPath;
}
/**
*
*
*/
private void initBackAndForwardRefNumbers( )
{
this.generateBackRefNumber( this.originalPath );
this.generateForwardRefNumber( this.originalPath );
}
/**
* @param originalPath
*/
private void generateBackRefNumber( String originalPath )
{
if ( this.originalPath.matches( ".*\\Q..\\E.*" ) )
{
String[] originalPathFrags = originalPath.split( UtilConstants.XPATH_SLASH );
int lastTwoDotAbbrevationPosition = 0;
int numberOfConcretePathFragsBefore2DotAbb = 0;
for ( int i = 0; i < originalPathFrags.length; i++ )
{
if ( originalPathFrags[i].equals( ".." ) )
lastTwoDotAbbrevationPosition = i;
}
for ( int i = 0; i < lastTwoDotAbbrevationPosition; i++ )
{
if ( !originalPathFrags[i].equals( ".." ) )
numberOfConcretePathFragsBefore2DotAbb++;
}
int numberOf2DotAbb = lastTwoDotAbbrevationPosition
- numberOfConcretePathFragsBefore2DotAbb + 1;
backRefNumber = numberOf2DotAbb
- numberOfConcretePathFragsBefore2DotAbb;
if ( backRefNumber < 0 )
{
backRefNumber = 0;
return;
}
//The back reference number cannot larger than the number of elements
//of root path.
/* String[] temp = rootPath.split( "\\Q/\\E" );
int count = 0;
for( int i = 0; i < temp.length; i ++)
{
if( temp[i].trim( ).length( )> 0 )
count++;
}
backRefNumber = backRefNumber>count?count:backRefNumber;*/
}
else
{
backRefNumber = 0;
}
}
/**
*
* @param originalPath
*/
private void generateForwardRefNumber( String originalPath )
{
String path = originalPath;
String[] split = path.split( "/" );
int elementCount = 0;
int _2dotAbbCount = 0;
for( int j = 0; j < split.length; j++ )
{
if( split[j].equals( ".." ))
{
_2dotAbbCount++;
}
else if ( ( !( split[j].trim( ).length( ) == 0 || split[j].trim( ).matches( "\\Q[@\\E.*" ) || split[j].trim( )
.matches( "\\Q@\\E.*" ) )))
{
elementCount++;
}
}
this.forwardRefNumber = elementCount + this.backRefNumber - _2dotAbbCount;
}
/**
* If the path is refer to an attribute, use syntax /elementName/@attributeName
* then we change it to /elementName[@attributeName] to compliment the standard xpath syntax.
*
*/
private String fixTrailingAttr( String path )
{
if ( path.matches(".*//@.*"))
path = path.replaceFirst("//@","//[@")+"]";
else if ( path.matches(".*/@.*"))
path = path.replaceFirst("/@","[@")+"]";
/*if ( path.startsWith( "//[" ))
path = path.replaceFirst( "\\Q//[\\E", "//*[" );
if ( path.startsWith( "/[" ))
path = path.replaceFirst( "\\Q/[\\E", "//*[" );*/
return path;
}
/**
* Return the columnName.
*
* @return
*/
public String getColumnName( )
{
return this.name;
}
/**
* Return the columnType.
*
* @return
*/
public String getColumnType( )
{
return this.type;
}
/**
* Return the column xPath.
*
* @return
*/
public String getColumnPath( )
{
return this.path;
}
/**
* Return the colum index.
*
* @return
*/
public int getColumnIndex( )
{
return this.index;
}
/**
* Return the original path of the column. The original path of a column is the path
* directly get from relation information String without building it to an absolute path.
* This method is mainly used by UI.
*
* @return
*/
public String getColumnOriginalPath()
{
return this.originalPath;
}
/**
* Return the back ref number.
*
* @return
*/
public int getBackRefNumber( )
{
return this.backRefNumber;
}
/**
* Return the forward ref number.
*
* @return
*/
public int getForwardRefNumber( )
{
return this.forwardRefNumber;
}
}

View File

@@ -1,94 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation. All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml.util;
/**
* This is a helper class used by SaxParserConsumer to generate nested xml columns related infomation.
*/
public class SaxParserComplexNestedQueryHelper implements ISaxParserConsumer {
// The table name
private String tableName;
// The RelationInformation instance which defines the table.
private RelationInformation relationInfo;
// Cache the name of nested columns
private String[] namesOfNestedColumns;
// The sax parser instance.
private SaxParser sp;
private Thread spThread;
private NestedColumnUtil nestedColumnUtil;
private SaxParserConsumer consumer;
/**
* @param rinfo
* @param fileName
* @param tName
*/
protected SaxParserComplexNestedQueryHelper(SaxParserConsumer consumer, RelationInformation rinfo, XMLDataInputStream xdis,
String tName) {
this.tableName = tName;
this.relationInfo = rinfo;
this.consumer = consumer;
this.namesOfNestedColumns = relationInfo.getTableComplexNestedXMLColumnNames(tableName);
this.nestedColumnUtil = new NestedColumnUtil(relationInfo, tableName, false);
this.sp = new SaxParser(xdis, this);
this.spThread = new Thread(sp);
this.spThread.start();
}
/**
* Return whether the SaxParserNestedQueryHelper instance is ready for provide nested xml columns information.
*
* @return
*/
public boolean isPrepared() {
return !spThread.isAlive();
}
/*
* (non-Javadoc)
*
* @see org.eclipse.datatools.enablement.oda.xml.util.ISaxParserConsumer#manipulateData(java.lang.String,
* java.lang.String)
*/
public void manipulateData(String path, String value) {
for (int i = 0; i < this.namesOfNestedColumns.length; i++) {
this.nestedColumnUtil.update(this.namesOfNestedColumns[i], path, value);
}
}
/**
* The method would not be used in this implementation of ISaxParserConsumer.
*/
public void detectNewRow(String path, String prefix, String uri, boolean start) {
}
/**
* The method would wakeup the host SaxParserConsumer.
*/
public void wakeup() {
consumer.wakeup();
}
/**
* Return the NestedColumnUtil instance.
*
* @return
*/
NestedColumnUtil getNestedColumnUtil() {
return this.nestedColumnUtil;
}
}

View File

@@ -1,437 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation. All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml.util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.datatools.enablement.oda.xml.Constants;
import org.eclipse.datatools.enablement.oda.xml.impl.ResultSet;
/**
* This class is an implementation of ISaxParserConsumer. The instance of this class deligate the communication between
* ResultSet and SaxParser, and does the majority of result-set population job.
*/
public class SaxParserConsumer implements ISaxParserConsumer {
private static final int INVALID_COLUMN_INDEX = -1;
// The ResultSet this instance served for.
private ResultSet resultSet;
// The SaxParser this instance dealing with.
private SaxParser sp;
// The thread which hosts the sp.
private Thread spThread;
// The row number in cachedResultSet.
private int cachedResultSetRowNo;
// The overall rowNumber that is available currently
private int currentAvailableMaxLineNo;
// The root path of a table.
private String rootPath;
// The names of complex nested xml columns
private String[] namesOfCachedComplexNestedColumns;
// The names of simple xml columns
private String[] namesOfCachedSimpleNestedColumns;
private String[] namesOfColumns;
// The name of a table.
private String tableName;
private RelationInformation relationInfo;
// The counter which records the times of cachedResultSet being re-initialized.
private int cachedTimes;
// The array which cache the result set.
private String[][] cachedResultSet;
// The overall rowNumber that has been parsed
private int currentRowNo;
private SaxParserComplexNestedQueryHelper spNestedQueryHelper;
private NestedColumnUtil nestedColumnUtil;
private List cachedRootRows;
private Map cachedTempRows;
private List cachedOrderedTempRowRoots;
/**
*
* @param rs
* @param rinfo
* @param fileName
* @param tName
* @throws OdaException
*/
public SaxParserConsumer(ResultSet rs, RelationInformation rinfo, XMLDataInputStream is, String tName) throws OdaException {
this.resultSet = rs;
// must start from 0
cachedResultSetRowNo = 0;
// must start from -1
currentAvailableMaxLineNo = -1;
tableName = tName;
relationInfo = rinfo;
nestedColumnUtil = new NestedColumnUtil(relationInfo, tableName, true);
// must start from 0
currentRowNo = 0;
cachedTempRows = new HashMap();
cachedRootRows = new ArrayList();
cachedOrderedTempRowRoots = new ArrayList();
cachedResultSet = new String[Constants.CACHED_RESULT_SET_LENGTH][resultSet.getMetaData().getColumnCount()];
this.rootPath = relationInfo.getTableRootPath(tableName);
this.namesOfCachedComplexNestedColumns = relationInfo.getTableComplexNestedXMLColumnNames(tableName);
this.namesOfCachedSimpleNestedColumns = relationInfo.getTableSimpleNestedXMLColumnNames(tableName);
this.namesOfColumns = relationInfo.getTableColumnNames(tableName);
XMLDataInputStream xdis = is;
if (namesOfCachedComplexNestedColumns.length > 0) {
spNestedQueryHelper = new SaxParserComplexNestedQueryHelper(this, rinfo, xdis, tName);
try {
// First wait() will be ended when SaxParserComplexNestedQueryHelper
// calls wakeup().However, the thread (ref as thread A) hosts SaxParserComplexNestedQueryHelper is
// actually still running until all finish up jobs are done. The thread (ref as thread B) which host
// this class should only be started when A is completely finish. So we
// add a loop which check the status of SaxParserComplexNestedQueryHelper and
// only all the program to proceed when A is actually finished.
synchronized (this) {
wait();
}
while (!spNestedQueryHelper.isPrepared()) {
synchronized (this) {
wait(5);
}
}
} catch (InterruptedException e) {
throw new OdaException(e.getLocalizedMessage());
}
}
sp = new SaxParser(xdis, this);
spThread = new Thread(sp);
spThread.start();
}
/*
* (non-Javadoc)
*
* @see org.eclipse.datatools.enablement.oda.xml.util.ISaxParserConsumer#manipulateData(java.lang.String,
* java.lang.String)
*/
public void manipulateData(String path, String value) {
String currentRootPath = this.cachedRootRows.size() == 0 ? null : this.cachedRootRows.get(this.cachedRootRows.size() - 1)
.toString();
if (this.cachedRootRows.size() > 0) {
for (int n = 0; n < this.cachedRootRows.size(); n++) {
String currentRoot = this.cachedRootRows.get(n).toString();
String[] os = n == 0 ? this.cachedResultSet[this.cachedResultSetRowNo] : (String[]) this.cachedTempRows
.get(currentRoot);
populateValueToResultArray(path, value, currentRoot, os);
}
} else {
populateValueToResultArray(path, value, currentRootPath, this.cachedResultSet[this.cachedResultSetRowNo]);
}
}
/**
* @param path
* @param value
* @param currentRoot
* @param os
*/
private void populateValueToResultArray(String path, String value, String currentRoot, String[] os) {
for (int i = 0; i < namesOfColumns.length; i++) {
// If the given path is same to the path of certain column
if (columnPathMatch(currentRoot, relationInfo.getTableColumnPath(tableName, namesOfColumns[i]), path,
relationInfo.getTableColumnForwardRefNumber(tableName, namesOfColumns[i]))) {
if (isSimpleNestedColumn(namesOfColumns[i])) {
this.nestedColumnUtil.update(namesOfColumns[i], path, value);
continue;
}
if (os[i] == null)
os[i] = value;
}
}
}
private boolean columnPathMatch(String rootPath, String tableColumnPath, String currentPath, int columnFowardRef) {
if (rootPath != null) {
if (rootPath.split("/").length + columnFowardRef != currentPath.split("/").length)
return false;
}
return SaxParserUtil.isSamePath(tableColumnPath, currentPath);
}
private boolean isSimpleNestedColumn(String columnName) {
for (int i = 0; i < this.namesOfCachedSimpleNestedColumns.length; i++) {
if (this.namesOfCachedSimpleNestedColumns[i].equals(columnName))
return true;
}
return false;
}
/*
* (non-Javadoc)
*
* @see org.eclipse.datatools.enablement.oda.xml.util.ISaxParserConsumer#detectNewRow(java.lang.String, boolean)
*/
public void detectNewRow(String path, String prefix, String uri, boolean start) {
// if the new row started.
if (SaxParserUtil.isSamePath(rootPath, path)) {
if (start) {
if (this.cachedRootRows.size() > 0) {
this.cachedOrderedTempRowRoots.add(path);
this.cachedTempRows.put(path, new String[this.namesOfColumns.length]);
}
this.cachedRootRows.add(path);
return;
} else {
populateNestedXMLDataMappingColumns(path);
this.cachedRootRows.remove(path);
if (this.cachedRootRows.size() > 0)
return;
if (!isCurrentRowValid())
return;
cachedResultSetRowNo++;
currentAvailableMaxLineNo++;
if (cachedResultSetRowNo > Constants.CACHED_RESULT_SET_LENGTH - 1) {
sp.setStart(false);
cachedResultSetRowNo = 0;
}
if (this.cachedOrderedTempRowRoots.size() > 0) {
int i = 0;
for (i = 0; i < this.cachedOrderedTempRowRoots.size(); i++) {
String[] result = (String[]) this.cachedTempRows.get(this.cachedOrderedTempRowRoots.get(i));
this.cachedTempRows.remove(this.cachedOrderedTempRowRoots.get(i));
this.cachedResultSet[this.cachedResultSetRowNo] = result;
this.cachedResultSetRowNo++;
this.currentAvailableMaxLineNo++;
if (cachedResultSetRowNo > Constants.CACHED_RESULT_SET_LENGTH - 1) {
sp.setStart(false);
cachedResultSetRowNo = 0;
}
}
List temp = new ArrayList();
for (int j = i + 1; j < this.cachedOrderedTempRowRoots.size(); j++) {
temp.add(this.cachedOrderedTempRowRoots.get(j));
}
this.cachedOrderedTempRowRoots = temp;
}
}
}
}
/**
* Populate all the columns that come from Nested XML data in certain row.
*
*/
private void populateNestedXMLDataMappingColumns(String currentRootPath) {
if (this.cachedRootRows.size() > 1) {
String currentRoot = this.cachedRootRows.get(this.cachedRootRows.size() - 1).toString();
String[] os = (String[]) this.cachedTempRows.get(currentRoot);
for (int i = 0; i < namesOfCachedComplexNestedColumns.length; i++) {
int j = getColumnIndex(namesOfCachedComplexNestedColumns[i]);
if (j != INVALID_COLUMN_INDEX)
os[j] = this.spNestedQueryHelper.getNestedColumnUtil().getNestedColumnValue(
namesOfCachedComplexNestedColumns[i], currentRootPath);
}
for (int i = 0; i < namesOfCachedSimpleNestedColumns.length; i++) {
int j = getColumnIndex(namesOfCachedSimpleNestedColumns[i]);
if (j != INVALID_COLUMN_INDEX)
os[j] = this.nestedColumnUtil.getNestedColumnValue(namesOfCachedSimpleNestedColumns[i], currentRootPath);
}
} else {
for (int i = 0; i < namesOfCachedComplexNestedColumns.length; i++) {
int j = getColumnIndex(namesOfCachedComplexNestedColumns[i]);
if (j != INVALID_COLUMN_INDEX)
cachedResultSet[cachedResultSetRowNo][j] = this.spNestedQueryHelper.getNestedColumnUtil()
.getNestedColumnValue(namesOfCachedComplexNestedColumns[i], currentRootPath);
}
for (int i = 0; i < namesOfCachedSimpleNestedColumns.length; i++) {
int j = getColumnIndex(namesOfCachedSimpleNestedColumns[i]);
if (j != INVALID_COLUMN_INDEX)
cachedResultSet[cachedResultSetRowNo][j] = this.nestedColumnUtil.getNestedColumnValue(
namesOfCachedSimpleNestedColumns[i], currentRootPath);
}
}
}
private int getColumnIndex(String columnName) {
for (int j = 0; j < namesOfColumns.length; j++) {
if (columnName.equals(namesOfColumns[j])) {
return j;
}
}
return INVALID_COLUMN_INDEX;
}
/**
* Apply the filter to current row. Return whether should current row be filtered out.
*
*/
private boolean isCurrentRowValid() {
for (int i = 0; i < cachedResultSet[cachedResultSetRowNo].length; i++) {
if (relationInfo.getTableFilter(tableName).containsKey(relationInfo.getTableColumnNames(tableName)[i])) {
if (isCurrentColumnValueNotMatchFilterValue(i))
{
for (int j = 1; j <= cachedResultSet[cachedResultSetRowNo].length; j++) {
cachedResultSet[cachedResultSetRowNo][getColumnPosition(j)] = null;
}
return false;
}
}
}
return true;
}
/**
* @param i Column Index
* @return
*/
private boolean isCurrentColumnValueNotMatchFilterValue(int i) {
return !(relationInfo.getTableFilter(tableName).get(relationInfo.getTableColumnNames(tableName)[i]) == cachedResultSet[cachedResultSetRowNo][i] || relationInfo
.getTableFilter(tableName).get(relationInfo.getTableColumnNames(tableName)[i])
.equals(cachedResultSet[cachedResultSetRowNo][i]));
}
/*
* (non-Javadoc)
*
* @see org.eclipse.datatools.enablement.oda.xml.util.ISaxParserConsumer#wakeup()
*/
public synchronized void wakeup() {
notify();
}
/**
* Transform 1-based column index to 0-based column position in the array.
*
* @param index
* @return
*/
private int getColumnPosition(int index) {
return index - 1;
}
/**
* Make the cursor forward. If the end of data reached then return false.
*
* @return
* @throws OdaException
*/
public boolean next() throws OdaException {
// If the sax parser is still alive and has not been suspended yet, then
// block the current thread. The current thread will be re-active by sax
// parser.
while (sp.isAlive() && !sp.isSuspended()) {
try {
synchronized (this) {
wait();
}
} catch (InterruptedException e) {
throw new OdaException(e.getLocalizedMessage());
}
}
// If the cursor will move to the row that is not currently available,
// then resume the sp thread so that it can proceed to fetch more data to
// result set.
if (currentRowNo > currentAvailableMaxLineNo) {
if (sp.isAlive()) {
this.resumeThread();
return next();
} else
return false;
}
currentRowNo++;
return true;
}
/**
* Resume the thread, if SaxParser is suspended then restart it.
*
* @throws OdaException
*
*/
private void resumeThread() throws OdaException {
if (sp.isSuspended()) {
cachedTimes++;
// Recache the result set.
cachedResultSetRowNo = 0;
cachedResultSet = new String[Constants.CACHED_RESULT_SET_LENGTH][resultSet.getMetaData().getColumnCount()];
sp.setStart(true);
}
}
/**
* Close the SaxParserConsumer.
*
*/
public void close() {
// TODO add comments.
if (this.sp != null)
this.sp.stopParsing();
}
/**
* Return the array that cached the result set data.
*
* @return
*/
public String[][] getResultSet() {
return this.cachedResultSet;
}
/**
* Return Current row position. The row position is the position of a row in the result set arrary rather than
* overall row number.
*
* @return
*/
public int getRowPosition() {
return currentRowNo - this.cachedTimes * Constants.CACHED_RESULT_SET_LENGTH - 1;
}
/**
* Return overall row number.
*
* @return
*/
public int getCurrentRowNo() {
return this.currentRowNo;
}
}

View File

@@ -1,171 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml.util;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import org.eclipse.datatools.connectivity.oda.OdaException;
/**
* This class is used to manager the XML data source. If the XML data source is
* passed as InputStream or URL using protocol other than File, then we will make
* a local cache for it to accelerate the processing.
*/
public class XMLDataInputStreamCreator
{
// The template file name which might be used to create a temp file for the InputStream
private static final String TEMPFILENAME = "tempXMLData";
private static HashMap inputStreamCache = new HashMap();
//
private URL url = null;
/**
* Return an XMLDataInputStreamCreator instance according to the given key.
*
* @param key
* @return
* @throws OdaException
*/
public static XMLDataInputStreamCreator getCreator( String key ) throws OdaException
{
return new XMLDataInputStreamCreator(key);
}
/**
* Return an XMLDataInputStreamCreator instance according to the given key.
*
* @param key
* @return
* @throws OdaException
*/
public static synchronized XMLDataInputStreamCreator getCreator( InputStream key ) throws OdaException
{
if ( inputStreamCache.get( key ) == null )
{
XMLDataInputStreamCreator creator = new XMLDataInputStreamCreator( key );
inputStreamCache.put( key, creator );
return creator;
}else
{
return (XMLDataInputStreamCreator)inputStreamCache.get( key );
}
}
/**
*
* @param is
* @throws OdaException
*/
protected XMLDataInputStreamCreator( InputStream is ) throws OdaException
{
createTemporaryFile( is );
}
/**
* @param is
* @throws OdaException
*/
private void createTemporaryFile( InputStream is ) throws OdaException
{
BufferedInputStream bis = new BufferedInputStream(is);
try
{
File file = createFileWithUniqueName( );
FileOutputStream fos = new FileOutputStream( file );
int abyte;
while( (abyte = bis.read())!= -1)
{
fos.write(abyte);
}
fos.close();
bis.close( );
url = file.toURL();
}
catch ( IOException e )
{
throw new OdaException( e.getLocalizedMessage() );
}
}
/**
* @return
* @throws IOException
*/
private File createFileWithUniqueName( ) throws IOException
{
File file = File.createTempFile(TEMPFILENAME,null);
file.deleteOnExit( );
return file;
}
/**
*
* @param xmlFile
* @throws OdaException
*/
protected XMLDataInputStreamCreator( String xmlFile ) throws OdaException
{
URL url = null;
// First try to parse the input string as file name.
try
{
File f = new File( xmlFile );
if( f.exists() )
url = f.toURL( );
this.url = url;
}
catch ( IOException e )
{
}
try
{
// Then try to parse the input string as a url in web.
if ( url == null )
{
url = new URL( xmlFile );
//this.url = url;
this.createTemporaryFile( url.openStream( ) );
}
}
catch ( MalformedURLException e )
{
throw new OdaException( e.getLocalizedMessage() );
}
catch ( IOException e )
{
throw new OdaException( e.getLocalizedMessage() );
}
}
/**
*
* @return
* @throws OdaException
*/
public XMLDataInputStream createXMLDataInputStream( ) throws OdaException
{
return new XMLDataInputStream( this.url );
}
}

View File

@@ -1,261 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml.util.date;
import java.text.ParseException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import com.ibm.icu.text.SimpleDateFormat;
import com.ibm.icu.util.Calendar;
import com.ibm.icu.util.TimeZone;
/**
* DateFormatISO8601 is a utility class for formatting and parsing dates
* according to date format defined by ISO8601.
*/
public class DateFormatISO8601
{
// all SimpleDateFormatter of ICU
private static Map simpleDateFormatterMap = null;
static
{
// date format pattern defined in ISO8601
// notice the order is significant.
String[] dateFormatPattern = {
"yyyy-MM-dd HH:mm:ss.S z",
"yyyy-MM-dd HH:mm:ss.Sz",
"yyyy-MM-dd HH:mm:ss.S",
"yyyy-MM-dd HH:mm:ss z",
"yyyy-MM-dd HH:mm:ssz",
"yyyy-MM-dd HH:mm:ss",
"yyyy-MM-dd HH:mm z",
"yyyy-MM-dd HH:mmz",
"yyyy-MM-dd HH:mm",
"yyyy-MM-dd",
"yyyy-MM",
"yyyy",
"HH:mm:ss.S z",
"HH:mm:ss.Sz",
"HH:mm:ss.S",
"HH:mm:ss z",
"HH:mm:ssz",
"HH:mm:ss",
"HH:mm z",
"HH:mmz",
"HH:mm",
};
SimpleDateFormat simpleDateFormatter = null;
PatternKey patterKey = null;
simpleDateFormatterMap = new HashMap( 128 );
for ( int i = 0; i < dateFormatPattern.length; i++ )
{
patterKey = getPatterKey( dateFormatPattern[i] );
simpleDateFormatter = new SimpleDateFormat( dateFormatPattern[i] );
simpleDateFormatter.setLenient( false );
simpleDateFormatter.setCalendar( Calendar.getInstance( TimeZone.getTimeZone( "GMT" ) ) );
simpleDateFormatterMap.put( patterKey, simpleDateFormatter );
}
}
/**
* Parse a date/time string.
* @param source
* @return
* @throws ParseException
*/
public static Date parse( String source ) throws ParseException
{
Date resultDate = null;
source = cleanDate( source );
Object simpleDateFormatter = simpleDateFormatterMap.get( getPatterKey( source ) );
if ( simpleDateFormatter != null )
{
try
{
resultDate = ( (SimpleDateFormat) simpleDateFormatter ).parse( source );
return resultDate;
}
catch ( ParseException e1 )
{
}
}
// for the String can not be parsed, throws a ParseException
if ( resultDate == null )
{
throw new ParseException( "an not convert the value of " + source,
0 );
}
// never access here
return resultDate;
}
/**
*
* @param s
* @return
*/
private static String cleanDate( String s )
{
s = s.trim( );
if ( s.indexOf( 'T' ) < 12 )
{
s = s.replaceFirst( "T", " " );
}
int zoneIndex = s.indexOf( 'Z' );
if ( zoneIndex == s.length( ) - 1 )
{
return s.substring( 0, zoneIndex );
}
return s;
}
/**
*
* @param source
* @return
*/
private static PatternKey getPatterKey( String source )
{
int colonNumber = 0;
int blankNumber = 0;
int hyphenNumber = 0;
int dotNumber = 0;
int timeZomeNumber = 0;
boolean beLastBlank = false;
for ( int i = 0; i < source.length( ); i++ )
{
switch ( source.charAt( i ) )
{
case ':' :
{
beLastBlank = false;
colonNumber++;
break;
}
case ' ' :
{
if ( !beLastBlank )
{
blankNumber++;
}
beLastBlank = true;
break;
}
case '-' :
{
beLastBlank = false;
if ( blankNumber == 0 )
{
hyphenNumber++;
}
else
{
timeZomeNumber++;
}
break;
}
case '.' :
{
beLastBlank = false;
dotNumber++;
break;
}
case '+' :
case 'z' :
case 'Z' :
{
beLastBlank = false;
timeZomeNumber++;
break;
}
}
if ( timeZomeNumber > 0 )
{
break;
}
}
if ( hyphenNumber == 0 && colonNumber == 0 && source.length( ) > 4 )
{
return null;
}
return ( new PatternKey( colonNumber,
blankNumber,
hyphenNumber,
dotNumber,
timeZomeNumber ) );
}
}
/**
* A class used as hash key of date format pattern.
* @author Administrator
*
*/
class PatternKey
{
private int colonNumber;
private int blankNumber;
private int hyphenNumber;
private int dotNumber;
private int timeZomeNumber;
PatternKey( int colonNumber, int blankNumber, int hyphenNumber,
int dotNumber, int timeZomeNumber )
{
this.colonNumber = colonNumber;
this.blankNumber = blankNumber;
this.hyphenNumber = hyphenNumber;
this.dotNumber = dotNumber;
this.timeZomeNumber = timeZomeNumber;
}
/*
* (non-Javadoc)
*
* @see java.lang.Object#hashCode()
*/
public int hashCode( )
{
return colonNumber
* 36 + blankNumber * 12 + hyphenNumber * 4 + dotNumber * 2
+ timeZomeNumber;
}
/*
* (non-Javadoc)
*
* @see java.lang.Object#equals(java.lang.Object)
*/
public boolean equals( Object key )
{
PatternKey patterKey = (PatternKey) key;
return patterKey.colonNumber == this.colonNumber
|| patterKey.blankNumber == this.blankNumber
|| patterKey.hyphenNumber == this.hyphenNumber
|| patterKey.dotNumber == this.dotNumber
|| patterKey.timeZomeNumber == this.timeZomeNumber;
}
}

View File

@@ -1,151 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml.util.date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import com.ibm.icu.text.DateFormat;
import com.ibm.icu.util.ULocale;
/**
* Help to create DateFormatter set for all ULocales.
*/
class DateFormatUtil
{
/**
*
* @param uLocales
*/
private static void loadULocaleInstanceFromLocale( Set uLocales )
{
//Populate ULocale Set from Locale.
Locale[] ls = Locale.getAvailableLocales();
for( int i = 0; i < ls.length; i++ )
{
uLocales.add( ULocale.forLocale((Locale) ls[i]));
}
}
/**
*
* @param uLocales
*/
private static void loadULocaleInstanceFromULocale( Set uLocales )
{
//Populate ULocale Set from ULocale
ULocale[] uls = ULocale.getAvailableLocales( );
for( int i = 0; i < uls.length; i++ )
{
uLocales.add( uls[i] );
}
}
/**
*
* @param uLocales
*/
private static ULocale[] populateULocaleCache( )
{
//We use Set to prevent duplicate ULocale instance from being added
//to ULocale cache.
Set uLocales = new HashSet();
loadULocaleInstanceFromULocale( uLocales );
loadULocaleInstanceFromLocale( uLocales );
ULocale[]AllULocales = new ULocale[uLocales.size( )];
Object[] localeArray = uLocales.toArray( );
for( int i = 0; i < AllULocales.length; i++ )
{
AllULocales[i] = (ULocale)localeArray[i];
}
return AllULocales;
}
/**
* Ensure this class not to be constructed.
*
*/
private DateFormatUtil(){}
/**
* Get DateFormatter map for all ULocales
*
* @return
*/
static Map getAllDateFormatter( )
{
HashMap reMap = new HashMap( 80 );
ULocale[] AllULocales = populateULocaleCache( );
for ( int i = 0; i < AllULocales.length; i++ )
{
reMap.put( AllULocales[i], new DateFormatter( AllULocales[i] ) );
}
return reMap;
}
/**
* Get DateFormat map for all ULocales
*
* @return
*/
static Map getAllDateFormat( )
{
HashMap reMap = new HashMap( 240 );
ULocale[] AllULocales = populateULocaleCache( );
for ( int i = 0; i < AllULocales.length; i++ )
{
for ( int dateStyle = DateFormat.LONG; dateStyle <= DateFormat.SHORT; dateStyle++ )
{
DateFormat dateFormat = DateFormat.getDateInstance( dateStyle,AllULocales[i] );
dateFormat.setLenient( false );
String key = String.valueOf( dateStyle )
+ ":" + AllULocales[i].getName( );
reMap.put( key, dateFormat );
}
}
return reMap;
}
/**
* Get datetime Format map for all ULocales
*
* @return
*/
static Map getAllDateTimeFormat( )
{
HashMap reMap = new HashMap( 720 );
ULocale[] AllULocales = populateULocaleCache( );
for ( int i = 0; i < AllULocales.length; i++ )
{
for ( int dateStyle = DateFormat.LONG; dateStyle <= DateFormat.SHORT; dateStyle++ )
{
for ( int timeStyle = DateFormat.LONG; timeStyle <= DateFormat.SHORT; timeStyle++ )
{
DateFormat dateFormat = DateFormat.getDateTimeInstance( dateStyle,timeStyle,AllULocales[i] );
dateFormat.setLenient( false );
String key = String.valueOf( dateStyle )
+ ":" + String.valueOf( timeStyle ) + ":"
+ AllULocales[i].getName( );
reMap.put( key, dateFormat );
}
}
}
return reMap;
}
}

View File

@@ -1,328 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml.util.date;
import java.text.ParseException;
import com.ibm.icu.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import com.ibm.icu.util.ULocale;
import com.ibm.icu.util.TimeZone;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* DateFormatter.
*
* Design for Class DateFormatter.This version is for open source, so we only
* apply the function which Java has provided. Beside these basic function, in
* this version, we also provide some new API for further implementation in the
* future
*
* @version $Revision: 1.1 $ $Date: 2006/09/28 10:30:34 $
*/
public class DateFormatter
{
/**
* Comment for <code>formatPattern</code> record the string pattern
*/
private String formatPattern;
/**
* Comment for <code>dateFormat</code> used for two methods,
* createDateFormat() and format()
*/
private com.ibm.icu.text.DateFormat dateFormat;
/**
* Comment for <code>locale</code> used for record Locale information
*/
private ULocale locale = ULocale.getDefault( );
/**
* logger used to log syntax errors.
*/
static protected Logger logger = Logger.getLogger( DateFormatter.class
.getName( ) );
/**
* constuctor method with no paremeter
*/
public DateFormatter( )
{
applyPattern( null );
}
/**
* constuctor method with String parameter
*
* @param pattern
*/
public DateFormatter( String pattern )
{
applyPattern( pattern );
}
/**
* constuctor method with Locale parameters
*
* @param localeLoc
*/
public DateFormatter( ULocale localeLoc )
{
// Leave locale to default if none provided
if ( localeLoc != null )
locale = localeLoc;
applyPattern( null );
}
/**
* @deprecated since 2.1
* @return
*/
public DateFormatter( Locale localeLoc )
{
this(ULocale.forLocale(localeLoc));
}
/**
* constuctor method with two parameters, one is String type while the other
* is Locale type
*
* @param pattern
* @param localeLoc
*/
public DateFormatter( String pattern, ULocale localeLoc )
{
// Leave locale to default if none provided
if ( localeLoc != null )
locale = localeLoc;
applyPattern( pattern );
}
/**
* @deprecated since 2.1
* @return
*/
public DateFormatter( String pattern, Locale localeLoc )
{
this(pattern, ULocale.forLocale(localeLoc));
}
/**
* get the string pattern
*
* @return
*/
public String getPattern( )
{
return this.formatPattern;
}
/**
* define pattern and locale here
*
* @param formatString
*/
public void applyPattern( String formatString )
{
try
{
this.formatPattern = formatString;
/*
* we can seperate these single name-based patterns form those
* patterns with multinumber letters
*/
if ( formatString == null || "Unformatted".equals(formatString)) //$NON-NLS-1$
{
formatPattern = "";
dateFormat = com.ibm.icu.text.DateFormat.getDateTimeInstance(
com.ibm.icu.text.DateFormat.MEDIUM, com.ibm.icu.text.DateFormat.SHORT,
locale );
return;
}
if ( formatString.length( ) == 1 )
{
char patternTemp = formatString.charAt( 0 );
switch ( patternTemp )
{
case 'G' :
dateFormat = com.ibm.icu.text.DateFormat.getDateTimeInstance(
com.ibm.icu.text.DateFormat.LONG,
com.ibm.icu.text.DateFormat.LONG, locale );
return;
case 'D' :
dateFormat = com.ibm.icu.text.DateFormat.getDateInstance(
com.ibm.icu.text.DateFormat.LONG, locale );
return;
case 'd' :
dateFormat = com.ibm.icu.text.DateFormat.getDateInstance(
com.ibm.icu.text.DateFormat.SHORT, locale );
return;
case 'T' :
dateFormat = com.ibm.icu.text.DateFormat.getTimeInstance(
com.ibm.icu.text.DateFormat.LONG, locale );
return;
case 't' :
dateFormat = new SimpleDateFormat( "HH:mm", locale );
return;
case 'f' :
dateFormat = com.ibm.icu.text.DateFormat.getDateTimeInstance(
com.ibm.icu.text.DateFormat.LONG,
com.ibm.icu.text.DateFormat.SHORT, locale );
return;
case 'F' :
dateFormat = com.ibm.icu.text.DateFormat.getDateTimeInstance(
com.ibm.icu.text.DateFormat.LONG,
com.ibm.icu.text.DateFormat.LONG, locale );
return;
case 'g' :
dateFormat = com.ibm.icu.text.DateFormat.getDateTimeInstance(
com.ibm.icu.text.DateFormat.SHORT,
com.ibm.icu.text.DateFormat.SHORT, locale );
return;
case 'M' :
case 'm' :
dateFormat = new SimpleDateFormat( "MM/dd", locale );
return;
case 'R' :
case 'r' :
dateFormat = new SimpleDateFormat(
"yyyy.MM.dd HH:mm:ss a", locale );
dateFormat.setTimeZone( TimeZone.getTimeZone( "GMT" ) );
return;
case 's' :
dateFormat = new SimpleDateFormat(
"yyyy.MM.dd HH:mm:ss", locale );
return;
case 'u' :
dateFormat = new SimpleDateFormat(
"yyyy.MM.dd HH:mm:ss Z", locale );
return;
//TODO:the defination is not clear enough
/*
* case 'U': return;
*/
case 'Y' :
case 'y' :
dateFormat = new SimpleDateFormat( "yyyy/mm", locale );
return;
default :
dateFormat = new SimpleDateFormat( formatString, locale );
return;
}
}
/*
* including the patterns which Java accepted and those name-based
* patterns with multinumber letters
*/
if ( formatString.equals( "General Date" ) )
{
dateFormat = com.ibm.icu.text.DateFormat.getDateTimeInstance(
com.ibm.icu.text.DateFormat.LONG, com.ibm.icu.text.DateFormat.LONG,
locale );
return;
}
if ( formatString.equals( "Long Date" ) )
{
dateFormat = com.ibm.icu.text.DateFormat.getDateInstance(
com.ibm.icu.text.DateFormat.LONG, locale );
return;
}
if ( formatString.equals( "Medium Date" ) )
{
dateFormat = com.ibm.icu.text.DateFormat.getDateInstance(
com.ibm.icu.text.DateFormat.MEDIUM, locale );
return;
}
if ( formatString.equals( "Short Date" ) )
{
dateFormat = com.ibm.icu.text.DateFormat.getDateInstance(
com.ibm.icu.text.DateFormat.SHORT, locale );
return;
}
if ( formatString.equals( "Long Time" ) )
{
dateFormat = com.ibm.icu.text.DateFormat.getTimeInstance(
com.ibm.icu.text.DateFormat.LONG, locale );
return;
}
if ( formatString.equals( "Medium Time" ) )
{
dateFormat = com.ibm.icu.text.DateFormat.getTimeInstance(
com.ibm.icu.text.DateFormat.MEDIUM, locale );
return;
}
if ( formatString.equals( "Short Time" ) )
{
dateFormat = new SimpleDateFormat( "kk:mm", locale );
return;
}
dateFormat = new SimpleDateFormat( formatString, locale );
}
catch ( Exception e )
{
logger.log( Level.WARNING, e.getMessage( ), e );
}
}
/*
* transfer the format string pattern from msdn to the string pattern which
* java can recognize
*/
public String format( Date date )
{
try
{
return dateFormat.format( date );
}
catch ( Exception e )
{
logger.log( Level.WARNING, e.getMessage( ), e );
return null;
}
}
/**
* Parses the input string into a formatted date type.
*
* @param date
* the input string to parse
* @return the formatted date
* @throws ParseException
* if the beginning of the specified string cannot be parsed.
*/
public Date parse( String date ) throws ParseException
{
return dateFormat.parse( date );
}
}

View File

@@ -1,266 +0,0 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.datatools.enablement.oda.xml.util.date;
import java.text.ParseException;
import java.util.Date;
import java.util.Map;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.datatools.enablement.oda.xml.i18n.Messages;
import com.ibm.icu.text.DateFormat;
import com.ibm.icu.util.ULocale;
/**
* A utility class. The convert method converts the source object into an Date
* object given specified type. If no reasonable conversion can be made, throw a
* OdaException.
*/
public final class DateUtil
{
// Defalult Locale, if we have any problem parse string to date for Locale.getDefault()
// we will try to parse it for Locale.US
private static ULocale DEFAULT_LOCALE = ULocale.US;
// Default Date/Time Style
private static int DEFAULT_DATE_STYLE = DateFormat.MEDIUM;
public static long count = 0;
/**
* Number -> Date
* new Date((long)Number)
* String -> Date
* toDate(String)
* @param source
* @return
* @throws OdaException
*/
public static Date toDate( Object source ) throws OdaException
{
if ( source == null )
return null;
if ( source instanceof Date )
{
return new Date( ( (Date) source ).getTime( ) );
}
else if ( source instanceof String )
{
return toDate( (String) source );
}
else
{
throw new OdaException( Messages.getString( "DateUtil.ConvertFails" ) + source.toString( ) ); //$NON-NLS-1$
}
}
/**
* convert String with the specified locale to java.util.Date
*
* @param source
* the String to be convert
* @param locate
* the locate of the string
* @return result Date
*/
public static Date toDate( String source, ULocale locale )
throws OdaException
{
if ( source == null )
return null;
DateFormat dateFormat = null;
Date resultDate = null;
boolean existTime = source.matches( ".*[0-9]+:[0-9]+:[0-9]+.*" )
|| source.matches( ".*[0-9]+:[0-9]+.*" );
for ( int i = DEFAULT_DATE_STYLE; i <= DateFormat.SHORT; i++ )
{
for ( int j = DEFAULT_DATE_STYLE; j <= DateFormat.SHORT; j++ )
{
dateFormat = DateFormatHolder.getDateTimeInstance( i, j, locale );
try
{
resultDate = dateFormat.parse( source );
return resultDate;
}
catch ( ParseException e1 )
{
}
}
// only Date, no Time
if ( !existTime )
{
dateFormat = DateFormatHolder.getDateInstance( i, locale );
try
{
resultDate = dateFormat.parse( source );
return resultDate;
}
catch ( ParseException e1 )
{
}
}
}
// for the String can not be parsed, throws a OdaException
if ( resultDate == null )
{
throw new OdaException( Messages.getString("DateUtil.ConvertFails")+source.toString( )); //$NON-NLS-1$
}
// never access here
return resultDate;
}
/**
* Convert String without specified locale to java.util.Date
* Try to format the given String for JRE default Locale,
* if it fails, try to format the String for Locale.US
* @param source
* the String to be convert
* @param locate
* the locate of the string
* @return result Date
*/
private static Date toDate( String source ) throws OdaException
{
try
{
return toDateISO8601( source );
}
catch ( OdaException e )
{
try
{
// format the String for JRE default locale
return toDate( source, ULocale.getDefault( ) );
}
catch ( OdaException use )
{
// format the String for Locale.US
return toDate( source, DEFAULT_LOCALE );
}
}
}
/**
* convert String with ISO8601 date format to java.util.Date
*
* @param source
* the String to be convert
* @param locate
* the locate of the string
* @return result Date
*/
private static Date toDateISO8601( String source ) throws OdaException
{
Date resultDate = null;
try
{
resultDate = DateFormatISO8601.parse( source );
return resultDate;
}
catch ( ParseException e1 )
{
throw new OdaException( Messages.getString( "DateUtil.ConvertFails" ) + source.toString( ) );
}
}
}
/**
*
*
*/
class DateFormatHolder
{
//
private static Map dateTimeFormatholder = DateFormatUtil.getAllDateTimeFormat( );
private static Map dateFormatHolder = DateFormatUtil.getAllDateFormat( );
/**
*
*
*/
private DateFormatHolder( )
{
}
/**
*
* @param dateStyle
* @param timeStyle
* @param locale
* @return
*/
public static DateFormat getDateTimeInstance( int dateStyle, int timeStyle,
ULocale locale )
{
//DateFormatIdentifier key = new DateFormatIdentifier(dateStyle,timeStyle,locale) ;
String key = String.valueOf( dateStyle )
+ ":" + String.valueOf( timeStyle ) + ":" + locale.getName( );
DateFormat result = (DateFormat) dateTimeFormatholder.get( key );
//This code block is added to solve the problem that the uncached datetimeformatter being used
if ( result == null )
{
synchronized ( dateTimeFormatholder )
{
result = (DateFormat) dateTimeFormatholder.get( key );
if ( result == null )
{
result = DateFormat.getDateTimeInstance( dateStyle,
timeStyle,
locale );
result.setLenient( false );
dateTimeFormatholder.put( key, result );
}
}
}
return result;
}
/**
*
* @param dateStyle
* @param locale
* @return
*/
public static DateFormat getDateInstance( int dateStyle, ULocale locale )
{
String key = String.valueOf( dateStyle ) + ":" + locale.getName( );
//DateFormatIdentifier key = new DateFormatIdentifier(dateStyle,0,locale) ;
DateFormat result = (DateFormat) dateFormatHolder.get( key );
//This code block is added to solve the problem that the uncached datetimeformatter being used
if ( result == null )
{
synchronized ( dateTimeFormatholder )
{
result = (DateFormat)dateFormatHolder.get( key );
if ( result == null )
{
result = DateFormat.getDateInstance( dateStyle, locale );
result.setLenient( false );
dateFormatHolder.put( key, result );
}
}
}
return result;
}
}

Some files were not shown because too many files have changed in this diff Show More