setStringIfNotNull(dataSourceModel, USERNAME, security.getUserName());
setStringIfNotNull(dataSourceModel, PASSWORD, security.getPassword());
setStringIfNotNull(dataSourceModel, SECURITY_DOMAIN, security.getSecurityDomain());
setExtensionIfNotNull(dataSourceModel, REAUTHPLUGIN_CLASSNAME, REAUTHPLUGIN_PROPERTIES, security.getReauthPlugin());
}
Statement statement = dataSource.getStatement();
if (statement != null) {
setLongIfNotNull(dataSourceModel, PREPAREDSTATEMENTSCACHESIZE, statement.getPreparedStatementsCacheSize());
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());