Interface ConnectionValidator
- All Known Implementing Classes:
DriverManagerConnectionProviderImpl
public interface ConnectionValidator
Contract for validating JDBC connections.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid(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:
trueif the connection is valid,falseotherwise- Throws:
SQLException- when an error happens due to the connection usage leading to a connection close
-