private ModifiableDataSource buildDataSource(DataSource ds) throws org.jboss.jca.common.api.validator.ValidateException { assert ds.getSecurity() == null || ds.getSecurity() instanceof DsSecurity; return new ModifiableDataSource(ds.getConnectionUrl(), ds.getDriverClass(), ds.getDataSourceClass(), ds.getDriver(), ds.getTransactionIsolation(), ds.getConnectionProperties(), ds.getTimeOut(), (DsSecurity) ds.getSecurity(), ds.getStatement(), ds.getValidation(), ds.getUrlDelimiter(), ds.getUrlSelectorStrategyClassName(), ds.getNewConnectionSql(), ds.isUseJavaContext(), ds.getPoolName(), ds.isEnabled(), ds.getJndiName(), ds.isSpy(), ds.isUseCcm(), ds.isJTA(), ds.isConnectable(), ds.isTracking(), ds.getMcp(), ds.isEnlistmentTrace(), ds.getPool()); }
setBooleanIfNotNull(context, dataSource.isEnabled()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.MAX_POOL_SIZE.getName())) { if (dataSource.getPool() == null) { return; setIntIfNotNull(context, dataSource.getPool().getMaxPoolSize()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.INITIAL_POOL_SIZE.getName())) { if (dataSource.getPool() == null) { return; setIntIfNotNull(context, dataSource.getPool().getInitialPoolSize()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.MIN_POOL_SIZE.getName())) { if (dataSource.getPool() == null) { return; setIntIfNotNull(context, dataSource.getPool().getMinPoolSize()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.POOL_PREFILL.getName())) { if (dataSource.getPool() == null) { return; setBooleanIfNotNull(context, dataSource.getPool().isPrefill()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.POOL_FAIR.getName())) { if (dataSource.getPool() == null) { return; setBooleanIfNotNull(context, dataSource.getPool().isFair()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.POOL_USE_STRICT_MIN.getName())) { if (dataSource.getPool() == null) { return;
private ModifiableDataSource buildDataSource(DataSource ds) throws org.jboss.jca.common.api.validator.ValidateException { assert ds.getSecurity() == null || ds.getSecurity() instanceof DsSecurity; return new ModifiableDataSource(ds.getConnectionUrl(), ds.getDriverClass(), ds.getDataSourceClass(), ds.getDriver(), ds.getTransactionIsolation(), ds.getConnectionProperties(), ds.getTimeOut(), (DsSecurity) ds.getSecurity(), ds.getStatement(), ds.getValidation(), ds.getUrlDelimiter(), ds.getUrlSelectorStrategyClassName(), ds.getNewConnectionSql(), ds.isUseJavaContext(), ds.getPoolName(), ds.isEnabled(), ds.getJndiName(), ds.isSpy(), ds.isUseCcm(), ds.isJTA(), ds.isConnectable(), ds.isTracking(), ds.getMcp(), ds.isEnlistmentTrace(), ds.getPool()); }
setBooleanIfNotNull(context, dataSource.isEnabled()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.MAX_POOL_SIZE.getName())) { if (dataSource.getPool() == null) { return; setIntIfNotNull(context, dataSource.getPool().getMaxPoolSize()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.INITIAL_POOL_SIZE.getName())) { if (dataSource.getPool() == null) { return; setIntIfNotNull(context, dataSource.getPool().getInitialPoolSize()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.MIN_POOL_SIZE.getName())) { if (dataSource.getPool() == null) { return; setIntIfNotNull(context, dataSource.getPool().getMinPoolSize()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.POOL_PREFILL.getName())) { if (dataSource.getPool() == null) { return; setBooleanIfNotNull(context, dataSource.getPool().isPrefill()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.POOL_FAIR.getName())) { if (dataSource.getPool() == null) { return; setBooleanIfNotNull(context, dataSource.getPool().isFair()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.POOL_USE_STRICT_MIN.getName())) { if (dataSource.getPool() == null) { return;
setBooleanIfNotNull(context, dataSource.isJTA()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.MAX_POOL_SIZE.getName())) { if (dataSource.getPool() == null) { return; setIntIfNotNull(context, dataSource.getPool().getMaxPoolSize()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.MIN_POOL_SIZE.getName())) { if (dataSource.getPool() == null) { return; setIntIfNotNull(context, dataSource.getPool().getMinPoolSize()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.POOL_PREFILL.getName())) { if (dataSource.getPool() == null) { return; setBooleanIfNotNull(context, dataSource.getPool().isPrefill()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.POOL_USE_STRICT_MIN.getName())) { if (dataSource.getPool() == null) { return; setBooleanIfNotNull(context, dataSource.getPool().isUseStrictMin()); } else if (attributeName.equals(Constants.USERNAME.getName())) { if (dataSource.getSecurity() == null) { if (dataSource.getPool() == null) { return; setStringIfNotNull(context, dataSource.getPool().getFlushStrategy().getName()); } else if (attributeName.equals(Constants.PREPARED_STATEMENTS_CACHE_SIZE.getName())) {