KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > jndi > browser > model > service > ConnectionMetaData


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.jndi.browser.model.service;
8
9 import org.ejtools.util.service.ProfileMetaData;
10
11 /**
12  * @author letiembl
13  * @created 14 novembre 2002
14  * @version $Revision: 1.2 $
15  */

16 public class ConnectionMetaData implements ProfileMetaData
17 {
18    /** Description of the Field */
19    protected String JavaDoc[] keys = new String JavaDoc[]{
20          ConnectionMetaData.FACTORY,
21          ConnectionMetaData.PACKAGES,
22          ConnectionMetaData.URL,
23          ConnectionMetaData.CONTEXT,
24          ConnectionMetaData.PRINCIPAL,
25          ConnectionMetaData.CREDENTIALS
26          };
27    /** Description of the Field */
28    public final static String JavaDoc CONTEXT = "context";
29    /** Description of the Field */
30    public final static String JavaDoc CREDENTIALS = "credentials";
31    /** Description of the Field */
32    public final static String JavaDoc FACTORY = "factory";
33    /** Description of the Field */
34    public final static String JavaDoc PACKAGES = "packages";
35    /** Description of the Field */
36    public final static String JavaDoc PRINCIPAL = "principal";
37    /** Description of the Field */
38    public final static String JavaDoc URL = "url";
39
40
41    /** Constructor for ConnectionMetaData. */
42    public ConnectionMetaData()
43    {
44       super();
45    }
46
47
48    /**
49     * Gets the fileName attribute of the ConnectionMetaData object
50     *
51     * @return The fileName value
52     */

53    public String JavaDoc getFileName()
54    {
55       return "/jndi.connection.properties";
56    }
57
58
59    /**
60     * Gets the key attribute of the ConnectionMetaData object
61     *
62     * @param index Description of the Parameter
63     * @return The key value
64     */

65    public String JavaDoc getKey(int index)
66    {
67       return this.keys[index];
68    }
69
70
71    /**
72     * Gets the keys attribute of the ConnectionMetaData object
73     *
74     * @return The keys value
75     */

76    public String JavaDoc[] getKeys()
77    {
78       return this.keys;
79    }
80
81
82    /**
83     * Gets the prefix attribute of the ConnectionMetaData object
84     *
85     * @return The prefix value
86     */

87    public String JavaDoc getPrefix()
88    {
89       return "connection";
90    }
91 }
92
Popular Tags