/* * Copyright (c) 2009-2012, 2015 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 * Stefan Winkler - 271444: [DB] Multiple refactorings bug 271444 */ package org.eclipse.emf.cdo.server.db.mapping; import org.eclipse.emf.cdo.server.db.IDBStoreAccessor; import org.eclipse.emf.cdo.spi.common.revision.InternalCDORevision; /** * Interface which complements {@link IClassMapping} with methods to facilitate audit support. * * @see IMappingStrategy#hasAuditSupport() * @author Eike Stepper * @author Stefan Winkler * @since 2.0 */ public interface IClassMappingAuditSupport { /** * Read a specific version of a revision. If this method returns <code>true</code> it is guaranteed that * <code>revision.getVersion() == version</code> * * @param storeAccessor * the accessor to use. * @param revision * the revision object into which the data should be read. The revision has to be have its ID set to the * requested object's ID. The version is ignored, as the version parameter is used to determine the version * to be read. * @param listChunk * the chunk size to read attribute lists. * @return <code>true</code>, if the revision has been found and read correctly. <code>false</code> if the revision * could not be found. In this case, the content of <code>revision</code> is undefined. * @since 3.0 */ public boolean readRevisionByVersion(IDBStoreAccessor storeAccessor, InternalCDORevision revision, int listChunk); }