KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectstyle > cayenne > modeler > pref > _DBConnectionInfo


1 package org.objectstyle.cayenne.modeler.pref;
2
3 /** Class _DBConnectionInfo was generated by Cayenne.
4   * It is probably a good idea to avoid changing this class manually,
5   * since it may be overwritten next time code is regenerated.
6   * If you need to make any customizations, please use subclass.
7   */

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