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 classAnIllegalStateExceptionthat can be thrown fromgetSession(). -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic IStoreAccessorstatic IStoreAccessor.CommitContextstatic InternalSessionReturns the session associated with the current thread.static booleanstatic booleanstatic booleanstatic voidrelease()static voidremove()static voidsetAccessor(IStoreAccessor accessor) static voidsetCommitContext(IStoreAccessor.CommitContext commitContext) static voidsetSession(InternalSession session) static Runnablestatic <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
-