if (dataSource.getTimeOut() == null) { return; setIntIfNotNull(context, dataSource.getTimeOut().getAllocationRetry()); } else if (attributeName.equals(Constants.ALLOCATION_RETRY_WAIT_MILLIS.getName())) { if (dataSource.getTimeOut() == null) { return; setLongIfNotNull(context, dataSource.getTimeOut().getAllocationRetryWaitMillis()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.BLOCKING_TIMEOUT_WAIT_MILLIS.getName())) { if (dataSource.getTimeOut() == null) { return; setLongIfNotNull(context, dataSource.getTimeOut().getBlockingTimeoutMillis()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.IDLETIMEOUTMINUTES.getName())) { if (dataSource.getTimeOut() == null) { return; setLongIfNotNull(context, dataSource.getTimeOut().getIdleTimeoutMinutes()); } else if (attributeName.equals(Constants.QUERY_TIMEOUT.getName())) { if (dataSource.getTimeOut() == null) { return; setLongIfNotNull(context, dataSource.getTimeOut().getQueryTimeout()); } else if (attributeName.equals(Constants.USE_TRY_LOCK.getName())) { if (dataSource.getTimeOut() == null) { return; setLongIfNotNull(context, dataSource.getTimeOut().getUseTryLock());
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()); }
if (ds != null && ds.getTimeOut() != null) configProperties.add(ConfigPropertyFactory.createConfigProperty(prototype, ds.getTimeOut() .isSetTxQueryTimeout())); if (ds != null && ds.getTimeOut() != null && ds.getTimeOut().getQueryTimeout() != null) configProperties.add(ConfigPropertyFactory.createConfigProperty(prototype, ds.getTimeOut() .getQueryTimeout())); if (ds != null && ds.getTimeOut() != null && ds.getTimeOut().getUseTryLock() != null) configProperties.add(ConfigPropertyFactory.createConfigProperty(prototype, ds.getTimeOut() .getUseTryLock()));
if (dataSource.getTimeOut() == null) { return; setIntIfNotNull(context, dataSource.getTimeOut().getAllocationRetry()); } else if (attributeName.equals(Constants.ALLOCATION_RETRY_WAIT_MILLIS.getName())) { if (dataSource.getTimeOut() == null) { return; setLongIfNotNull(context, dataSource.getTimeOut().getAllocationRetryWaitMillis()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.BLOCKING_TIMEOUT_WAIT_MILLIS.getName())) { if (dataSource.getTimeOut() == null) { return; setLongIfNotNull(context, dataSource.getTimeOut().getBlockingTimeoutMillis()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.IDLETIMEOUTMINUTES.getName())) { if (dataSource.getTimeOut() == null) { return; setLongIfNotNull(context, dataSource.getTimeOut().getIdleTimeoutMinutes()); } else if (attributeName.equals(Constants.QUERY_TIMEOUT.getName())) { if (dataSource.getTimeOut() == null) { return; setLongIfNotNull(context, dataSource.getTimeOut().getQueryTimeout()); } else if (attributeName.equals(Constants.USE_TRY_LOCK.getName())) { if (dataSource.getTimeOut() == null) { return; setLongIfNotNull(context, dataSource.getTimeOut().getUseTryLock());
if (dataSource.getTimeOut() == null) { return; setIntIfNotNull(context, dataSource.getTimeOut().getAllocationRetry()); } else if (attributeName.equals(Constants.ALLOCATION_RETRY_WAIT_MILLIS.getName())) { if (dataSource.getTimeOut() == null) { return; setLongIfNotNull(context, dataSource.getTimeOut().getAllocationRetryWaitMillis()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.BLOCKING_TIMEOUT_WAIT_MILLIS.getName())) { if (dataSource.getTimeOut() == null) { return; setLongIfNotNull(context, dataSource.getTimeOut().getBlockingTimeoutMillis()); } else if (attributeName.equals(org.jboss.as.connector.subsystems.common.pool.Constants.IDLETIMEOUTMINUTES.getName())) { if (dataSource.getTimeOut() == null) { return; setLongIfNotNull(context, dataSource.getTimeOut().getIdleTimeoutMinutes()); } else if (attributeName.equals(Constants.QUERY_TIMEOUT.getName())) { if (dataSource.getTimeOut() == null) { return; setLongIfNotNull(context, dataSource.getTimeOut().getQueryTimeout()); } else if (attributeName.equals(Constants.USE_TRY_LOCK.getName())) { if (dataSource.getTimeOut() == null) { return; setLongIfNotNull(context, dataSource.getTimeOut().getUseTryLock());
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()); }