Top Description Methods
org.apache.tomcat.jdbc.pool

public Interface Validator

Imports
java.sql.Connection

Interface to be implemented by custom validator classes.
Author
mpassell

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the connection is valid
validate
(Connection
the Connection object to test
connection
,
int validateAction)

Validate a connection and return a boolean to indicate if it's valid.

Method Detail

validateback to summary
public boolean validate(Connection connection, int validateAction)

Validate a connection and return a boolean to indicate if it's valid.

Parameters
connection:Connection

the Connection object to test

validateAction:int

the action used. One of PooledConnection#VALIDATE_BORROW, PooledConnection#VALIDATE_IDLE, PooledConnection#VALIDATE_INIT or PooledConnection#VALIDATE_RETURN

Returns:boolean

true if the connection is valid