org.eclipse.emf.cdo.view
Interface CDOStaleReferencePolicy


public interface CDOStaleReferencePolicy

Specifies a policy on how to deal with stale references.

Since:
3.0

Field Summary
static CDOStaleReferencePolicy EXCEPTION
          A default stale reference policy.
static CDOStaleReferencePolicy PROXY
          Returns a proxy object with the appropriate EClass.
 
Method Summary
 Object processStaleReference(EObject source, EStructuralFeature feature, int index, CDOID target)
          Returns an object that we want to return to the caller (clients).
 

Field Detail

EXCEPTION

static final CDOStaleReferencePolicy EXCEPTION
A default stale reference policy. It will throw an exception each time.


PROXY

static final CDOStaleReferencePolicy PROXY
Returns a proxy object with the appropriate EClass. The proxy object supports the following methods: For all invocations of other methods the proxy object throws an ObjectNotFoundException. The receiver can use CDOUtil.isStaleObject(Object) or instanceof CDOStaleObject to detect proxy objects.

Method Detail

processStaleReference

Object processStaleReference(EObject source,
                             EStructuralFeature feature,
                             int index,
                             CDOID target)
Returns an object that we want to return to the caller (clients). Exception thrown will be received by the caller (clients).



Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.