Example usage for org.springframework.boot.jdbc.metadata DataSourcePoolMetadata getDefaultAutoCommit

List of usage examples for org.springframework.boot.jdbc.metadata DataSourcePoolMetadata getDefaultAutoCommit

Introduction

In this page you can find the example usage for org.springframework.boot.jdbc.metadata DataSourcePoolMetadata getDefaultAutoCommit.

Prototype

Boolean getDefaultAutoCommit();

Source Link

Document

The default auto-commit state of connections created by this pool.

Usage

From source file:org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration.java

private boolean isDataSourceAutoCommitDisabled() {
    DataSourcePoolMetadata poolMetadata = this.poolMetadataProvider.getDataSourcePoolMetadata(getDataSource());
    return poolMetadata != null && Boolean.FALSE.equals(poolMetadata.getDefaultAutoCommit());
}