public void bind()
    {
        // If necessary create a fresh transaction id.
        if ((txId == null) || !txId.isValid())
        {
            txId = TxManager.createTxId();
        }

        // Bind the transaction to the current thread.
        TxManager.assignTxIdToThread(txId);

        // Bind this session to the current thread.
        threadSession.set(this);
    }
public void bind()
    {
        
        if ((txId == null) || !txId.isValid())
        {
            txId = TxManager.createTxId();
        }

        
        TxManager.assignTxIdToThread(txId);

        
        threadSession.set(this);
    }
public void bind ( ) { // If necessary create a fresh transaction id. if ( ( txId == null ) || ! txId . isValid ( ) ) { txId = TxManager . createTxId ( ) ; } // Bind the transaction to the current thread. TxManager . assignTxIdToThread ( txId ) ; // Bind this session to the current thread. threadSession . set ( this ) ; }
Binds the session as a transactional context to the current thread, if it is not already bound.
Binds the session as a transactional context to the current thread if it is not already bound .