Class PostgresConnectionValidation
- java.lang.Object
-
- org.glassfish.api.jdbc.validation.PostgresConnectionValidation
-
- All Implemented Interfaces:
ConnectionValidation
public class PostgresConnectionValidation extends Object implements ConnectionValidation
Provide custom implementation of connection validation for postgres dbvendor. Provides a custom connection validation mechanism for Postgres dbVendor if custom-validation is chosen as the connection-validation-method.- Author:
- Shalini M
-
-
Constructor Summary
Constructors Constructor Description PostgresConnectionValidation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisConnectionValid(Connection con, int statementTimeout)Check for validity ofjava.sql.Connection
-
-
-
Method Detail
-
isConnectionValid
public boolean isConnectionValid(Connection con, int statementTimeout)
Check for validity ofjava.sql.Connection- Specified by:
isConnectionValidin interfaceConnectionValidation- Parameters:
con-java.sql.Connectionto be validatedstatementTimeout- The time in seconds to wait for the query to complete- Returns:
- True if connection is valid
-
-