Java Code Examples for org.apache.tomcat.jdbc.pool.Validator

The following examples show how to use org.apache.tomcat.jdbc.pool.Validator. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: dal   Source File: SingleDataSource.java    License: Apache License 2.0 5 votes vote down vote up
private void setPoolPropertiesIntoValidator(PoolProperties poolProperties) {
    if (poolProperties == null)
        return;

    Validator validator = poolProperties.getValidator();
    if (validator == null)
        return;

    if (!(validator instanceof ValidatorProxy))
        return;

    ValidatorProxy dsValidator = (ValidatorProxy) validator;
    dsValidator.setPoolProperties(poolProperties);
}
 
Example 2
Source Project: Tomcat8-Source-Read   Source File: ConnectionPool.java    License: MIT License 4 votes vote down vote up
/**
 * {@inheritDoc}
 */

@Override
public Validator getValidator() {
    return getPoolProperties().getValidator();
}
 
Example 3
Source Project: Tomcat8-Source-Read   Source File: ConnectionPool.java    License: MIT License 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public void setValidator(Validator validator) {
    getPoolProperties().setValidator(validator);
}
 
Example 4
Source Project: Tomcat7.0.67   Source File: ConnectionPool.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */

@Override
public Validator getValidator() {
    return getPoolProperties().getValidator();
}
 
Example 5
Source Project: Tomcat7.0.67   Source File: ConnectionPool.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public void setValidator(Validator validator) {
    getPoolProperties().setValidator(validator);
}
 
Example 6
Source Project: tomcatsrc   Source File: ConnectionPool.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */

@Override
public Validator getValidator() {
    return getPoolProperties().getValidator();
}
 
Example 7
Source Project: tomcatsrc   Source File: ConnectionPool.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public void setValidator(Validator validator) {
    getPoolProperties().setValidator(validator);
}