コード例 #1
0
 @Nullable
 Transaction getCurrentTransaction() {
   ThreadContextImpl threadContext = currentThreadContext.get();
   if (threadContext == null) {
     return null;
   }
   return threadContext.getTransaction();
 }
コード例 #2
0
 void removeTransaction(Transaction transaction) {
   currentThreadContext.set(null);
   transactions.remove(transaction);
 }
コード例 #3
0
 public Holder</*@Nullable*/ ThreadContextImpl> getCurrentThreadContextHolder() {
   return currentThreadContext.getHolder();
 }