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 ConnectionValidator
ALWAYS_VALID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isValid(Connection connection)
Checks if the given connection is still valid.
-
-
-
Field Detail
-
ALWAYS_VALID
static final ConnectionValidator ALWAYS_VALID
-
-
Method Detail
-
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
-
-