1 | package org.sqlorm.metadatadumper; |
2 | |
3 | import java.util.ArrayList; |
4 | import java.util.List; |
5 | |
6 | /** |
7 | * helper class for the ConstantsDump class containing parsed user command line arguments |
8 | * |
9 | * @author Kasper B. Graversen, (c) 2007-2008 |
10 | */ |
11 | public class ConnectionInfo { |
12 | private String driverClass; |
13 | private String userName; |
14 | private String password; |
15 | private String url; |
16 | private List<String> schemaNames = new ArrayList<String>(); |
17 | |
18 | public String getDriverClass() { |
19 | return driverClass; |
20 | } |
21 | |
22 | public void setDriverClass(String driverClass) { |
23 | this.driverClass = driverClass; |
24 | } |
25 | |
26 | public String getUserName() { |
27 | return userName; |
28 | } |
29 | |
30 | public void setUserName(String userName) { |
31 | this.userName = userName; |
32 | } |
33 | |
34 | public String getPassword() { |
35 | return password; |
36 | } |
37 | |
38 | public void setPassword(String password) { |
39 | this.password = password; |
40 | } |
41 | |
42 | public String getUrl() { |
43 | return url; |
44 | } |
45 | |
46 | public void setUrl(String url) { |
47 | this.url = url; |
48 | } |
49 | |
50 | public List<String> getSchemaNames() { |
51 | return schemaNames; |
52 | } |
53 | |
54 | public void setSchemaNames(List<String> schemaNames) { |
55 | this.schemaNames = schemaNames; |
56 | } |
57 | |
58 | public void validate() { |
59 | if(schemaNames == null || schemaNames.size() == 0) { |
60 | throw new IllegalArgumentException("Schemanames must be specified"); |
61 | } |
62 | } |
63 | } |