Interface ConnectionValidator
- All Known Implementing Classes:
DriverManagerConnectionProviderImpl
,SharedDriverManagerConnectionProviderImpl
public interface ConnectionValidator
Contract for validating JDBC connections.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
isValid
(Connection connection) Checks if the given connection is still valid.
-
Field Details
-
ALWAYS_VALID
-
-
Method Details
-
isValid
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
-