|
Lines 385-408
Link Here
|
| 385 |
/** |
385 |
/** |
| 386 |
* @since 2.0 |
386 |
* @since 2.0 |
| 387 |
*/ |
387 |
*/ |
| 388 |
public void handleSyncResponse(long timestamp, Set<CDOIDAndVersion> dirtyOIDs, Collection<CDOID> detachedObjects) |
388 |
public void handleSyncResponse(long timestamp, Collection<CDOPackageUnit> newPackageUnits, |
|
|
389 |
Set<CDOIDAndVersion> dirtyOIDs, Collection<CDOID> detachedObjects) |
| 389 |
{ |
390 |
{ |
| 390 |
handleCommitNotification(timestamp, dirtyOIDs, detachedObjects, null, null, true, false); |
391 |
handleCommitNotification(timestamp, newPackageUnits, dirtyOIDs, detachedObjects, null, null, true, false); |
| 391 |
} |
392 |
} |
| 392 |
|
393 |
|
| 393 |
/** |
394 |
/** |
| 394 |
* @since 2.0 |
395 |
* @since 2.0 |
| 395 |
*/ |
396 |
*/ |
| 396 |
public void handleCommitNotification(final long timeStamp, Set<CDOIDAndVersion> dirtyOIDs, |
397 |
public void handleCommitNotification(final long timeStamp, final Collection<CDOPackageUnit> newPackageUnits, |
| 397 |
final Collection<CDOID> detachedObjects, final Collection<CDORevisionDelta> deltas, InternalCDOView excludedView) |
398 |
Set<CDOIDAndVersion> dirtyOIDs, final Collection<CDOID> detachedObjects, |
|
|
399 |
final Collection<CDORevisionDelta> deltas, InternalCDOView excludedView) |
| 398 |
{ |
400 |
{ |
| 399 |
handleCommitNotification(timeStamp, dirtyOIDs, detachedObjects, deltas, excludedView, options() |
401 |
handleCommitNotification(timeStamp, newPackageUnits, dirtyOIDs, detachedObjects, deltas, excludedView, options() |
| 400 |
.isPassiveUpdateEnabled(), true); |
402 |
.isPassiveUpdateEnabled(), true); |
| 401 |
} |
403 |
} |
| 402 |
|
404 |
|
| 403 |
private void handleCommitNotification(final long timeStamp, Set<CDOIDAndVersion> dirtyOIDs, |
405 |
private void handleCommitNotification(final long timeStamp, final Collection<CDOPackageUnit> newPackageUnits, |
| 404 |
final Collection<CDOID> detachedObjects, final Collection<CDORevisionDelta> deltas, InternalCDOView excludedView, |
406 |
Set<CDOIDAndVersion> dirtyOIDs, final Collection<CDOID> detachedObjects, |
| 405 |
final boolean passiveUpdate, boolean async) |
407 |
final Collection<CDORevisionDelta> deltas, InternalCDOView excludedView, final boolean passiveUpdate, |
|
|
408 |
boolean async) |
| 406 |
{ |
409 |
{ |
| 407 |
if (passiveUpdate) |
410 |
if (passiveUpdate) |
| 408 |
{ |
411 |
{ |
|
Lines 459-465
Link Here
|
| 459 |
} |
462 |
} |
| 460 |
} |
463 |
} |
| 461 |
|
464 |
|
| 462 |
fireInvalidationEvent(timeStamp, dirtyOIDs, detachedObjects, excludedView); |
465 |
fireInvalidationEvent(timeStamp, newPackageUnits, dirtyOIDs, detachedObjects, excludedView); |
| 463 |
} |
466 |
} |
| 464 |
|
467 |
|
| 465 |
private void updateRevisionForRemoteChanges(final long timeStamp, Set<CDOIDAndVersion> dirtyOIDs, |
468 |
private void updateRevisionForRemoteChanges(final long timeStamp, Set<CDOIDAndVersion> dirtyOIDs, |
|
Lines 514-525
Link Here
|
| 514 |
} |
517 |
} |
| 515 |
|
518 |
|
| 516 |
/** |
519 |
/** |
|
|
520 |
* @param packageUnits |
| 517 |
* @since 2.0 |
521 |
* @since 2.0 |
| 518 |
*/ |
522 |
*/ |
| 519 |
public void fireInvalidationEvent(long timeStamp, Set<CDOIDAndVersion> dirtyOIDs, Collection<CDOID> detachedObjects, |
523 |
public void fireInvalidationEvent(long timeStamp, Collection<CDOPackageUnit> packageUnits, |
| 520 |
InternalCDOView excludedView) |
524 |
Set<CDOIDAndVersion> dirtyOIDs, Collection<CDOID> detachedObjects, InternalCDOView excludedView) |
| 521 |
{ |
525 |
{ |
| 522 |
fireEvent(new InvalidationEvent(excludedView, timeStamp, dirtyOIDs, detachedObjects)); |
526 |
fireEvent(new InvalidationEvent(excludedView, timeStamp, packageUnits, dirtyOIDs, detachedObjects)); |
| 523 |
} |
527 |
} |
| 524 |
|
528 |
|
| 525 |
@Override |
529 |
@Override |
|
Lines 1090-1101
Link Here
|
| 1090 |
|
1094 |
|
| 1091 |
private Collection<CDOID> detachedObjects; |
1095 |
private Collection<CDOID> detachedObjects; |
| 1092 |
|
1096 |
|
| 1093 |
public InvalidationEvent(InternalCDOView view, long timeStamp, Set<CDOIDAndVersion> dirtyOIDs, |
1097 |
private Collection<CDOPackageUnit> newPackageUnits; |
| 1094 |
Collection<CDOID> detachedObjects) |
1098 |
|
|
|
1099 |
public InvalidationEvent(InternalCDOView view, long timeStamp, Collection<CDOPackageUnit> packageUnits, |
| 1100 |
Set<CDOIDAndVersion> dirtyOIDs, Collection<CDOID> detachedObjects) |
| 1095 |
{ |
1101 |
{ |
| 1096 |
super(CDOSessionImpl.this); |
1102 |
super(CDOSessionImpl.this); |
| 1097 |
this.view = view; |
1103 |
this.view = view; |
| 1098 |
this.timeStamp = timeStamp; |
1104 |
this.timeStamp = timeStamp; |
|
|
1105 |
newPackageUnits = packageUnits; |
| 1099 |
this.dirtyOIDs = dirtyOIDs; |
1106 |
this.dirtyOIDs = dirtyOIDs; |
| 1100 |
this.detachedObjects = detachedObjects; |
1107 |
this.detachedObjects = detachedObjects; |
| 1101 |
} |
1108 |
} |
|
Lines 1125-1130
Link Here
|
| 1125 |
return detachedObjects; |
1132 |
return detachedObjects; |
| 1126 |
} |
1133 |
} |
| 1127 |
|
1134 |
|
|
|
1135 |
public Collection<CDOPackageUnit> getNewPackageUnits() |
| 1136 |
{ |
| 1137 |
return newPackageUnits; |
| 1138 |
} |
| 1139 |
|
| 1128 |
@Override |
1140 |
@Override |
| 1129 |
public String toString() |
1141 |
public String toString() |
| 1130 |
{ |
1142 |
{ |