Top Description Fields Methods
org.hibernate.engine.jdbc.connections.internal

public Interface ConnectionValidator

Known Direct Implementers
org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl
Imports
java.sql.Connection, .SQLException

Contract for validating JDBC connections.
Author
Christian Beikov

Field Summary

Modifier and TypeField and Description
public static final ConnectionValidator

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the connection is valid, false otherwise
isValid
(Connection connection)

Checks if the given connection is still valid.

Field Detail

ALWAYS_VALIDback to summary
public static final ConnectionValidator ALWAYS_VALID

Method Detail

isValidback to summary
public boolean isValid(Connection connection) throws SQLException

Checks if the given connection is still valid.

Returns:boolean

true if the connection is valid, false otherwise

Exceptions
SQLException:
when an error happens due to the connection usage leading to a connection close