|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.cdo.spi.common.revision.AbstractCDORevision org.eclipse.emf.cdo.spi.common.revision.StubCDORevision
If the meaning of this type isn't clear, there really should be more of a description here...
Field Summary |
---|
Fields inherited from interface org.eclipse.emf.cdo.common.revision.CDORevision |
---|
DEPTH_INFINITE, DEPTH_NONE, FIRST_VERSION, MAIN_BRANCH_ID, PERMISSION_PROVIDER, UNCHUNKED |
Fields inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchPoint |
---|
INVALID_DATE, UNSPECIFIED_DATE |
Fields inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchVersion |
---|
UNSPECIFIED_VERSION |
Fields inherited from interface org.eclipse.emf.cdo.common.revision.CDORevisionData |
---|
NIL |
Constructor Summary | |
---|---|
|
StubCDORevision(EClass eClass)
|
protected |
StubCDORevision(InternalCDOClassInfo classInfo)
|
Method Summary | ||
---|---|---|
void |
add(EStructuralFeature feature,
int index,
Object value)
|
|
boolean |
adjustReferences(CDOReferenceAdjuster referenceAdjuster)
|
|
void |
clear(EStructuralFeature feature)
|
|
EStructuralFeature[] |
clearValues()
|
|
InternalCDORevisionDelta |
compare(CDORevision origin)
|
|
int |
compareTo(CDOBranchPoint o)
|
|
boolean |
contains(EStructuralFeature feature,
Object value)
|
|
void |
convertEObjects(CDOIDProvider oidProvider)
|
|
InternalCDORevision |
copy()
|
|
void |
freeze()
|
|
Object |
get(EStructuralFeature feature,
int index)
|
|
InternalCDOBranch |
getBranch()
Returns the branch of this branch version. |
|
Object |
getContainerID()
|
|
int |
getContainingFeatureID()
Provides the input to the calculation of the feature in the container revision that actually holds this revision. |
|
CDOID |
getID()
|
|
CDOList |
getList(EStructuralFeature feature)
|
|
CDOList |
getList(EStructuralFeature feature,
int size)
|
|
CDOPermission |
getPermission()
|
|
CDOID |
getResourceID()
|
|
long |
getRevised()
|
|
long |
getTimeStamp()
Returns the time stamp of this branch point, or the fixed special time stamp unspecified if this branch point marks the head of a branch. |
|
Object |
getValue(EStructuralFeature feature)
Should never return CDORevisionData.NIL |
|
int |
getVersion()
Returns the version number of this branch version. |
|
int |
hashCode(EStructuralFeature feature)
|
|
int |
indexOf(EStructuralFeature feature,
Object value)
|
|
boolean |
isEmpty(EStructuralFeature feature)
|
|
boolean |
isFrozen()
|
|
boolean |
isUnchunked()
|
|
int |
lastIndexOf(EStructuralFeature feature,
Object value)
|
|
void |
merge(CDORevisionDelta delta)
|
|
Object |
move(EStructuralFeature feature,
int targetIndex,
int sourceIndex)
|
|
void |
read(CDODataInput in)
|
|
Object |
remove(EStructuralFeature feature,
int index)
|
|
Object |
set(EStructuralFeature feature,
int index,
Object value)
|
|
void |
setBranchPoint(CDOBranchPoint branchPoint)
|
|
void |
setContainerID(Object containerID)
|
|
void |
setContainingFeatureID(int containingFeatureID)
|
|
void |
setID(CDOID id)
|
|
void |
setList(EStructuralFeature feature,
InternalCDOList list)
|
|
void |
setPermission(CDOPermission permission)
|
|
void |
setResourceID(CDOID resourceID)
|
|
void |
setRevised(long revised)
|
|
void |
setUnchunked()
|
|
Object |
setValue(EStructuralFeature feature,
Object value)
|
|
void |
setVersion(int version)
|
|
int |
size(EStructuralFeature feature)
|
|
Object[] |
toArray(EStructuralFeature feature)
|
|
|
toArray(EStructuralFeature feature,
T[] array)
|
|
void |
unset(EStructuralFeature feature)
|
|
void |
write(CDODataOutput out,
int referenceChunk)
|
|
void |
write(CDODataOutput out,
int referenceChunk,
CDOBranchPoint securityContext)
|
Methods inherited from class org.eclipse.emf.cdo.spi.common.revision.AbstractCDORevision |
---|
accept, accept, adjustForCommit, data, equals, getAllPersistentFeatures, getClassInfo, getEClass, getFeatureIndex, getProperRevision, getRevisionForID, hashCode, initClassInfo, isHistorical, isReadable, isResource, isResourceFolder, isResourceNode, isValid, isValid, isWritable, revision, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StubCDORevision(EClass eClass)
protected StubCDORevision(InternalCDOClassInfo classInfo)
Method Detail |
---|
public int compareTo(CDOBranchPoint o)
public void setID(CDOID id)
public void setVersion(int version)
public void setBranchPoint(CDOBranchPoint branchPoint)
public void setRevised(long revised)
public void setResourceID(CDOID resourceID)
public void setContainerID(Object containerID)
public void setContainingFeatureID(int containingFeatureID)
public void add(EStructuralFeature feature, int index, Object value)
public void clear(EStructuralFeature feature)
public Object move(EStructuralFeature feature, int targetIndex, int sourceIndex)
public Object remove(EStructuralFeature feature, int index)
public Object set(EStructuralFeature feature, int index, Object value)
public void unset(EStructuralFeature feature)
public Object getValue(EStructuralFeature feature)
InternalCDORevision
CDORevisionData.NIL
public Object setValue(EStructuralFeature feature, Object value)
public void setList(EStructuralFeature feature, InternalCDOList list)
public CDOList getList(EStructuralFeature feature)
public CDOList getList(EStructuralFeature feature, int size)
size
- the initialCapacity of a new list to be created if this revision has no list so far (its size will always
be 0), or -1 to skip list creation and return null
in this case.public void read(CDODataInput in) throws IOException
IOException
public void write(CDODataOutput out, int referenceChunk) throws IOException
IOException
public void write(CDODataOutput out, int referenceChunk, CDOBranchPoint securityContext) throws IOException
IOException
public void convertEObjects(CDOIDProvider oidProvider)
public int getVersion()
CDOBranchVersion
public long getRevised()
public InternalCDORevisionDelta compare(CDORevision origin)
public void merge(CDORevisionDelta delta)
public InternalCDORevision copy()
public CDOID getID()
public InternalCDOBranch getBranch()
CDOBranchVersion
public long getTimeStamp()
CDOBranchPoint
unspecified
if this branch point marks the head
of a branch.
public CDOID getResourceID()
public Object getContainerID()
public int getContainingFeatureID()
CDORevisionData
Usage Example:
CDORevision revision = ...;
CDORevision container = Util.getRevision(revision.data().getContainerID());
int containingFeatureID = revision.data().getContainingFeatureID();
EStructuralFeature feature = containingFeatureID <= InternalEObject.EOPPOSITE_FEATURE_BASE ?
container.getEClass().getEStructuralFeature(InternalEObject.EOPPOSITE_FEATURE_BASE - containingFeatureID) :
((EReference)revision.getEClass().getEStructuralFeature(containingFeatureID)).getEOpposite();
BasicEObjectImpl.eContainingFeature()
,
CDORevisionData.getContainerID()
public Object get(EStructuralFeature feature, int index)
public int size(EStructuralFeature feature)
public boolean isEmpty(EStructuralFeature feature)
public boolean contains(EStructuralFeature feature, Object value)
public int indexOf(EStructuralFeature feature, Object value)
public int lastIndexOf(EStructuralFeature feature, Object value)
public <T> T[] toArray(EStructuralFeature feature, T[] array)
public Object[] toArray(EStructuralFeature feature)
public int hashCode(EStructuralFeature feature)
public boolean adjustReferences(CDOReferenceAdjuster referenceAdjuster)
public EStructuralFeature[] clearValues()
public CDOPermission getPermission()
public void setPermission(CDOPermission permission)
public void freeze()
public boolean isFrozen()
public boolean isUnchunked()
public void setUnchunked()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |