org.eclipse.emf.spi.cdo
Class InternalCDOView.ViewAndState

java.lang.Object
  extended by org.eclipse.emf.spi.cdo.InternalCDOView.ViewAndState
Enclosing interface:
InternalCDOView

public static final class InternalCDOView.ViewAndState
extends Object

Optimizes the storage of CDOObject.cdoView() and CDOObject.cdoState(). All objects of a view share a small number of CDOState literals, so they are moved into a final AbstractCDOView.viewAndStates array. For the TRANSIENT state, where there is no view associated with a CDOObject, this class maintains a static VIEW_AND_STATES array.

Since:
4.2

Field Summary
 CDOState state
           
static InternalCDOView.ViewAndState TRANSIENT
           
 InternalCDOView view
           
 
Constructor Summary
InternalCDOView.ViewAndState(InternalCDOView view, CDOState state)
           
 
Method Summary
static InternalCDOView.ViewAndState[] create(InternalCDOView view)
           
 InternalCDOView.ViewAndState getViewAndState(CDOState state)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRANSIENT

public static final InternalCDOView.ViewAndState TRANSIENT

view

public final InternalCDOView view

state

public final CDOState state
Constructor Detail

InternalCDOView.ViewAndState

public InternalCDOView.ViewAndState(InternalCDOView view,
                                    CDOState state)
Method Detail

getViewAndState

public InternalCDOView.ViewAndState getViewAndState(CDOState state)

toString

public String toString()
Overrides:
toString in class Object

create

public static InternalCDOView.ViewAndState[] create(InternalCDOView view)


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