View Javadoc

1   /*
2    * Copyright 2000-2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0
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.apache.portals.graffito.model;
17  
18  
19  /***
20   * Graffito Server interface is the default content store for Graffito.
21   * GraffitoServer is a db server with a predefined schema (see in the component subproject to see this schema).
22   *
23   * @author <a href="mailto:christophe.lombart@sword-technologies.com">Christophe Lombart</a>
24   * 
25   * @version $Id: GraffitoServer.java,v 1.1 2004/12/22 21:16:10 christophe Exp $
26   */
27  public abstract interface GraffitoServer extends Server
28  {
29  
30      /***
31       * Get the DB plateform name (MySql, Oracle, ...).
32       * @return the DB plateform
33       */
34      public String getPlateform();
35      
36      /***
37       * Set the DB plateform name (MySql, Oracle, ...).
38       * 
39       * @param plateform The new plateform value
40       */
41      public void setPlateform(String plateform);
42      
43      /***
44       * Get the Db alias used to connect to the DB
45       * @return the Db alias
46       */
47      public String getDbAlias();
48      
49      /***
50       * Set the Db alias used to connect to the DB
51       * 
52       * @param dbAlias the new db alias value
53       */
54      public void setDbAlias(String dbAlias);
55      
56      /***
57       * Get the JDBC level
58       * @return the jdbc level
59       */
60      public String getJdbcLevel();
61      
62      /***
63       * Set the jdbc level
64       * @param jdbcLevel
65       */
66      public void setJdbcLevel(String jdbcLevel);
67      
68      /***
69       * Get the datasource
70       * @return the datasource
71       */
72      public String getDatasource();
73      
74      /***
75       * Set the datasource
76       * @param datasource The new datasource value
77       */
78      public void setDatasource(String datasource);
79      
80      /***
81       * Get the jdbc driver 
82       * @return the driver
83       */
84      public String getDriver();
85      
86      /***
87       * Set the jdbc driver
88       * @param driver The new jdbc driver
89       */
90      public void setDriver(String driver);
91      
92      /***
93       * Get the protocol
94       * @return the protocal
95       */
96      public String getProtocol();
97      
98      /***
99       * Set the protocol. It should be 'jdbc'
100      * @param protocol
101      */
102     public void setProtocol(String protocol);
103     
104     /***
105      * Get the subprotocol used to build the connection url
106      * @return thhe subprotocol
107      */
108     public String getSubProtocol();
109     
110     /***
111      * Set the subprotocol used to build the connection url 
112      * @param subProtocol The new subprotocol value
113      */
114     public void setSubProtocol(String subProtocol);
115     
116     /***
117      * Get the login 
118      * @return The login
119      */
120 	public String getLogin();
121 	
122 	/***
123 	 * Set the login
124 	 * @param login The new login value
125 	 */
126 	public void setLogin(String login);
127 	
128 	/***
129 	 * Get the password
130 	 * @return the password
131 	 */
132 	public String getPassword();
133 	
134 	/***
135 	 * Set the password
136 	 * @param password The new password value
137 	 */
138 	public void setPassword(String password);
139 	
140 	
141 	
142 }