| /*************************************************************************** |
| * Copyright (c) 2004 - 2008 Eike Stepper, Germany. |
| * 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.server.db; |
| |
| import org.eclipse.emf.cdo.common.id.CDOID; |
| import org.eclipse.emf.cdo.common.model.CDOClass; |
| import org.eclipse.emf.cdo.common.model.CDOFeature; |
| import org.eclipse.emf.cdo.common.revision.CDORevision; |
| |
| import org.eclipse.net4j.db.ddl.IDBTable; |
| |
| import java.util.List; |
| import java.util.Set; |
| |
| /** |
| * @author Eike Stepper |
| */ |
| public interface IClassMapping |
| { |
| public IMappingStrategy getMappingStrategy(); |
| |
| public CDOClass getCDOClass(); |
| |
| public IDBTable getTable(); |
| |
| public Set<IDBTable> getAffectedTables(); |
| |
| /** |
| * @since 2.0 |
| */ |
| public IFeatureMapping getFeatureMapping(CDOFeature feature); |
| |
| public List<IAttributeMapping> getAttributeMappings(); |
| |
| public List<IReferenceMapping> getReferenceMappings(); |
| |
| public IAttributeMapping getAttributeMapping(CDOFeature feature); |
| |
| public IReferenceMapping getReferenceMapping(CDOFeature feature); |
| |
| public void writeRevision(IDBStoreWriter storeWriter, CDORevision revision); |
| |
| /** |
| * @since 2.0 |
| */ |
| public void detachObject(IDBStoreWriter storeWriter, CDOID id, long revised); |
| |
| public void readRevision(IDBStoreReader storeReader, CDORevision revision, int referenceChunk); |
| |
| public void readRevisionByTime(IDBStoreReader storeReader, CDORevision revision, long timeStamp, int referenceChunk); |
| |
| public void readRevisionByVersion(IDBStoreReader storeReader, CDORevision revision, int version, int referenceChunk); |
| } |