Example usage for org.springframework.jdbc.datasource ConnectionHolder getConnectionHandle

List of usage examples for org.springframework.jdbc.datasource ConnectionHolder getConnectionHandle

Introduction

In this page you can find the example usage for org.springframework.jdbc.datasource ConnectionHolder getConnectionHandle.

Prototype

@Nullable
public ConnectionHandle getConnectionHandle() 

Source Link

Document

Return the ConnectionHandle held by this ConnectionHolder.

Usage

From source file:org.dalesbred.integration.spring.SpringTransactionManager.java

@Override
public boolean hasActiveTransaction() {
    ConnectionHolder conHolder = (ConnectionHolder) TransactionSynchronizationManager.getResource(dataSource);
    return conHolder != null
            && (conHolder.getConnectionHandle() != null || conHolder.isSynchronizedWithTransaction());
}