setBooleanIfNotNull(dataSourceModel, SHAREPREPAREDSTATEMENTS, statement.isSharePreparedStatements());
if (statement.getTrackStatements() != null) {
setStringIfNotNull(dataSourceModel, TRACKSTATEMENTS, statement.getTrackStatements().name());
}
}
TimeOut timeout = dataSource.getTimeOut();
if (timeout != null) {
setIntegerIfNotNull(dataSourceModel, ALLOCATION_RETRY, timeout.getAllocationRetry());
setLongIfNotNull(dataSourceModel, ALLOCATION_RETRY_WAIT_MILLIS, timeout.getAllocationRetryWaitMillis());
setLongIfNotNull(dataSourceModel, BLOCKING_TIMEOUT_WAIT_MILLIS, timeout.getBlockingTimeoutMillis());
setLongIfNotNull(dataSourceModel, IDLETIMEOUTMINUTES, timeout.getIdleTimeoutMinutes());
setLongIfNotNull(dataSourceModel, QUERYTIMEOUT, timeout.getQueryTimeout());
setLongIfNotNull(dataSourceModel, USETRYLOCK, timeout.getUseTryLock());
setBooleanIfNotNull(dataSourceModel, SETTXQUERYTIMEOUT, timeout.isSetTxQueryTimeout());
}
if (dataSource.getTransactionIsolation() != null) {
setStringIfNotNull(dataSourceModel, TRANSACTION_ISOLOATION, dataSource.getTransactionIsolation().name());
}