blob: ee2568606e8be78ed61d0c662d3753eca1f28bbf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/***************************************************************************
* Copyright (c) 2004 - 2008 Eike Stepper, Germany.
* 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;
}
}
|