KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > setup > config > DbAccessConfig


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.setup.config;
10
11 import org.jboss.portal.setup.DatabaseVendorType;
12 import org.jboss.portal.setup.PortalSetupException;
13
14 /**
15  * @author <a HREF="mailto:palber@novell.com">Polina Alber</a>
16  * Date: Apr 13, 2005; Time: 12:56:50 AM
17  * @since JBoss portal 2.0
18  * Interface org.jboss.portal.setup.config.DbAccessConfig
19  */

20 public interface DbAccessConfig extends Configuration
21 {
22
23    /**
24     * @return JDBC driver class name to be used for database access
25     */

26    String JavaDoc getDriverClassName();
27
28    /**
29     * @return JDBC connection url to be used for database access
30     */

31    String JavaDoc getConnUrl();
32
33    /**
34     * @param driverClassName a calss name for jdbc driver to use for databace connection
35     */

36    void setDriverClassName(String JavaDoc driverClassName);
37
38    /**
39     * Set JDBC connection url to be used for database access
40     */

41    void setConnUrl(String JavaDoc connUrl);
42
43    /**
44     * @return user name to be used for database access ; user has dba priviliges for dbloader
45     */

46    String JavaDoc getUserName();
47
48    /**
49     * Set user name to be used for database access ; user has dba priviliges for dbloader
50     */

51    public void setUserName(String JavaDoc userName);
52
53    /**
54     * @return user password to be used for database access
55     */

56    String JavaDoc getPassword();
57
58    /**
59     * * Set user password to be used for database access
60     */

61    public void setPassword(String JavaDoc password);
62
63    /**
64     * @return a name of data source to be used for database access
65     */

66    String JavaDoc getDataSourceName();
67
68    /**
69     * @param dsName a data source name to be used for dbloader access;
70     */

71    void setDataSourceName(String JavaDoc dsName);
72
73
74    /**
75     * @param vendorName a database vendor name
76     */

77    public void setDbVendorName(String JavaDoc vendorName) throws PortalSetupException;
78
79
80    /**
81     * @return a database vendor type to use upon processing
82     * data load action statements and generation sql.
83     */

84    public String JavaDoc getDbVendorName();
85
86    /**
87     * @return a database vendor type to use upon processing
88     * data load action statements and generation sql.
89     * Supported vendors are: MySQL, Oracle, hiperSonic, postgress
90     */

91    public DatabaseVendorType getDbVendorType() throws PortalSetupException;
92
93    /**
94     * @param vendor a name of database vendor to use upon processing
95     * data load action statements and generation sql.
96     * Supported vendors are: MySQL, Oracle, hiperSonic, postgress
97     */

98    public void setDbVendor(String JavaDoc vendor) throws PortalSetupException;
99
100
101 }
102
Popular Tags