@Test public void testInGlobalTransaction() { assertThat(RootContext.inGlobalTransaction()).isFalse(); RootContext.bind(DEFAULT_XID); assertThat(RootContext.inGlobalTransaction()).isTrue(); RootContext.unbind(); assertThat(RootContext.inGlobalTransaction()).isFalse(); assertThat(RootContext.getXID()).isNull(); }
public static boolean inGlobalTransaction() { return CONTEXT_HOLDER.get(KEY_XID) != null; }
RootContext { public static boolean inGlobalTransaction() { return CONTEXT_HOLDER.get(KEY_XID) != null; } }
RootContext { public static boolean inGlobalTransaction() { return CONTEXT_HOLDER.get(KEY_XID) != null; }  }
RootContext { public static boolean inGlobalTransaction() { return CONTEXT_HOLDER.get(KEY_XID) != null; }  static String getXID(); static void bind(String xid); static void bindGlobalLockFlag(); static String unbind(); static void unbindGlobalLockFlag(); static boolean inGlobalTransaction(); static boolean requireGlobalLock(); static void assertNotInGlobalTransaction(); }
RootContext { public static boolean inGlobalTransaction() { return CONTEXT_HOLDER.get(KEY_XID) != null; }  static String getXID(); static void bind(String xid); static void bindGlobalLockFlag(); static String unbind(); static void unbindGlobalLockFlag(); static boolean inGlobalTransaction(); static boolean requireGlobalLock(); static void assertNotInGlobalTransaction(); static final String KEY_XID; static final String KEY_GLOBAL_LOCK_FLAG; }