org.eclipse.emf.cdo.spi.common.revision
Class DetachedCDORevision

java.lang.Object
  extended by org.eclipse.emf.cdo.spi.common.revision.AbstractCDORevision
      extended by org.eclipse.emf.cdo.spi.common.revision.StubCDORevision
          extended by org.eclipse.emf.cdo.spi.common.revision.SyntheticCDORevision
              extended by org.eclipse.emf.cdo.spi.common.revision.DetachedCDORevision
All Implemented Interfaces:
CDOBranchPoint, CDOBranchVersion, CDOIDAndVersion, CDORevisable, CDORevision, CDORevisionData, CDORevisionKey, CDOReferenceAdjustable, InternalCDORevision

public class DetachedCDORevision
extends SyntheticCDORevision

Since:
3.0

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
DetachedCDORevision(EClass eClass, CDOID id, CDOBranch branch, int version, long timeStamp)
           
DetachedCDORevision(EClass eClass, CDOID id, CDOBranch branch, int version, long timeStamp, long revised)
           
 
Method Summary
 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.
 int getVersion()
          Returns the version number of this branch version.
 void setRevised(long revised)
           
 
Methods inherited from class org.eclipse.emf.cdo.spi.common.revision.SyntheticCDORevision
freeze, getBranch, getID
 
Methods inherited from class org.eclipse.emf.cdo.spi.common.revision.StubCDORevision
add, adjustReferences, clear, compare, compareTo, contains, convertEObjects, copy, get, getContainerID, getContainingFeatureID, getList, getList, getPermission, getResourceID, getValue, hashCode, indexOf, isEmpty, isUnchunked, lastIndexOf, merge, move, read, remove, set, setBranchPoint, setContainerID, setContainingFeatureID, setID, setList, setPermission, setResourceID, setUnchunked, setValue, setVersion, size, toArray, toArray, unset, write, write
 
Methods inherited from class org.eclipse.emf.cdo.spi.common.revision.AbstractCDORevision
adjustForCommit, data, equals, getAllPersistentFeatures, getClassInfo, getEClass, getFeatureIndex, hashCode, isHistorical, isReadable, isResource, isResourceFolder, isResourceNode, isValid, isValid, isWritable, revision, setClassInfo, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DetachedCDORevision

public DetachedCDORevision(EClass eClass,
                           CDOID id,
                           CDOBranch branch,
                           int version,
                           long timeStamp)

DetachedCDORevision

public DetachedCDORevision(EClass eClass,
                           CDOID id,
                           CDOBranch branch,
                           int version,
                           long timeStamp,
                           long revised)
Since:
4.0
Method Detail

getVersion

public final int getVersion()
Description copied from interface: CDOBranchVersion
Returns the version number of this branch version.

Specified by:
getVersion in interface CDOBranchVersion
Specified by:
getVersion in interface CDOIDAndVersion
Overrides:
getVersion in class StubCDORevision

getTimeStamp

public long getTimeStamp()
Description copied from interface: CDOBranchPoint
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.

Specified by:
getTimeStamp in interface CDOBranchPoint
Overrides:
getTimeStamp in class StubCDORevision

getRevised

public long getRevised()
Specified by:
getRevised in interface CDORevisable
Overrides:
getRevised in class StubCDORevision

setRevised

public void setRevised(long revised)
Specified by:
setRevised in interface InternalCDORevision
Overrides:
setRevised in class StubCDORevision


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