Interface ConnectionValidator

All Known Implementing Classes:
DriverManagerConnectionProviderImpl, SharedDriverManagerConnectionProviderImpl

public interface ConnectionValidator
Contract for validating JDBC connections.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ConnectionValidator
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isValid(Connection connection)
    Checks if the given connection is still valid.
  • Field Details

  • Method Details

    • isValid

      boolean isValid(Connection connection) throws SQLException
      Checks if the given connection is still valid.
      Returns:
      true if the connection is valid, false otherwise
      Throws:
      SQLException - when an error happens due to the connection usage leading to a connection close