blob: f93d28dbf9e439f36e91e9b949d7d855f47e3cb1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/***************************************************************************
* Copyright (c) 2004 - 2008 Eike Stepper, Germany.
* 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:
* Eike Stepper - initial API and implementation
* Simon McDuff - maintenance
**************************************************************************/
package org.eclipse.emf.cdo;
import org.eclipse.emf.cdo.common.id.CDOID;
import org.eclipse.emf.cdo.common.id.CDOIDAndVersion;
import org.eclipse.emf.cdo.common.revision.CDORevision;
import org.eclipse.net4j.util.event.IListener;
import java.util.Collection;
import java.util.Set;
/**
* An event that is emitted to registered {@link IListener listeners} of a {@link CDOSession} if
* {@link CDOSession#setPassiveUpdateEnabled(boolean) passive update} is enabled for the session.
*
* @author Eike Stepper
* @see CDOInvalidationNotification
* @see CDOChangeSubscriptionPolicy
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface CDOSessionInvalidationEvent extends CDOSessionEvent
{
public static final long LOCAL_ROLLBACK = CDORevision.UNSPECIFIED_DATE;
/**
* Returns the transaction that was committed and thereby caused this event to be emitted if this transaction is
* local, or <code>null</code> if the transaction was remote.
*/
public CDOView getView();
/**
* Returns the time stamp of the server transaction if this event was sent as a result of a successfully committed
* transaction or <code>LOCAL_ROLLBACK</code> if this event was sent due to a local rollback.
*/
public long getTimeStamp();
/**
* Returns a set of the {@link CDOID CDOIDs} and versions of the modified objects.
*/
public Set<CDOIDAndVersion> getDirtyOIDs();
/**
* Returns a collection of the {@link CDOID CDOIDs} of the removed objects.
*
* @since 2.0
*/
public Collection<CDOID> getDetachedObjects();
}
|