Package org.eclipse.emf.cdo.server
Klasse StoreThreadLocal
java.lang.Object
org.eclipse.emf.cdo.server.StoreThreadLocal
Provides server-side consumers with the
store accessor
that is valid in the context of a
specific session
during read operations or a specific commit context
during
write operations.- Seit:
- 2.0
- Autor:
- Eike Stepper
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic final class
AnIllegalStateException
that can be thrown fromgetSession()
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic IStoreAccessor
static IStoreAccessor.CommitContext
static InternalSession
Returns the session associated with the current thread.static boolean
static boolean
static boolean
static void
release()
static void
remove()
static void
setAccessor
(IStoreAccessor accessor) static void
setCommitContext
(IStoreAccessor.CommitContext commitContext) static void
setSession
(InternalSession session) static Runnable
static <T> Callable
<T>
-
Methodendetails
-
wrap
- Seit:
- 4.11
-
wrap
- Seit:
- 4.11
-
setSession
- Seit:
- 3.0
-
getSession
Returns the session associated with the current thread.- Gibt zurück:
- Never
null
. - Löst aus:
IllegalStateException
- if no session is associated with the current thread.StoreThreadLocal.NoSessionRegisteredException
- Seit:
- 3.0
-
hasSession
public static boolean hasSession()- Seit:
- 4.2
-
setAccessor
-
getAccessor
-
hasAccessor
public static boolean hasAccessor()- Seit:
- 4.7
-
setCommitContext
-
getCommitContext
-
hasCommitContext
public static boolean hasCommitContext()- Seit:
- 4.7
-
release
public static void release()- Seit:
- 4.2
-
remove
public static void remove()- Seit:
- 4.5
-