Class JdbcConnectionUtils

java.lang.Object
io.micronaut.data.connection.support.JdbcConnectionUtils

@Internal public final class JdbcConnectionUtils extends Object
JDBC connection utils.
Since:
4.0.0
Author:
Denis Stepanov
  • Method Details

    • applyAutoCommit

      public static void applyAutoCommit(org.slf4j.Logger logger, Connection connection, boolean autoCommit, List<Runnable> onCompleteCallbacks)
      Apply auto commit value.
      Parameters:
      logger - The logger
      connection - The connection
      autoCommit - The autocommit value
      onCompleteCallbacks - The callback to restore the original value
    • applyReadOnly

      public static void applyReadOnly(org.slf4j.Logger logger, Connection connection, boolean isReadOnly, List<Runnable> onCompleteCallbacks)
      Apply read only value.
      Parameters:
      logger - The logger
      connection - The connection
      isReadOnly - The read only value
      onCompleteCallbacks - The callback to restore the original value
    • applyTransactionIsolation

      public static void applyTransactionIsolation(org.slf4j.Logger logger, Connection connection, int txIsolationLevel, List<Runnable> onCompleteCallbacks)
      Apply TX isolation level.
      Parameters:
      logger - The logger
      connection - The connection
      txIsolationLevel - The TX isolation level
      onCompleteCallbacks - The callback to restore the original value
    • applyHoldability

      public static void applyHoldability(org.slf4j.Logger logger, Connection connection, int holdability, List<Runnable> onCompleteCallbacks)
      Apply holdability.
      Parameters:
      logger - The logger
      connection - The connection
      holdability - The holdability
      onCompleteCallbacks - The callback to restore the original value