| /* |
| * Copyright (c) 2010-2014 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 |
| * Caspar De Groot - bug 341081 |
| */ |
| package org.eclipse.emf.cdo.spi.common.revision; |
| |
| import org.eclipse.emf.cdo.common.branch.CDOBranch; |
| import org.eclipse.emf.cdo.common.branch.CDOBranchManager; |
| import org.eclipse.emf.cdo.common.branch.CDOBranchPoint; |
| import org.eclipse.emf.cdo.common.id.CDOID; |
| import org.eclipse.emf.cdo.common.id.CDOIDProvider; |
| import org.eclipse.emf.cdo.common.protocol.CDODataInput; |
| import org.eclipse.emf.cdo.common.protocol.CDODataOutput; |
| import org.eclipse.emf.cdo.common.revision.CDOList; |
| import org.eclipse.emf.cdo.common.revision.CDORevision; |
| import org.eclipse.emf.cdo.common.revision.CDORevisionData; |
| import org.eclipse.emf.cdo.common.revision.CDORevisionValueVisitor; |
| import org.eclipse.emf.cdo.common.revision.delta.CDORevisionDelta; |
| import org.eclipse.emf.cdo.common.security.CDOPermission; |
| import org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranch; |
| import org.eclipse.emf.cdo.spi.common.model.InternalCDOClassInfo; |
| |
| import org.eclipse.net4j.util.Predicate; |
| |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.EStructuralFeature; |
| |
| import java.io.IOException; |
| |
| /** |
| * If the meaning of this type isn't clear, there really should be more of a description here... |
| * |
| * @author Eike Stepper |
| * @since 3.0 |
| */ |
| public abstract class DelegatingCDORevision implements InternalCDORevision |
| { |
| public DelegatingCDORevision() |
| { |
| } |
| |
| public abstract InternalCDORevision getDelegate(); |
| |
| /** |
| * @since 4.2 |
| */ |
| public InternalCDORevision getRevisionForID(CDOID id) |
| { |
| return getDelegate().getRevisionForID(id); |
| } |
| |
| /** |
| * @since 4.2 |
| */ |
| public InternalCDORevision getProperRevision() |
| { |
| return getDelegate().getProperRevision(); |
| } |
| |
| /** |
| * @since 4.0 |
| */ |
| public boolean adjustReferences(CDOReferenceAdjuster referenceAdjuster) |
| { |
| return getDelegate().adjustReferences(referenceAdjuster); |
| } |
| |
| /** |
| * @since 4.3 |
| */ |
| public void adjustBranches(CDOBranchManager newBranchManager) |
| { |
| getDelegate().adjustBranches(newBranchManager); |
| } |
| |
| public long getTimeStamp() |
| { |
| return getDelegate().getTimeStamp(); |
| } |
| |
| /** |
| * @since 4.2 |
| */ |
| public InternalCDOBranch getBranch() |
| { |
| return getDelegate().getBranch(); |
| } |
| |
| public boolean isHistorical() |
| { |
| return getDelegate().isHistorical(); |
| } |
| |
| public CDOID getID() |
| { |
| return getDelegate().getID(); |
| } |
| |
| public CDORevision revision() |
| { |
| return getDelegate().revision(); |
| } |
| |
| public CDOID getResourceID() |
| { |
| return getDelegate().getResourceID(); |
| } |
| |
| public Object getContainerID() |
| { |
| return getDelegate().getContainerID(); |
| } |
| |
| public int getContainingFeatureID() |
| { |
| return getDelegate().getContainingFeatureID(); |
| } |
| |
| public Object get(EStructuralFeature feature, int index) |
| { |
| return getDelegate().get(feature, index); |
| } |
| |
| public EClass getEClass() |
| { |
| return getDelegate().getEClass(); |
| } |
| |
| public int getVersion() |
| { |
| return getDelegate().getVersion(); |
| } |
| |
| public int size(EStructuralFeature feature) |
| { |
| return getDelegate().size(feature); |
| } |
| |
| public long getRevised() |
| { |
| return getDelegate().getRevised(); |
| } |
| |
| public boolean isEmpty(EStructuralFeature feature) |
| { |
| return getDelegate().isEmpty(feature); |
| } |
| |
| public boolean isValid(long timeStamp) |
| { |
| return getDelegate().isValid(timeStamp); |
| } |
| |
| /** |
| * @since 4.0 |
| */ |
| public boolean isValid(CDOBranchPoint branchPoint) |
| { |
| return getDelegate().isValid(branchPoint); |
| } |
| |
| /** |
| * @since 4.0 |
| */ |
| public InternalCDORevision copy() |
| { |
| return null; |
| } |
| |
| /** |
| * @since 4.2 |
| */ |
| public InternalCDOClassInfo getClassInfo() |
| { |
| return getDelegate().getClassInfo(); |
| } |
| |
| public void setID(CDOID id) |
| { |
| getDelegate().setID(id); |
| } |
| |
| public boolean contains(EStructuralFeature feature, Object value) |
| { |
| return getDelegate().contains(feature, value); |
| } |
| |
| public boolean isResourceNode() |
| { |
| return getDelegate().isResourceNode(); |
| } |
| |
| public void setVersion(int version) |
| { |
| getDelegate().setVersion(version); |
| } |
| |
| public boolean isResourceFolder() |
| { |
| return getDelegate().isResourceFolder(); |
| } |
| |
| public int indexOf(EStructuralFeature feature, Object value) |
| { |
| return getDelegate().indexOf(feature, value); |
| } |
| |
| public boolean isResource() |
| { |
| return getDelegate().isResource(); |
| } |
| |
| public void setBranchPoint(CDOBranchPoint branchPoint) |
| { |
| getDelegate().setBranchPoint(branchPoint); |
| } |
| |
| public void adjustForCommit(CDOBranch branch, long timeStamp) |
| { |
| getDelegate().adjustForCommit(branch, timeStamp); |
| } |
| |
| public CDORevisionData data() |
| { |
| return getDelegate().data(); |
| } |
| |
| public int lastIndexOf(EStructuralFeature feature, Object value) |
| { |
| return getDelegate().lastIndexOf(feature, value); |
| } |
| |
| public void setRevised(long revised) |
| { |
| getDelegate().setRevised(revised); |
| } |
| |
| public InternalCDORevisionDelta compare(CDORevision origin) |
| { |
| return getDelegate().compare(origin); |
| } |
| |
| public void setResourceID(CDOID resourceID) |
| { |
| getDelegate().setResourceID(resourceID); |
| } |
| |
| public void merge(CDORevisionDelta delta) |
| { |
| getDelegate().merge(delta); |
| } |
| |
| public <T> T[] toArray(EStructuralFeature feature, T[] array) |
| { |
| return getDelegate().toArray(feature, array); |
| } |
| |
| public void setContainerID(Object containerID) |
| { |
| getDelegate().setContainerID(containerID); |
| } |
| |
| public void setContainingFeatureID(int containingFeatureID) |
| { |
| getDelegate().setContainingFeatureID(containingFeatureID); |
| } |
| |
| public Object[] toArray(EStructuralFeature feature) |
| { |
| return getDelegate().toArray(feature); |
| } |
| |
| public void add(EStructuralFeature feature, int index, Object value) |
| { |
| getDelegate().add(feature, index, value); |
| } |
| |
| public int hashCode(EStructuralFeature feature) |
| { |
| return getDelegate().hashCode(feature); |
| } |
| |
| public void clear(EStructuralFeature feature) |
| { |
| getDelegate().clear(feature); |
| } |
| |
| public Object move(EStructuralFeature feature, int targetIndex, int sourceIndex) |
| { |
| return getDelegate().move(feature, targetIndex, sourceIndex); |
| } |
| |
| public Object remove(EStructuralFeature feature, int index) |
| { |
| return getDelegate().remove(feature, index); |
| } |
| |
| public Object set(EStructuralFeature feature, int index, Object value) |
| { |
| return getDelegate().set(feature, index, value); |
| } |
| |
| public void unset(EStructuralFeature feature) |
| { |
| getDelegate().unset(feature); |
| } |
| |
| public Object getValue(EStructuralFeature feature) |
| { |
| return getDelegate().getValue(feature); |
| } |
| |
| public Object setValue(EStructuralFeature feature, Object value) |
| { |
| return getDelegate().setValue(feature, value); |
| } |
| |
| public void setList(EStructuralFeature feature, InternalCDOList list) |
| { |
| getDelegate().setList(feature, list); |
| } |
| |
| public CDOList getList(EStructuralFeature feature) |
| { |
| return getDelegate().getList(feature); |
| } |
| |
| public CDOList getList(EStructuralFeature feature, int size) |
| { |
| return getDelegate().getList(feature, size); |
| } |
| |
| public void read(CDODataInput in) throws IOException |
| { |
| getDelegate().read(in); |
| } |
| |
| /** |
| * @since 4.3 |
| */ |
| public boolean readValues(CDODataInput in) throws IOException |
| { |
| return getDelegate().readValues(in); |
| } |
| |
| public void write(CDODataOutput out, int referenceChunk) throws IOException |
| { |
| getDelegate().write(out, referenceChunk); |
| } |
| |
| /** |
| * @since 4.1 |
| */ |
| public void write(CDODataOutput out, int referenceChunk, CDOBranchPoint securityContext) throws IOException |
| { |
| getDelegate().write(out, referenceChunk, securityContext); |
| } |
| |
| /** |
| * @since 4.3 |
| */ |
| public void writeValues(CDODataOutput out, int referenceChunk) throws IOException |
| { |
| getDelegate().writeValues(out, referenceChunk); |
| } |
| |
| public void convertEObjects(CDOIDProvider oidProvider) |
| { |
| getDelegate().convertEObjects(oidProvider); |
| } |
| |
| /** |
| * @since 4.2 |
| */ |
| public EStructuralFeature[] clearValues() |
| { |
| return getDelegate().clearValues(); |
| } |
| |
| /** |
| * @since 4.3 |
| */ |
| public String getResourceNodeName() |
| { |
| return getDelegate().getResourceNodeName(); |
| } |
| |
| /** |
| * @since 4.1 |
| */ |
| public CDOPermission getPermission() |
| { |
| return getDelegate().getPermission(); |
| } |
| |
| /** |
| * @since 4.1 |
| */ |
| public void setPermission(CDOPermission permission) |
| { |
| getDelegate().setPermission(permission); |
| } |
| |
| /** |
| * @since 4.1 |
| */ |
| public boolean isReadable() |
| { |
| return getDelegate().isReadable(); |
| } |
| |
| /** |
| * @since 4.1 |
| */ |
| public boolean isWritable() |
| { |
| return getDelegate().isWritable(); |
| } |
| |
| /** |
| * @since 4.2 |
| */ |
| public void accept(CDORevisionValueVisitor visitor) |
| { |
| getDelegate().accept(visitor); |
| } |
| |
| /** |
| * @since 4.2 |
| */ |
| public void accept(CDORevisionValueVisitor visitor, Predicate<EStructuralFeature> filter) |
| { |
| getDelegate().accept(visitor, filter); |
| } |
| |
| /** |
| * @since 4.3 |
| */ |
| public boolean bypassPermissionChecks(boolean on) |
| { |
| return getDelegate().bypassPermissionChecks(on); |
| } |
| |
| /** |
| * @since 4.3 |
| */ |
| public boolean isListPreserving() |
| { |
| return getDelegate().isListPreserving(); |
| } |
| |
| /** |
| * @since 4.3 |
| */ |
| public void setListPreserving() |
| { |
| getDelegate().setListPreserving(); |
| } |
| |
| /** |
| * @since 4.0 |
| */ |
| public void freeze() |
| { |
| getDelegate().freeze(); |
| } |
| |
| /** |
| * @since 4.2 |
| */ |
| public boolean isFrozen() |
| { |
| return getDelegate().isFrozen(); |
| } |
| |
| /** |
| * @since 4.1 |
| */ |
| public boolean isUnchunked() |
| { |
| return getDelegate().isUnchunked(); |
| } |
| |
| /** |
| * @since 4.1 |
| */ |
| public void setUnchunked() |
| { |
| getDelegate().setUnchunked(); |
| } |
| } |