View Javadoc

1   /**
2    * Copyright 2004-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.db;
17  
18  /**
19   * A pojo containing JDBC related configuration information. eg JDBC drivers, url fragments and type
20   */
21  public class JDBCConfiguration {
22  	public static final JDBCConfiguration UNKNOWN_CONFIG = new JDBCConfiguration(DatabaseType.UNKNOWN);
23  
24  	public JDBCConfiguration() {
25  		this(null);
26  	}
27  
28  	public JDBCConfiguration(DatabaseType type) {
29  		super();
30  		this.type = type;
31  	}
32  
33  	DatabaseType type;
34  	String urlFragment;
35  	String driver;
36  	public DatabaseType getType() {
37  		return type;
38  	}
39  
40  	public void setType(DatabaseType type) {
41  		this.type = type;
42  	}
43  
44  	public String getUrlFragment() {
45  		return urlFragment;
46  	}
47  
48  	public void setUrlFragment(String urlFragment) {
49  		this.urlFragment = urlFragment;
50  	}
51  
52  	public String getDriver() {
53  		return driver;
54  	}
55  
56  	public void setDriver(String driver) {
57  		this.driver = driver;
58  	}
59  }