blob: 7234662193f37ea5407a0bfadb139f3016fde2e9 [file] [log] [blame]
/*
* Copyright (c) 2009-2012, 2014, 2015 Eike Stepper (Berlin, Germany) and others.
* 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:
* Simon McDuff - initial API and implementation
* Eike Stepper - maintenance
*/
package org.eclipse.emf.cdo.view;
import org.eclipse.emf.cdo.CDOInvalidationNotification;
import org.eclipse.emf.cdo.CDOObject;
import org.eclipse.emf.cdo.common.revision.delta.CDORevisionDelta;
import org.eclipse.emf.cdo.common.util.CDOTimeProvider;
import org.eclipse.emf.cdo.session.CDOSession.Options;
import org.eclipse.emf.cdo.session.CDOSessionInvalidationEvent;
import java.util.Map;
import java.util.Set;
/**
* A {@link CDOViewEvent view event} fired when passive updates (commit notifications) are being received from a remote
* repository. {@link Options#setPassiveUpdateEnabled(boolean) Passive updates} must be enabled for this event to be
* fired.
*
* @see CDOSessionInvalidationEvent
* @see CDOInvalidationNotification
* @see CDOAdapterPolicy
* @author Simon McDuff
* @since 2.0
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface CDOViewInvalidationEvent extends CDOViewEvent, CDOTimeProvider
{
/**
* 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 CDOObject CDOObjects} of the modified objects.
*/
public Set<CDOObject> getDirtyObjects();
/**
* Returns a map with the {@link CDORevisionDelta change deltas} per object. Note that this map may contain object/
* <code>null</code> mappings, if the delta is not available!
*
* @since 4.0
*/
public Map<CDOObject, CDORevisionDelta> getRevisionDeltas();
/**
* Returns a set of the {@link CDOObject CDOObjects} of the removed objects.
*/
public Set<CDOObject> getDetachedObjects();
}