Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 29de4a67c1c7f0a719bda2f39a25294cd996eece (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
/**
 * Copyright (c) 2004 - 2010 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:
 *    Simon McDuff - initial API and implementation
 *    Eike Stepper - maintenance
 *    Simon McDuff - bug 213402
 */
package org.eclipse.emf.cdo.transaction;

/**
 * Creates a save point in a {@link CDOUserTransaction} that can be used to roll back a part of the transaction.
 * <p>
 * <b>Note:</b> Save points do not flush to disk. Everything is done in memory on the client side.
 * 
 * @author Simon McDuff
 * @since 3.0
 */
public interface CDOUserSavepoint
{
  public CDOUserTransaction getTransaction();

  public CDOUserSavepoint getNextSavepoint();

  public CDOUserSavepoint getPreviousSavepoint();

  public boolean isValid();

  public void rollback();
}

Back to the top