setStringIfNotNull(context, dataSource.getValidation().getCheckValidConnectionSql()); } else if (attributeName.equals(Constants.EXCEPTION_SORTER_CLASSNAME.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getExceptionSorter() == null) { return; setStringIfNotNull(context, dataSource.getValidation().getExceptionSorter().getClassName()); } else if (attributeName.equals(Constants.EXCEPTION_SORTER_PROPERTIES.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getExceptionSorter() == null) { return; final Map<String, String> propertiesMap = dataSource.getValidation().getExceptionSorter().getConfigPropertiesMap(); if (propertiesMap == null) { return; if (dataSource.getValidation().getStaleConnectionChecker() == null) { return; setStringIfNotNull(context, dataSource.getValidation().getStaleConnectionChecker().getClassName()); } else if (attributeName.equals(Constants.STALE_CONNECTION_CHECKER_PROPERTIES.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getStaleConnectionChecker() == null) {
if (validation.getCheckValidConnectionSql() != null) { managedConnectionFactory.setCheckValidConnectionSQL(validation.getCheckValidConnectionSql()); final Extension validConnectionChecker = validation.getValidConnectionChecker(); if (validConnectionChecker != null) { if (validConnectionChecker.getClassName() != null) { final Extension exceptionSorter = validation.getExceptionSorter(); if (exceptionSorter != null) { if (exceptionSorter.getClassName() != null) { final Extension staleConnectionChecker = validation.getStaleConnectionChecker(); if (staleConnectionChecker != null) { if (staleConnectionChecker.getClassName() != null) {
ds.getValidation().getCheckValidConnectionSql() != null && !ds.getValidation().getCheckValidConnectionSql().trim().equals("")) .getCheckValidConnectionSql())); ds.getValidation().getValidConnectionChecker() != null && ds.getValidation().getValidConnectionChecker().getClassName() != null) .getValidConnectionChecker().getClassName())); ds.getValidation().getValidConnectionChecker() != null && ds.getValidation().getValidConnectionChecker().getClassName() != null) for (Entry<String, String> connProperty : ds.getValidation().getValidConnectionChecker() .getConfigPropertiesMap().entrySet()) if (ds != null && ds.getValidation() != null && ds.getValidation().getExceptionSorter() != null && ds.getValidation().getExceptionSorter().getClassName() != null) .getExceptionSorter().getClassName())); if (ds != null && ds.getValidation() != null && ds.getValidation().getExceptionSorter() != null) for (Entry<String, String> connProperty : ds.getValidation().getExceptionSorter() .getConfigPropertiesMap().entrySet()) ds.getValidation().getStaleConnectionChecker() != null && ds.getValidation().getStaleConnectionChecker().getClassName() != null)
setStringIfNotNull(context, dataSource.getValidation().getCheckValidConnectionSql()); } else if (attributeName.equals(Constants.EXCEPTION_SORTER_CLASSNAME.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getExceptionSorter() == null) { return; setStringIfNotNull(context, dataSource.getValidation().getExceptionSorter().getClassName()); } else if (attributeName.equals(Constants.EXCEPTION_SORTER_PROPERTIES.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getExceptionSorter() == null) { return; final Map<String, String> propertiesMap = dataSource.getValidation().getExceptionSorter().getConfigPropertiesMap(); if (propertiesMap == null) { return; if (dataSource.getValidation().getStaleConnectionChecker() == null) { return; setStringIfNotNull(context, dataSource.getValidation().getStaleConnectionChecker().getClassName()); } else if (attributeName.equals(Constants.STALE_CONNECTION_CHECKER_PROPERTIES.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getStaleConnectionChecker() == null) {
if (validation.isValidateOnMatch() != null) { managedConnectionFactory.setValidateOnMatch(validation.isValidateOnMatch()); if (validation.getCheckValidConnectionSql() != null) { managedConnectionFactory.setCheckValidConnectionSQL(validation.getCheckValidConnectionSql()); final Extension validConnectionChecker = validation.getValidConnectionChecker(); if (validConnectionChecker != null) { if (validConnectionChecker.getClassName() != null) { final Extension exceptionSorter = validation.getExceptionSorter(); if (exceptionSorter != null) { if (exceptionSorter.getClassName() != null) { final Extension staleConnectionChecker = validation.getStaleConnectionChecker(); if (staleConnectionChecker != null) { if (staleConnectionChecker.getClassName() != null) {
setStringIfNotNull(context, dataSource.getValidation().getCheckValidConnectionSql()); } else if (attributeName.equals(Constants.EXCEPTION_SORTER_CLASSNAME.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getExceptionSorter() == null) { return; setStringIfNotNull(context, dataSource.getValidation().getExceptionSorter().getClassName()); } else if (attributeName.equals(Constants.EXCEPTION_SORTER_PROPERTIES.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getExceptionSorter() == null) { return; final Map<String, String> propertiesMap = dataSource.getValidation().getExceptionSorter().getConfigPropertiesMap(); if (propertiesMap == null) { return; if (dataSource.getValidation().getStaleConnectionChecker() == null) { return; setStringIfNotNull(context, dataSource.getValidation().getStaleConnectionChecker().getClassName()); } else if (attributeName.equals(Constants.STALE_CONNECTION_CHECKER_PROPERTIES.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getStaleConnectionChecker() == null) {
if (validation.getCheckValidConnectionSql() != null) { managedConnectionFactory.setCheckValidConnectionSQL(validation.getCheckValidConnectionSql()); final Extension validConnectionChecker = validation.getValidConnectionChecker(); if (validConnectionChecker != null) { if (validConnectionChecker.getClassName() != null) { final Extension exceptionSorter = validation.getExceptionSorter(); if (exceptionSorter != null) { if (exceptionSorter.getClassName() != null) { final Extension staleConnectionChecker = validation.getStaleConnectionChecker(); if (staleConnectionChecker != null) { if (staleConnectionChecker.getClassName() != null) {
setStringIfNotNull(context, dataSource.getValidation().getCheckValidConnectionSql()); } else if (attributeName.equals(Constants.EXCEPTION_SORTER_CLASSNAME.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getExceptionSorter() == null) { return; setStringIfNotNull(context, dataSource.getValidation().getExceptionSorter().getClassName()); } else if (attributeName.equals(Constants.EXCEPTION_SORTER_PROPERTIES.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getExceptionSorter() == null) { return; final Map<String, String> propertiesMap = dataSource.getValidation().getExceptionSorter().getConfigPropertiesMap(); if (propertiesMap == null) { return; if (dataSource.getValidation().getStaleConnectionChecker() == null) { return; setStringIfNotNull(context, dataSource.getValidation().getStaleConnectionChecker().getClassName()); } else if (attributeName.equals(Constants.STALE_CONNECTION_CHECKER_PROPERTIES.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getStaleConnectionChecker() == null) {
setStringIfNotNull(context, dataSource.getValidation().getCheckValidConnectionSql()); } else if (attributeName.equals(Constants.EXCEPTION_SORTER_CLASSNAME.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getExceptionSorter() == null) { return; setStringIfNotNull(context, dataSource.getValidation().getExceptionSorter().getClassName()); } else if (attributeName.equals(Constants.EXCEPTION_SORTER_PROPERTIES.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getExceptionSorter() == null) { return; final Map<String, String> propertiesMap = dataSource.getValidation().getExceptionSorter().getConfigPropertiesMap(); if (propertiesMap == null) { return; if (dataSource.getValidation().getStaleConnectionChecker() == null) { return; setStringIfNotNull(context, dataSource.getValidation().getStaleConnectionChecker().getClassName()); } else if (attributeName.equals(Constants.STALE_CONNECTION_CHECKER_PROPERTIES.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getStaleConnectionChecker() == null) {
setStringIfNotNull(context, dataSource.getValidation().getCheckValidConnectionSql()); } else if (attributeName.equals(Constants.EXCEPTION_SORTER_CLASSNAME.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getExceptionSorter() == null) { return; setStringIfNotNull(context, dataSource.getValidation().getExceptionSorter().getClassName()); } else if (attributeName.equals(Constants.EXCEPTION_SORTER_PROPERTIES.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getExceptionSorter() == null) { return; final Map<String, String> propertiesMap = dataSource.getValidation().getExceptionSorter().getConfigPropertiesMap(); if (propertiesMap == null) { return; if (dataSource.getValidation().getStaleConnectionChecker() == null) { return; setStringIfNotNull(context, dataSource.getValidation().getStaleConnectionChecker().getClassName()); } else if (attributeName.equals(Constants.STALE_CONNECTION_CHECKER_PROPERTIES.getName())) { if (dataSource.getValidation() == null) { return; if (dataSource.getValidation().getStaleConnectionChecker() == null) {