diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/commit/CDOChangeSetDataImpl.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/commit/CDOChangeSetDataImpl.java | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/commit/CDOChangeSetDataImpl.java b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/commit/CDOChangeSetDataImpl.java new file mode 100644 index 0000000000..53cee76eda --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/commit/CDOChangeSetDataImpl.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2004 - 2010 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: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.internal.common.commit; + +import org.eclipse.emf.cdo.common.commit.CDOChangeSetData; +import org.eclipse.emf.cdo.common.id.CDOIDAndVersion; +import org.eclipse.emf.cdo.common.revision.CDORevisionKey; + +import java.util.List; + +/** + * @author Eike Stepper + */ +public class CDOChangeSetDataImpl implements CDOChangeSetData +{ + private List<CDOIDAndVersion> newObjects; + + private List<CDORevisionKey> changedObjects; + + private List<CDOIDAndVersion> detachedObjects; + + public CDOChangeSetDataImpl(List<CDOIDAndVersion> newObjects, List<CDORevisionKey> changedObjects, + List<CDOIDAndVersion> detachedObjects) + { + this.newObjects = newObjects; + this.changedObjects = changedObjects; + this.detachedObjects = detachedObjects; + } + + public List<CDOIDAndVersion> getNewObjects() + { + return newObjects; + } + + public List<CDORevisionKey> getChangedObjects() + { + return changedObjects; + } + + public List<CDOIDAndVersion> getDetachedObjects() + { + return detachedObjects; + } +} |