org.eclipse.emf.cdo.server
Class StoreThreadLocal

java.lang.Object
  extended by org.eclipse.emf.cdo.server.StoreThreadLocal

public final class StoreThreadLocal
extends Object

Since:
2.0
Author:
Eike Stepper

Method Summary
static IStoreAccessor getAccessor()
           
static IStoreAccessor.CommitContext getCommitContext()
           
static InternalSession getSession()
          Returns the session associated with the current thread.
static void release()
           
static void setAccessor(IStoreAccessor accessor)
           
static void setCommitContext(IStoreAccessor.CommitContext commitContext)
           
static void setSession(InternalSession session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setSession

public static void setSession(InternalSession session)
Since:
3.0

getSession

public static InternalSession getSession()
Returns the session associated with the current thread.

Returns:
Never null.
Throws:
IllegalStateException - if no session is associated with the current thread.
Since:
3.0

setAccessor

public static void setAccessor(IStoreAccessor accessor)

getAccessor

public static IStoreAccessor getAccessor()

setCommitContext

public static void setCommitContext(IStoreAccessor.CommitContext commitContext)

getCommitContext

public static IStoreAccessor.CommitContext getCommitContext()

release

public static void release()


Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.