|
|||||||||
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.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 CDOReferenceAdjustable
public long getTimeStamp()
CDOBranchPoint
unspecified
if this branch point marks the head
of a branch.
getTimeStamp
in interface CDOBranchPoint
public CDOBranch getBranch()
CDOBranchVersion
getBranch
in interface CDOBranchPoint
getBranch
in interface CDOBranchVersion
public boolean isHistorical()
CDORevision
true
exactly if CDOBranchPoint.getTimeStamp()
does not return CDOBranchPoint.UNSPECIFIED_DATE
,
false
otherwise.
isHistorical
in interface CDORevision
public CDOID getID()
getID
in interface CDOIDAndVersion
public CDORevision revision()
revision
in interface CDORevisionData
public CDOID getResourceID()
getResourceID
in interface CDORevisionData
public Object getContainerID()
getContainerID
in interface CDORevisionData
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();
getContainingFeatureID
in interface CDORevisionData
BasicEObjectImpl.eContainingFeature()
,
CDORevisionData.getContainerID()
public Object get(EStructuralFeature feature, int index)
get
in interface CDORevisionData
public EClass getEClass()
getEClass
in interface CDORevision
public int getVersion()
CDOBranchVersion
getVersion
in interface CDOBranchVersion
getVersion
in interface CDOIDAndVersion
public int size(EStructuralFeature feature)
size
in interface CDORevisionData
public long getRevised()
getRevised
in interface CDORevisable
public boolean isEmpty(EStructuralFeature feature)
isEmpty
in interface CDORevisionData
public boolean isValid(long timeStamp)
isValid
in interface CDORevision
public boolean isValid(CDOBranchPoint branchPoint)
isValid
in interface CDORevision
public InternalCDORevision copy()
copy
in interface CDORevision
copy
in interface InternalCDORevision
public CDOClassInfo getClassInfo()
getClassInfo
in interface InternalCDORevision
public void setID(CDOID id)
setID
in interface InternalCDORevision
public boolean contains(EStructuralFeature feature, Object value)
contains
in interface CDORevisionData
public boolean isResourceNode()
isResourceNode
in interface CDORevision
public void setVersion(int version)
setVersion
in interface InternalCDORevision
public boolean isResourceFolder()
isResourceFolder
in interface CDORevision
public int indexOf(EStructuralFeature feature, Object value)
indexOf
in interface CDORevisionData
public boolean isResource()
isResource
in interface CDORevision
public void setBranchPoint(CDOBranchPoint branchPoint)
setBranchPoint
in interface InternalCDORevision
public void adjustForCommit(CDOBranch branch, long timeStamp)
adjustForCommit
in interface InternalCDORevision
public CDORevisionData data()
data
in interface CDORevision
public int lastIndexOf(EStructuralFeature feature, Object value)
lastIndexOf
in interface CDORevisionData
public void setRevised(long revised)
setRevised
in interface InternalCDORevision
public InternalCDORevisionDelta compare(CDORevision origin)
compare
in interface CDORevision
compare
in interface InternalCDORevision
public void setResourceID(CDOID resourceID)
setResourceID
in interface InternalCDORevision
public void merge(CDORevisionDelta delta)
merge
in interface CDORevision
public <T> T[] toArray(EStructuralFeature feature, T[] array)
toArray
in interface CDORevisionData
public void setContainerID(Object containerID)
setContainerID
in interface InternalCDORevision
public void setContainingFeatureID(int containingFeatureID)
setContainingFeatureID
in interface InternalCDORevision
public Object[] toArray(EStructuralFeature feature)
toArray
in interface CDORevisionData
public void add(EStructuralFeature feature, int index, Object value)
add
in interface InternalCDORevision
public int hashCode(EStructuralFeature feature)
hashCode
in interface CDORevisionData
public 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 InternalCDORevision
public void unset(EStructuralFeature feature)
unset
in interface InternalCDORevision
public Object getValue(EStructuralFeature feature)
InternalCDORevision
CDORevisionData.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 InternalCDORevision
public CDOList getList(EStructuralFeature feature)
getList
in interface InternalCDORevision
public CDOList getList(EStructuralFeature feature, int size)
getList
in interface InternalCDORevision
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
read
in interface InternalCDORevision
IOException
public void write(CDODataOutput out, int referenceChunk) throws IOException
write
in interface InternalCDORevision
IOException
public void write(CDODataOutput out, int referenceChunk, CDOBranchPoint securityContext) throws IOException
write
in interface InternalCDORevision
IOException
public void convertEObjects(CDOIDProvider oidProvider)
convertEObjects
in interface InternalCDORevision
public CDOPermission getPermission()
getPermission
in interface CDORevision
public void setPermission(CDOPermission permission)
setPermission
in interface InternalCDORevision
public boolean isReadable()
isReadable
in interface CDORevision
public boolean isWritable()
isWritable
in interface CDORevision
public void freeze()
freeze
in interface InternalCDORevision
public boolean isUnchunked()
isUnchunked
in interface InternalCDORevision
public void setUnchunked()
setUnchunked
in interface InternalCDORevision
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |