3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.database
;
11 import java
.util
.ArrayList
;
12 import java
.util
.List
;
14 import org
.springframework
.jdbc
.datasource
.AbstractDriverBasedDataSource
;
17 * @author a.kohlbecker
21 public class DataSourceInfo
{
25 List
<String
> problems
;
27 public String
getUrl() {
30 public void setUrl(String url
) {
33 public String
getUsername() {
36 public void setUsername(String userName
) {
37 this.username
= userName
;
39 public List
<String
> getProblems() {
41 problems
= new ArrayList
<String
>();
45 public void setProblems(List
<String
> problems
) {
46 this.problems
= problems
;
48 public boolean hasProblems() {
49 return getProblems().size() > 0;
52 public DataSourceInfo(AbstractDriverBasedDataSource dataSource
){
53 if(dataSource
!= null){
54 setUrl(dataSource
.getUrl());
55 setUsername(dataSource
.getUsername());