diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/DelegatingCommitContext.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/DelegatingCommitContext.java | 218 |
1 files changed, 109 insertions, 109 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/DelegatingCommitContext.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/DelegatingCommitContext.java index c9979a97c6..9a653a6851 100644 --- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/DelegatingCommitContext.java +++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/DelegatingCommitContext.java @@ -1,109 +1,109 @@ -/*
- * 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.server;
-
-import org.eclipse.emf.cdo.common.branch.CDOBranchPoint;
-import org.eclipse.emf.cdo.common.id.CDOID;
-import org.eclipse.emf.cdo.common.revision.CDORevision;
-import org.eclipse.emf.cdo.server.IStoreAccessor;
-import org.eclipse.emf.cdo.server.IStoreAccessor.CommitContext;
-import org.eclipse.emf.cdo.server.ITransaction;
-import org.eclipse.emf.cdo.spi.common.model.InternalCDOPackageRegistry;
-import org.eclipse.emf.cdo.spi.common.model.InternalCDOPackageUnit;
-import org.eclipse.emf.cdo.spi.common.revision.InternalCDORevision;
-import org.eclipse.emf.cdo.spi.common.revision.InternalCDORevisionDelta;
-
-import org.eclipse.emf.ecore.EClass;
-
-import java.util.Map;
-
-/**
- * @author Eike Stepper
- */
-public abstract class DelegatingCommitContext implements IStoreAccessor.CommitContext
-{
- protected abstract CommitContext getDelegate();
-
- public ITransaction getTransaction()
- {
- return getDelegate().getTransaction();
- }
-
- public CDOBranchPoint getBranchPoint()
- {
- return getDelegate().getBranchPoint();
- }
-
- public String getUserID()
- {
- return getDelegate().getUserID();
- }
-
- public String getCommitComment()
- {
- return getDelegate().getCommitComment();
- }
-
- public boolean isAutoReleaseLocksEnabled()
- {
- return getDelegate().isAutoReleaseLocksEnabled();
- }
-
- public InternalCDOPackageRegistry getPackageRegistry()
- {
- return getDelegate().getPackageRegistry();
- }
-
- public InternalCDOPackageUnit[] getNewPackageUnits()
- {
- return getDelegate().getNewPackageUnits();
- }
-
- public InternalCDORevision[] getNewObjects()
- {
- return getDelegate().getNewObjects();
- }
-
- public InternalCDORevision[] getDirtyObjects()
- {
- return getDelegate().getDirtyObjects();
- }
-
- public InternalCDORevisionDelta[] getDirtyObjectDeltas()
- {
- return getDelegate().getDirtyObjectDeltas();
- }
-
- public CDOID[] getDetachedObjects()
- {
- return getDelegate().getDetachedObjects();
- }
-
- public Map<CDOID, EClass> getDetachedObjectTypes()
- {
- return getDelegate().getDetachedObjectTypes();
- }
-
- public CDORevision getRevision(CDOID id)
- {
- return getDelegate().getRevision(id);
- }
-
- public Map<CDOID, CDOID> getIDMappings()
- {
- return getDelegate().getIDMappings();
- }
-
- public String getRollbackMessage()
- {
- return getDelegate().getRollbackMessage();
- }
-}
+/* + * 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.server; + +import org.eclipse.emf.cdo.common.branch.CDOBranchPoint; +import org.eclipse.emf.cdo.common.id.CDOID; +import org.eclipse.emf.cdo.common.revision.CDORevision; +import org.eclipse.emf.cdo.server.IStoreAccessor; +import org.eclipse.emf.cdo.server.IStoreAccessor.CommitContext; +import org.eclipse.emf.cdo.server.ITransaction; +import org.eclipse.emf.cdo.spi.common.model.InternalCDOPackageRegistry; +import org.eclipse.emf.cdo.spi.common.model.InternalCDOPackageUnit; +import org.eclipse.emf.cdo.spi.common.revision.InternalCDORevision; +import org.eclipse.emf.cdo.spi.common.revision.InternalCDORevisionDelta; + +import org.eclipse.emf.ecore.EClass; + +import java.util.Map; + +/** + * @author Eike Stepper + */ +public abstract class DelegatingCommitContext implements IStoreAccessor.CommitContext +{ + protected abstract CommitContext getDelegate(); + + public ITransaction getTransaction() + { + return getDelegate().getTransaction(); + } + + public CDOBranchPoint getBranchPoint() + { + return getDelegate().getBranchPoint(); + } + + public String getUserID() + { + return getDelegate().getUserID(); + } + + public String getCommitComment() + { + return getDelegate().getCommitComment(); + } + + public boolean isAutoReleaseLocksEnabled() + { + return getDelegate().isAutoReleaseLocksEnabled(); + } + + public InternalCDOPackageRegistry getPackageRegistry() + { + return getDelegate().getPackageRegistry(); + } + + public InternalCDOPackageUnit[] getNewPackageUnits() + { + return getDelegate().getNewPackageUnits(); + } + + public InternalCDORevision[] getNewObjects() + { + return getDelegate().getNewObjects(); + } + + public InternalCDORevision[] getDirtyObjects() + { + return getDelegate().getDirtyObjects(); + } + + public InternalCDORevisionDelta[] getDirtyObjectDeltas() + { + return getDelegate().getDirtyObjectDeltas(); + } + + public CDOID[] getDetachedObjects() + { + return getDelegate().getDetachedObjects(); + } + + public Map<CDOID, EClass> getDetachedObjectTypes() + { + return getDelegate().getDetachedObjectTypes(); + } + + public CDORevision getRevision(CDOID id) + { + return getDelegate().getRevision(id); + } + + public Map<CDOID, CDOID> getIDMappings() + { + return getDelegate().getIDMappings(); + } + + public String getRollbackMessage() + { + return getDelegate().getRollbackMessage(); + } +} |