Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 88c8495eca116b329f25c4ba1b2dc17eb7803302 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
   
                                                                       







                                                                        
   
                                                 
 

                                                     
                                                           









                            
                                                                   
 
                         




                                                                             
                                                
   
                               

   
                            
   
                     





















                                                                   
/**
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *    Simon McDuff - initial API and implementation
 *    Eike Stepper - maintenance
 */
package org.eclipse.emf.internal.cdo.transaction;

import org.eclipse.emf.cdo.common.id.CDOID;
import org.eclipse.emf.cdo.common.id.CDOIDAndVersion;
import org.eclipse.emf.cdo.transaction.CDOTimeStampContext;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;

/**
 * @author Simon McDuff
 * @since 2.0
 */
public class CDOTimeStampContextImpl implements CDOTimeStampContext
{
  private long timeStamp;

  private Set<CDOIDAndVersion> dirtyObjects = new HashSet<CDOIDAndVersion>();

  private Collection<CDOID> detachedObjects = new ArrayList<CDOID>();

  public CDOTimeStampContextImpl(long timeStamp)
  {
    this.timeStamp = timeStamp;
  }

  public long getTimeStamp()
  {
    return timeStamp;
  }

  public Set<CDOIDAndVersion> getDirtyObjects()
  {
    return dirtyObjects;
  }

  public void setDirtyObjects(Set<CDOIDAndVersion> dirtyObjects)
  {
    this.dirtyObjects = dirtyObjects;
  }

  public Collection<CDOID> getDetachedObjects()
  {
    return detachedObjects;
  }

  public void setDetachedObjects(Collection<CDOID> detachedObjects)
  {
    this.detachedObjects = detachedObjects;
  }
}

Back to the top