001 package org.kuali.db.jdbc; 002 003 /** 004 * A pojo containing JDBC related configuration information. eg JDBC drivers, url fragments and type 005 */ 006 public class JDBCConfiguration { 007 public static final JDBCConfiguration UNKNOWN_CONFIG = new JDBCConfiguration(DatabaseType.UNKNOWN); 008 009 DatabaseType type; 010 String urlFragment; 011 String driver; 012 DbaSql dbaSql; 013 014 public JDBCConfiguration() { 015 this(null); 016 } 017 018 public JDBCConfiguration(final DatabaseType type) { 019 super(); 020 this.type = type; 021 } 022 023 public DatabaseType getType() { 024 return type; 025 } 026 027 public void setType(final DatabaseType type) { 028 this.type = type; 029 } 030 031 public String getUrlFragment() { 032 return urlFragment; 033 } 034 035 public void setUrlFragment(final String urlFragment) { 036 this.urlFragment = urlFragment; 037 } 038 039 public String getDriver() { 040 return driver; 041 } 042 043 public void setDriver(final String driver) { 044 this.driver = driver; 045 } 046 047 /** 048 * @return the resetSql 049 */ 050 public DbaSql getDbaSql() { 051 return dbaSql; 052 } 053 054 /** 055 * @param resetSql 056 * the resetSql to set 057 */ 058 public void setDbaSql(final DbaSql resetSql) { 059 this.dbaSql = resetSql; 060 } 061 }