1 package org.objectstyle.cayenne.modeler.pref; 2 3 8 public class _DBConnectionInfo extends org.objectstyle.cayenne.pref.PreferenceDetail { 9 10 public static final String DB_ADAPTER_PROPERTY = "dbAdapter"; 11 public static final String DOMAIN_PREFERENCE_ID_PROPERTY = "domainPreferenceId"; 12 public static final String JDBC_DRIVER_PROPERTY = "jdbcDriver"; 13 public static final String PASSWORD_PROPERTY = "password"; 14 public static final String URL_PROPERTY = "url"; 15 public static final String USER_NAME_PROPERTY = "userName"; 16 17 public static final String ID_PK_COLUMN = "id"; 18 19 public void setDbAdapter(String dbAdapter) { 20 writeProperty("dbAdapter", dbAdapter); 21 } 22 public String getDbAdapter() { 23 return (String )readProperty("dbAdapter"); 24 } 25 26 27 public void setDomainPreferenceId(Integer domainPreferenceId) { 28 writeProperty("domainPreferenceId", domainPreferenceId); 29 } 30 public Integer getDomainPreferenceId() { 31 return (Integer )readProperty("domainPreferenceId"); 32 } 33 34 35 public void setJdbcDriver(String jdbcDriver) { 36 writeProperty("jdbcDriver", jdbcDriver); 37 } 38 public String getJdbcDriver() { 39 return (String )readProperty("jdbcDriver"); 40 } 41 42 43 public void setPassword(String password) { 44 writeProperty("password", password); 45 } 46 public String getPassword() { 47 return (String )readProperty("password"); 48 } 49 50 51 public void setUrl(String url) { 52 writeProperty("url", url); 53 } 54 public String getUrl() { 55 return (String )readProperty("url"); 56 } 57 58 59 public void setUserName(String userName) { 60 writeProperty("userName", userName); 61 } 62 public String getUserName() { 63 return (String )readProperty("userName"); 64 } 65 66 67 } 68 | Popular Tags |