diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/commit/DelegatingCommitInfo.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/commit/DelegatingCommitInfo.java | 222 |
1 files changed, 111 insertions, 111 deletions
diff --git a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/commit/DelegatingCommitInfo.java b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/commit/DelegatingCommitInfo.java index 517e590bba..6f464afefe 100644 --- a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/commit/DelegatingCommitInfo.java +++ b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/commit/DelegatingCommitInfo.java @@ -1,111 +1,111 @@ -/* - * Copyright (c) 2004 - 2011 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.branch.CDOBranch; -import org.eclipse.emf.cdo.common.commit.CDOChangeKind; -import org.eclipse.emf.cdo.common.commit.CDOChangeSetData; -import org.eclipse.emf.cdo.common.commit.CDOCommitInfo; -import org.eclipse.emf.cdo.common.commit.CDOCommitInfoManager; -import org.eclipse.emf.cdo.common.id.CDOID; -import org.eclipse.emf.cdo.common.model.CDOPackageUnit; -import org.eclipse.emf.cdo.common.revision.CDOIDAndVersion; -import org.eclipse.emf.cdo.common.revision.CDORevisionKey; - -import java.util.List; -import java.util.Map; - -/** - * @author Eike Stepper - */ -public abstract class DelegatingCommitInfo implements CDOCommitInfo -{ - public DelegatingCommitInfo() - { - } - - protected abstract CDOCommitInfo getDelegate(); - - public CDOBranch getBranch() - { - return getDelegate().getBranch(); - } - - public CDOCommitInfoManager getCommitInfoManager() - { - return getDelegate().getCommitInfoManager(); - } - - public long getPreviousTimeStamp() - { - return getDelegate().getPreviousTimeStamp(); - } - - public long getTimeStamp() - { - return getDelegate().getTimeStamp(); - } - - public String getUserID() - { - return getDelegate().getUserID(); - } - - public String getComment() - { - return getDelegate().getComment(); - } - - public boolean isEmpty() - { - return getDelegate().isEmpty(); - } - - public List<CDOPackageUnit> getNewPackageUnits() - { - return getDelegate().getNewPackageUnits(); - } - - public List<CDOIDAndVersion> getNewObjects() - { - return getDelegate().getNewObjects(); - } - - public List<CDORevisionKey> getChangedObjects() - { - return getDelegate().getChangedObjects(); - } - - public List<CDOIDAndVersion> getDetachedObjects() - { - return getDelegate().getDetachedObjects(); - } - - public Map<CDOID, CDOChangeKind> getChangeKinds() - { - return getDelegate().getChangeKinds(); - } - - public CDOChangeKind getChangeKind(CDOID id) - { - return getDelegate().getChangeKind(id); - } - - public CDOChangeSetData copy() - { - return getDelegate().copy(); - } - - public void merge(CDOChangeSetData changeSetData) - { - getDelegate().merge(changeSetData); - } -} +/*
+ * Copyright (c) 2004 - 2012 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.branch.CDOBranch;
+import org.eclipse.emf.cdo.common.commit.CDOChangeKind;
+import org.eclipse.emf.cdo.common.commit.CDOChangeSetData;
+import org.eclipse.emf.cdo.common.commit.CDOCommitInfo;
+import org.eclipse.emf.cdo.common.commit.CDOCommitInfoManager;
+import org.eclipse.emf.cdo.common.id.CDOID;
+import org.eclipse.emf.cdo.common.model.CDOPackageUnit;
+import org.eclipse.emf.cdo.common.revision.CDOIDAndVersion;
+import org.eclipse.emf.cdo.common.revision.CDORevisionKey;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author Eike Stepper
+ */
+public abstract class DelegatingCommitInfo implements CDOCommitInfo
+{
+ public DelegatingCommitInfo()
+ {
+ }
+
+ protected abstract CDOCommitInfo getDelegate();
+
+ public CDOBranch getBranch()
+ {
+ return getDelegate().getBranch();
+ }
+
+ public CDOCommitInfoManager getCommitInfoManager()
+ {
+ return getDelegate().getCommitInfoManager();
+ }
+
+ public long getPreviousTimeStamp()
+ {
+ return getDelegate().getPreviousTimeStamp();
+ }
+
+ public long getTimeStamp()
+ {
+ return getDelegate().getTimeStamp();
+ }
+
+ public String getUserID()
+ {
+ return getDelegate().getUserID();
+ }
+
+ public String getComment()
+ {
+ return getDelegate().getComment();
+ }
+
+ public boolean isEmpty()
+ {
+ return getDelegate().isEmpty();
+ }
+
+ public List<CDOPackageUnit> getNewPackageUnits()
+ {
+ return getDelegate().getNewPackageUnits();
+ }
+
+ public List<CDOIDAndVersion> getNewObjects()
+ {
+ return getDelegate().getNewObjects();
+ }
+
+ public List<CDORevisionKey> getChangedObjects()
+ {
+ return getDelegate().getChangedObjects();
+ }
+
+ public List<CDOIDAndVersion> getDetachedObjects()
+ {
+ return getDelegate().getDetachedObjects();
+ }
+
+ public Map<CDOID, CDOChangeKind> getChangeKinds()
+ {
+ return getDelegate().getChangeKinds();
+ }
+
+ public CDOChangeKind getChangeKind(CDOID id)
+ {
+ return getDelegate().getChangeKind(id);
+ }
+
+ public CDOChangeSetData copy()
+ {
+ return getDelegate().copy();
+ }
+
+ public void merge(CDOChangeSetData changeSetData)
+ {
+ getDelegate().merge(changeSetData);
+ }
+}
|