| /** |
| * 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.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(); |
| } |
| } |