org.eclipse.emf.cdo.server
Interface IStoreWriter.CommitContext

Enclosing interface:
IStoreWriter

public static interface IStoreWriter.CommitContext

Represents the state of a single, logical commit operation which is driven through multiple calls to several methods on the IStoreWriter API. All these method calls get the same CommitContext instance passed so that the implementor of the IStoreWriter can track the state and progress of the commit operation.


Method Summary
 void addIDMapping(CDOIDTemp oldID, CDOID newID)
           
 void applyIDMappings()
           
 CDORevisionDelta[] getDirtyObjectDeltas()
          Returns an array of the dirty object deltas that are part of the commit operation represented by this CommitContext.
 CDORevision[] getDirtyObjects()
          Returns an array of the dirty objects that are part of the commit operation represented by this CommitContext.
 java.util.Map<CDOIDTemp,CDOID> getIDMappings()
          Returns an unmodifiable map from all temporary IDs (meta or not) to their persistent counter parts.
 CDORevision[] getNewObjects()
          Returns an array of the new objects that are part of the commit operation represented by this CommitContext.
 CDOPackage[] getNewPackages()
          Returns an array of the new packages that are part of the commit operation represented by this CommitContext.
 CDOPackageManager getPackageManager()
          Returns the temporary, transactional package manager associated with the commit operation represented by this CommitContext.
 long getTimeStamp()
          Returns the time stamp of this commit operation.
 int getTransactionID()
          Returns the ID of the transactional view (ITransaction) which is the scope of the commit operation represented by this CommitContext.
 

Method Detail

getTransactionID

int getTransactionID()
Returns the ID of the transactional view (ITransaction) which is the scope of the commit operation represented by this CommitContext.


getTimeStamp

long getTimeStamp()
Returns the time stamp of this commit operation.


getPackageManager

CDOPackageManager getPackageManager()
Returns the temporary, transactional package manager associated with the commit operation represented by this CommitContext. In addition to the packages registered with the session this package manager also contains the new packages that are part of this commit operation.


getNewPackages

CDOPackage[] getNewPackages()
Returns an array of the new packages that are part of the commit operation represented by this CommitContext.


getNewObjects

CDORevision[] getNewObjects()
Returns an array of the new objects that are part of the commit operation represented by this CommitContext.


getDirtyObjects

CDORevision[] getDirtyObjects()
Returns an array of the dirty objects that are part of the commit operation represented by this CommitContext.


getDirtyObjectDeltas

CDORevisionDelta[] getDirtyObjectDeltas()
Returns an array of the dirty object deltas that are part of the commit operation represented by this CommitContext.


getIDMappings

java.util.Map<CDOIDTemp,CDOID> getIDMappings()
Returns an unmodifiable map from all temporary IDs (meta or not) to their persistent counter parts. It is initially populated with the mappings of all new meta objects.


addIDMapping

void addIDMapping(CDOIDTemp oldID,
                  CDOID newID)

applyIDMappings

void applyIDMappings()

Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.