Skip to main content
summaryrefslogtreecommitdiffstats
blob: c9f5d61fee1731fe85d2f5368d7821b2dcaa71c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/***************************************************************************
 * 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
 *    Simon McDuff - https://bugs.eclipse.org/bugs/show_bug.cgi?id=201266
 **************************************************************************/
package org.eclipse.emf.cdo.server;

import org.eclipse.emf.cdo.internal.protocol.model.CDOClassImpl;
import org.eclipse.emf.cdo.internal.protocol.model.CDOClassProxy;
import org.eclipse.emf.cdo.internal.protocol.model.CDOFeatureImpl;
import org.eclipse.emf.cdo.internal.protocol.model.CDOPackageImpl;
import org.eclipse.emf.cdo.internal.protocol.revision.CDORevisionImpl;
import org.eclipse.emf.cdo.internal.protocol.revision.delta.CDORevisionDeltaImpl;
import org.eclipse.emf.cdo.protocol.CDOID;
import org.eclipse.emf.cdo.protocol.model.CDOClass;
import org.eclipse.emf.cdo.protocol.model.CDOFeature;

/**
 * @author Eike Stepper
 */
public interface IStoreWriter extends IStoreReader
{
  public IView getView();

  /**
   * Stores a complete description of a package so that it can be restored to an identical state at a later point in
   * time.
   * <p>
   * <b>Note:</b> The implementor of this method must not assume that references to classes in this package or in any
   * other package are already resolved or are resolveable at the point in time when this method is called by the
   * framework. References to classes frequently appear in {@link CDOClass#getSuperTypes()} and in
   * {@link CDOFeature#getReferenceType()}. Instead {@link CDOClassImpl#getSuperTypeProxies()} and
   * {@link CDOFeatureImpl#getReferenceTypeProxy()} should be used.
   * <p>
   * 
   * @see CDOClassProxy#getPackageURI()
   * @see CDOClassProxy#getClassifierID()
   */
  public void writePackages(CDOPackageImpl... cdoPackages);

  public CDOID primeNewObject(CDOClass cdoClass);

  public void writeRevision(CDORevisionImpl revision);

  public void writeRevisionDelta(CDORevisionDeltaImpl delta);

  public void commit();

  public void rollback();
}

Back to the top