Lines 52-58
Link Here
|
52 |
msg("Opening session"); |
52 |
msg("Opening session"); |
53 |
final CDOSession session = openModel1Session(); |
53 |
final CDOSession session = openModel1Session(); |
54 |
|
54 |
|
55 |
session.setPassiveUpdateEnabled(false); |
55 |
session.options().setPassiveUpdateEnabled(false); |
56 |
|
56 |
|
57 |
// ************************************************************* // |
57 |
// ************************************************************* // |
58 |
|
58 |
|
Lines 69-75
Link Here
|
69 |
msg("Opening transaction"); |
69 |
msg("Opening transaction"); |
70 |
final CDOTransaction transaction = session.openTransaction(); |
70 |
final CDOTransaction transaction = session.openTransaction(); |
71 |
|
71 |
|
72 |
transaction.setChangeSubscriptionPolicy(enabled); |
72 |
transaction.options().setChangeSubscriptionPolicy(enabled); |
73 |
|
73 |
|
74 |
msg("Creating resource"); |
74 |
msg("Creating resource"); |
75 |
final CDOResource resourceA = transaction.createResource("/test1"); |
75 |
final CDOResource resourceA = transaction.createResource("/test1"); |
Lines 113-119
Link Here
|
113 |
// Switching policy to the other |
113 |
// Switching policy to the other |
114 |
final CDOAdapterPolicy enabled2 = enabled == CDOAdapterPolicy.ALL ? CDOAdapterPolicy.NONE : CDOAdapterPolicy.ALL; |
114 |
final CDOAdapterPolicy enabled2 = enabled == CDOAdapterPolicy.ALL ? CDOAdapterPolicy.NONE : CDOAdapterPolicy.ALL; |
115 |
|
115 |
|
116 |
transaction.setChangeSubscriptionPolicy(enabled2); |
116 |
transaction.options().setChangeSubscriptionPolicy(enabled2); |
117 |
|
117 |
|
118 |
adapter.getNotifications().clear(); |
118 |
adapter.getNotifications().clear(); |
119 |
|
119 |
|
Lines 155-161
Link Here
|
155 |
msg("Opening session"); |
155 |
msg("Opening session"); |
156 |
final CDOSession session = openModel1Session(); |
156 |
final CDOSession session = openModel1Session(); |
157 |
|
157 |
|
158 |
session.setPassiveUpdateEnabled(false); |
158 |
session.options().setPassiveUpdateEnabled(false); |
159 |
|
159 |
|
160 |
// ************************************************************* // |
160 |
// ************************************************************* // |
161 |
|
161 |
|
Lines 171-177
Link Here
|
171 |
|
171 |
|
172 |
msg("Opening transaction"); |
172 |
msg("Opening transaction"); |
173 |
final CDOTransaction transaction = session.openTransaction(); |
173 |
final CDOTransaction transaction = session.openTransaction(); |
174 |
transaction.setChangeSubscriptionPolicy(enabled); |
174 |
transaction.options().setChangeSubscriptionPolicy(enabled); |
175 |
|
175 |
|
176 |
msg("Creating resource"); |
176 |
msg("Creating resource"); |
177 |
final CDOResource resourceA = transaction.createResource("/test1"); |
177 |
final CDOResource resourceA = transaction.createResource("/test1"); |
Lines 188-194
Link Here
|
188 |
|
188 |
|
189 |
msg("Opening view"); |
189 |
msg("Opening view"); |
190 |
final CDOSession session2 = openModel1Session(); |
190 |
final CDOSession session2 = openModel1Session(); |
191 |
session2.setPassiveUpdateEnabled(false); |
191 |
session2.options().setPassiveUpdateEnabled(false); |
192 |
|
192 |
|
193 |
final CDOTransaction transaction2 = session2.openTransaction(); |
193 |
final CDOTransaction transaction2 = session2.openTransaction(); |
194 |
|
194 |
|
Lines 218-224
Link Here
|
218 |
// Switching policy to the other |
218 |
// Switching policy to the other |
219 |
final CDOAdapterPolicy enabled2 = enabled == CDOAdapterPolicy.ALL ? CDOAdapterPolicy.NONE : CDOAdapterPolicy.ALL; |
219 |
final CDOAdapterPolicy enabled2 = enabled == CDOAdapterPolicy.ALL ? CDOAdapterPolicy.NONE : CDOAdapterPolicy.ALL; |
220 |
|
220 |
|
221 |
transaction.setChangeSubscriptionPolicy(enabled2); |
221 |
transaction.options().setChangeSubscriptionPolicy(enabled2); |
222 |
|
222 |
|
223 |
adapter.getNotifications().clear(); |
223 |
adapter.getNotifications().clear(); |
224 |
|
224 |
|
Lines 250-256
Link Here
|
250 |
msg("Opening session"); |
250 |
msg("Opening session"); |
251 |
final CDOSession session = openModel1Session(); |
251 |
final CDOSession session = openModel1Session(); |
252 |
|
252 |
|
253 |
session.setPassiveUpdateEnabled(false); |
253 |
session.options().setPassiveUpdateEnabled(false); |
254 |
|
254 |
|
255 |
// ************************************************************* // |
255 |
// ************************************************************* // |
256 |
|
256 |
|
Lines 266-272
Link Here
|
266 |
|
266 |
|
267 |
msg("Opening transaction"); |
267 |
msg("Opening transaction"); |
268 |
final CDOTransaction transaction = session.openTransaction(); |
268 |
final CDOTransaction transaction = session.openTransaction(); |
269 |
transaction.setChangeSubscriptionPolicy(CDOAdapterPolicy.ALL); |
269 |
transaction.options().setChangeSubscriptionPolicy(CDOAdapterPolicy.ALL); |
270 |
msg("Creating resource"); |
270 |
msg("Creating resource"); |
271 |
final CDOResource resourceA = transaction.createResource("/test1"); |
271 |
final CDOResource resourceA = transaction.createResource("/test1"); |
272 |
|
272 |
|
Lines 284-293
Link Here
|
284 |
|
284 |
|
285 |
msg("Opening view"); |
285 |
msg("Opening view"); |
286 |
final CDOSession session2 = openModel1Session(); |
286 |
final CDOSession session2 = openModel1Session(); |
287 |
session2.setPassiveUpdateEnabled(false); |
287 |
session2.options().setPassiveUpdateEnabled(false); |
288 |
|
288 |
|
289 |
final CDOTransaction transaction2 = session2.openTransaction(); |
289 |
final CDOTransaction transaction2 = session2.openTransaction(); |
290 |
transaction.setChangeSubscriptionPolicy(CDOAdapterPolicy.ALL); |
290 |
transaction.options().setChangeSubscriptionPolicy(CDOAdapterPolicy.ALL); |
291 |
|
291 |
|
292 |
final Category category1B = (Category)transaction2.getObject(CDOUtil.getCDOObject(category1A).cdoID(), true); |
292 |
final Category category1B = (Category)transaction2.getObject(CDOUtil.getCDOObject(category1A).cdoID(), true); |
293 |
|
293 |
|
Lines 320-326
Link Here
|
320 |
msg("Opening session"); |
320 |
msg("Opening session"); |
321 |
final CDOSession session = openModel1Session(); |
321 |
final CDOSession session = openModel1Session(); |
322 |
|
322 |
|
323 |
session.setPassiveUpdateEnabled(false); |
323 |
session.options().setPassiveUpdateEnabled(false); |
324 |
|
324 |
|
325 |
// ************************************************************* // |
325 |
// ************************************************************* // |
326 |
|
326 |
|
Lines 337-343
Link Here
|
337 |
msg("Opening transaction"); |
337 |
msg("Opening transaction"); |
338 |
final CDOTransaction transaction = session.openTransaction(); |
338 |
final CDOTransaction transaction = session.openTransaction(); |
339 |
|
339 |
|
340 |
transaction.setChangeSubscriptionPolicy(customPolicy); |
340 |
transaction.options().setChangeSubscriptionPolicy(customPolicy); |
341 |
|
341 |
|
342 |
msg("Creating resource"); |
342 |
msg("Creating resource"); |
343 |
final CDOResource resourceA = transaction.createResource("/test1"); |
343 |
final CDOResource resourceA = transaction.createResource("/test1"); |
Lines 359-365
Link Here
|
359 |
|
359 |
|
360 |
msg("Opening view"); |
360 |
msg("Opening view"); |
361 |
final CDOSession session2 = openModel1Session(); |
361 |
final CDOSession session2 = openModel1Session(); |
362 |
session2.setPassiveUpdateEnabled(false); |
362 |
session2.options().setPassiveUpdateEnabled(false); |
363 |
|
363 |
|
364 |
final CDOTransaction transaction2 = session2.openTransaction(); |
364 |
final CDOTransaction transaction2 = session2.openTransaction(); |
365 |
|
365 |
|
Lines 388-394
Link Here
|
388 |
assertEquals(false, timedOut); |
388 |
assertEquals(false, timedOut); |
389 |
|
389 |
|
390 |
// Switching policy to the other |
390 |
// Switching policy to the other |
391 |
transaction.setChangeSubscriptionPolicy(CDOAdapterPolicy.ALL); |
391 |
transaction.options().setChangeSubscriptionPolicy(CDOAdapterPolicy.ALL); |
392 |
|
392 |
|
393 |
adapter.getNotifications().clear(); |
393 |
adapter.getNotifications().clear(); |
394 |
|
394 |
|
Lines 420-426
Link Here
|
420 |
msg("Opening session"); |
420 |
msg("Opening session"); |
421 |
final CDOSession session = openModel1Session(); |
421 |
final CDOSession session = openModel1Session(); |
422 |
|
422 |
|
423 |
session.setPassiveUpdateEnabled(false); |
423 |
session.options().setPassiveUpdateEnabled(false); |
424 |
|
424 |
|
425 |
// ************************************************************* // |
425 |
// ************************************************************* // |
426 |
|
426 |
|
Lines 437-443
Link Here
|
437 |
msg("Opening transaction"); |
437 |
msg("Opening transaction"); |
438 |
final CDOTransaction transaction = session.openTransaction(); |
438 |
final CDOTransaction transaction = session.openTransaction(); |
439 |
|
439 |
|
440 |
transaction.setChangeSubscriptionPolicy(CDOAdapterPolicy.ALL); |
440 |
transaction.options().setChangeSubscriptionPolicy(CDOAdapterPolicy.ALL); |
441 |
|
441 |
|
442 |
msg("Creating resource"); |
442 |
msg("Creating resource"); |
443 |
final CDOResource resourceA = transaction.createResource("/test1"); |
443 |
final CDOResource resourceA = transaction.createResource("/test1"); |
Lines 456-462
Link Here
|
456 |
|
456 |
|
457 |
msg("Opening view"); |
457 |
msg("Opening view"); |
458 |
final CDOSession session2 = openModel1Session(); |
458 |
final CDOSession session2 = openModel1Session(); |
459 |
session2.setPassiveUpdateEnabled(false); |
459 |
session2.options().setPassiveUpdateEnabled(false); |
460 |
|
460 |
|
461 |
final CDOTransaction transaction2 = session2.openTransaction(); |
461 |
final CDOTransaction transaction2 = session2.openTransaction(); |
462 |
|
462 |
|