|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.cdo.spi.common.revision.DelegatingCDORevision

| 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 | |
|---|---|
DelegatingCDORevision()
|
|
| Method Summary | ||
|---|---|---|
void |
add(EStructuralFeature feature,
int index,
Object value)
|
|
void |
adjustForCommit(CDOBranch branch,
long timeStamp)
|
|
boolean |
adjustReferences(CDOReferenceAdjuster referenceAdjuster)
|
|
void |
clear(EStructuralFeature feature)
|
|
InternalCDORevisionDelta |
compare(CDORevision origin)
|
|
boolean |
contains(EStructuralFeature feature,
Object value)
|
|
void |
convertEObjects(CDOIDProvider oidProvider)
|
|
InternalCDORevision |
copy()
|
|
CDORevisionData |
data()
|
|
void |
freeze()
|
|
Object |
get(EStructuralFeature feature,
int index)
|
|
CDOBranch |
getBranch()
Returns the branch of this branch version. |
|
CDOClassInfo |
getClassInfo()
|
|
Object |
getContainerID()
|
|
int |
getContainingFeatureID()
Provides the input to the calculation of the feature in the container revision that actually holds this revision. |
|
abstract InternalCDORevision |
getDelegate()
|
|
EClass |
getEClass()
|
|
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 |
isHistorical()
Returns true exactly if CDOBranchPoint.getTimeStamp() does not return CDOBranchPoint.UNSPECIFIED_DATE,
false otherwise. |
|
boolean |
isReadable()
|
|
boolean |
isResource()
|
|
boolean |
isResourceFolder()
|
|
boolean |
isResourceNode()
|
|
boolean |
isUnchunked()
|
|
boolean |
isValid(CDOBranchPoint branchPoint)
|
|
boolean |
isValid(long timeStamp)
|
|
boolean |
isWritable()
|
|
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)
|
|
CDORevision |
revision()
|
|
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingCDORevision()
| Method Detail |
|---|
public abstract InternalCDORevision getDelegate()
public boolean adjustReferences(CDOReferenceAdjuster referenceAdjuster)
adjustReferences in interface CDOReferenceAdjustablepublic long getTimeStamp()
CDOBranchPointunspecified if this branch point marks the head of a branch.
getTimeStamp in interface CDOBranchPointpublic CDOBranch getBranch()
CDOBranchVersion
getBranch in interface CDOBranchPointgetBranch in interface CDOBranchVersionpublic boolean isHistorical()
CDORevisiontrue exactly if CDOBranchPoint.getTimeStamp() does not return CDOBranchPoint.UNSPECIFIED_DATE,
false otherwise.
isHistorical in interface CDORevisionpublic CDOID getID()
getID in interface CDOIDAndVersionpublic CDORevision revision()
revision in interface CDORevisionDatapublic CDOID getResourceID()
getResourceID in interface CDORevisionDatapublic Object getContainerID()
getContainerID in interface CDORevisionDatapublic int getContainingFeatureID()
CDORevisionDataUsage 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();
getContainingFeatureID in interface CDORevisionDataBasicEObjectImpl.eContainingFeature(),
CDORevisionData.getContainerID()
public Object get(EStructuralFeature feature,
int index)
get in interface CDORevisionDatapublic EClass getEClass()
getEClass in interface CDORevisionpublic int getVersion()
CDOBranchVersion
getVersion in interface CDOBranchVersiongetVersion in interface CDOIDAndVersionpublic int size(EStructuralFeature feature)
size in interface CDORevisionDatapublic long getRevised()
getRevised in interface CDORevisablepublic boolean isEmpty(EStructuralFeature feature)
isEmpty in interface CDORevisionDatapublic boolean isValid(long timeStamp)
isValid in interface CDORevisionpublic boolean isValid(CDOBranchPoint branchPoint)
isValid in interface CDORevisionpublic InternalCDORevision copy()
copy in interface CDORevisioncopy in interface InternalCDORevisionpublic CDOClassInfo getClassInfo()
getClassInfo in interface InternalCDORevisionpublic void setID(CDOID id)
setID in interface InternalCDORevision
public boolean contains(EStructuralFeature feature,
Object value)
contains in interface CDORevisionDatapublic boolean isResourceNode()
isResourceNode in interface CDORevisionpublic void setVersion(int version)
setVersion in interface InternalCDORevisionpublic boolean isResourceFolder()
isResourceFolder in interface CDORevision
public int indexOf(EStructuralFeature feature,
Object value)
indexOf in interface CDORevisionDatapublic boolean isResource()
isResource in interface CDORevisionpublic void setBranchPoint(CDOBranchPoint branchPoint)
setBranchPoint in interface InternalCDORevision
public void adjustForCommit(CDOBranch branch,
long timeStamp)
adjustForCommit in interface InternalCDORevisionpublic CDORevisionData data()
data in interface CDORevision
public int lastIndexOf(EStructuralFeature feature,
Object value)
lastIndexOf in interface CDORevisionDatapublic void setRevised(long revised)
setRevised in interface InternalCDORevisionpublic InternalCDORevisionDelta compare(CDORevision origin)
compare in interface CDORevisioncompare in interface InternalCDORevisionpublic void setResourceID(CDOID resourceID)
setResourceID in interface InternalCDORevisionpublic void merge(CDORevisionDelta delta)
merge in interface CDORevision
public <T> T[] toArray(EStructuralFeature feature,
T[] array)
toArray in interface CDORevisionDatapublic void setContainerID(Object containerID)
setContainerID in interface InternalCDORevisionpublic void setContainingFeatureID(int containingFeatureID)
setContainingFeatureID in interface InternalCDORevisionpublic Object[] toArray(EStructuralFeature feature)
toArray in interface CDORevisionData
public void add(EStructuralFeature feature,
int index,
Object value)
add in interface InternalCDORevisionpublic int hashCode(EStructuralFeature feature)
hashCode in interface CDORevisionDatapublic void clear(EStructuralFeature feature)
clear in interface InternalCDORevision
public Object move(EStructuralFeature feature,
int targetIndex,
int sourceIndex)
move in interface InternalCDORevision
public Object remove(EStructuralFeature feature,
int index)
remove in interface InternalCDORevision
public Object set(EStructuralFeature feature,
int index,
Object value)
set in interface InternalCDORevisionpublic void unset(EStructuralFeature feature)
unset in interface InternalCDORevisionpublic Object getValue(EStructuralFeature feature)
InternalCDORevisionCDORevisionData.NIL
getValue in interface InternalCDORevision
public Object setValue(EStructuralFeature feature,
Object value)
setValue in interface InternalCDORevision
public void setList(EStructuralFeature feature,
InternalCDOList list)
setList in interface InternalCDORevisionpublic CDOList getList(EStructuralFeature feature)
getList in interface InternalCDORevision
public CDOList getList(EStructuralFeature feature,
int size)
getList in interface InternalCDORevisionsize - 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
read in interface InternalCDORevisionIOException
public void write(CDODataOutput out,
int referenceChunk)
throws IOException
write in interface InternalCDORevisionIOException
public void write(CDODataOutput out,
int referenceChunk,
CDOBranchPoint securityContext)
throws IOException
write in interface InternalCDORevisionIOExceptionpublic void convertEObjects(CDOIDProvider oidProvider)
convertEObjects in interface InternalCDORevisionpublic CDOPermission getPermission()
getPermission in interface CDORevisionpublic void setPermission(CDOPermission permission)
setPermission in interface InternalCDORevisionpublic boolean isReadable()
isReadable in interface CDORevisionpublic boolean isWritable()
isWritable in interface CDORevisionpublic void freeze()
freeze in interface InternalCDORevisionpublic boolean isUnchunked()
isUnchunked in interface InternalCDORevisionpublic void setUnchunked()
setUnchunked in interface InternalCDORevision
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||