Example usage for javax.transaction Transaction equals

List of usage examples for javax.transaction Transaction equals

Introduction

In this page you can find the example usage for javax.transaction Transaction equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

From source file:org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.java

@Override
public void afterCompletion(int status) {
    Transaction current = null;/*from   ww  w  . ja  va 2 s. c  om*/
    try {
        current = TransactionHelper.lookupTransactionManager().getTransaction();
    } catch (Exception e) {
        throw new RuntimeException("no tx", e);
    }
    Transaction main = threadBound.get();
    if (main.equals(current)) {
        threadBound.remove();
    }
}