}
}
private void loadImportedData(PortletRequest request, PoolData data, ImportStatus.PoolProgress progress) throws PortletException {
if (!progress.getType().equals(ImportStatus.PoolProgress.TYPE_XA)) {
JDBCPool pool = (JDBCPool) progress.getPool();
data.dbtype = "Other";
data.adapterDisplayName = "TranQL Generic JDBC Resource Adapter";
data.blockingTimeout = getImportString(pool.getBlockingTimeoutMillis());
data.driverClass = pool.getDriverClass();
data.idleTimeout = pool.getIdleTimeoutMillis() != null ? Integer.toString(
pool.getIdleTimeoutMillis().intValue() / (60 * 1000)) : null;
data.maxSize = getImportString(pool.getMaxSize());
data.minSize = getImportString(pool.getMinSize());
data.name = pool.getName();
data.password = pool.getPassword();
data.url = pool.getJdbcURL();
data.user = pool.getUsername();
if (pool.getDriverClass() != null) {
DatabaseDriver info = getDatabaseInfoFromDriver(request, data);
if (info != null) {
data.rarPath = info.getRAR().toString();
data.urlPrototype = info.getURLPrototype();
} else {