1 | |
package org.kuali.db.jdbc; |
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
public class JDBCConfiguration { |
7 | 0 | public static final JDBCConfiguration UNKNOWN_CONFIG = new JDBCConfiguration(DatabaseType.UNKNOWN); |
8 | |
|
9 | |
DatabaseType type; |
10 | |
String urlFragment; |
11 | |
String driver; |
12 | |
DbaSql dbaSql; |
13 | |
|
14 | |
public JDBCConfiguration() { |
15 | 0 | this(null); |
16 | 0 | } |
17 | |
|
18 | |
public JDBCConfiguration(final DatabaseType type) { |
19 | 0 | super(); |
20 | 0 | this.type = type; |
21 | 0 | } |
22 | |
|
23 | |
public DatabaseType getType() { |
24 | 0 | return type; |
25 | |
} |
26 | |
|
27 | |
public void setType(final DatabaseType type) { |
28 | 0 | this.type = type; |
29 | 0 | } |
30 | |
|
31 | |
public String getUrlFragment() { |
32 | 0 | return urlFragment; |
33 | |
} |
34 | |
|
35 | |
public void setUrlFragment(final String urlFragment) { |
36 | 0 | this.urlFragment = urlFragment; |
37 | 0 | } |
38 | |
|
39 | |
public String getDriver() { |
40 | 0 | return driver; |
41 | |
} |
42 | |
|
43 | |
public void setDriver(final String driver) { |
44 | 0 | this.driver = driver; |
45 | 0 | } |
46 | |
|
47 | |
|
48 | |
|
49 | |
|
50 | |
public DbaSql getDbaSql() { |
51 | 0 | return dbaSql; |
52 | |
} |
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
public void setDbaSql(final DbaSql resetSql) { |
59 | 0 | this.dbaSql = resetSql; |
60 | 0 | } |
61 | |
} |