X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db%2Fsrc%2Forg%2Fsimantics%2Fdb%2FSession.java;h=8e8b2d9bc7149121c46e87c9c4633b972f606c98;hp=aade52e8f4bb0beca3156b36b06bcd5ab65710a1;hb=e19c37f84fd1ce2d946578f7c05f3e45444ba67a;hpb=969bd23cab98a79ca9101af33334000879fb60c5 diff --git a/bundles/org.simantics.db/src/org/simantics/db/Session.java b/bundles/org.simantics.db/src/org/simantics/db/Session.java index aade52e8f..8e8b2d9bc 100644 --- a/bundles/org.simantics.db/src/org/simantics/db/Session.java +++ b/bundles/org.simantics.db/src/org/simantics/db/Session.java @@ -1,33 +1,33 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * 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: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.db; - - -/** - * A single session with a database. - * Should be replaced with RequestProcessor - * - * A session is created for a particular database revision and also for a - * particular time. - * - * @author Tuukka Lehtonen - * @see SessionManager - * @see Session - */ -public interface Session extends RequestProcessor { - /** - * Marks the current database state or the beginning of the current ongoing - * write transaction as an undo point. Calling this method several times - * before or during the same write transaction has no effect. - */ - void markUndoPoint(); -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * 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: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.db; + + +/** + * A single session with a database. + * Should be replaced with RequestProcessor + * + * A session is created for a particular database revision and also for a + * particular time. + * + * @author Tuukka Lehtonen + * @see SessionManager + * @see Session + */ +public interface Session extends RequestProcessor { + /** + * Marks the current database state or the beginning of the current ongoing + * write transaction as an undo point. Calling this method several times + * before or during the same write transaction has no effect. + */ + void markUndoPoint(); +}