KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > resource > deployment > ds > metadata > DataSourceMetaData


1 /*
2  * JBoss, Home of Professional Open Source
3  * Copyright 2005, JBoss Inc., and individual contributors as indicated
4  * by the @authors tag. See the copyright.txt in the distribution for a
5  * full listing of individual contributors.
6  *
7  * This is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as
9  * published by the Free Software Foundation; either version 2.1 of
10  * the License, or (at your option) any later version.
11  *
12  * This software is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this software; if not, write to the Free
19  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21  */

22
23 package org.jboss.resource.deployment.ds.metadata;
24
25 import java.io.Serializable JavaDoc;
26
27 /**
28  * A DataSourceMetaData.
29  *
30  * @author <a HREF="weston.price@jboss.com">Weston Price</a>
31  * @version $Revision: 45634 $
32  */

33 public class DataSourceMetaData extends ConnectionFactoryMetaData implements Serializable JavaDoc
34 {
35
36    /** The serialVersionUID */
37    private static final long serialVersionUID = -4967815924503581246L;
38
39    /** The connectionUrl */
40    private String JavaDoc connectionUrl;
41
42    /** The driverClass */
43    private String JavaDoc driverClass;
44
45    /** The userName */
46    private String JavaDoc userName;
47
48    /** The passWord */
49    private String JavaDoc passWord;
50
51    private boolean isSameRM;
52
53    /** The typeMapping */
54    private String JavaDoc typeMapping;
55    
56    
57    /** The availability */
58    private AvailabilitySupportMetaData availabilitySupport = AvailabilitySupportMetaData.NONE;
59
60    /** The sqlSupport */
61    private SqlSupportMetaData sqlSupport;
62
63    public SqlSupportMetaData getSqlSupportMetaData()
64    {
65
66       return sqlSupport;
67
68    }
69
70    public void setSqlSupportMetaData(SqlSupportMetaData smd)
71    {
72
73       this.sqlSupport = smd;
74
75    }
76
77    public SqlSupportMetaData getSqlSupport()
78    {
79       return sqlSupport;
80    }
81
82    public void setSqlSupport(SqlSupportMetaData sqlSupport)
83    {
84       this.sqlSupport = sqlSupport;
85    }
86
87    public String JavaDoc getConnectionUrl()
88    {
89       return connectionUrl;
90    }
91
92    public void setConnectionUrl(String JavaDoc connectionUrl)
93    {
94       this.connectionUrl = connectionUrl;
95    }
96
97    public String JavaDoc getDriverClass()
98    {
99       return driverClass;
100    }
101
102    public void setDriverClass(String JavaDoc driverClass)
103    {
104       this.driverClass = driverClass;
105    }
106
107    public String JavaDoc getPassWord()
108    {
109       return passWord;
110    }
111
112    public void setPassWord(String JavaDoc passWord)
113    {
114       this.passWord = passWord;
115    }
116
117    public String JavaDoc getUserName()
118    {
119       return userName;
120    }
121
122    public void setUserName(String JavaDoc userName)
123    {
124       this.userName = userName;
125    }
126
127    public void setSameRMOverride(boolean override)
128    {
129       this.isSameRM = override;
130
131    }
132
133    public boolean getSameRMOverrid()
134    {
135       return this.isSameRM;
136
137    }
138
139    /**
140     * Get the availability.
141     *
142     * @return the availability.
143     */

144    public AvailabilitySupportMetaData getAvailabilitySupport()
145    {
146       return availabilitySupport;
147    }
148
149    /**
150     * Set the availability.
151     *
152     * @param availability The availability to set.
153     */

154    public void setAvailabilitySupport(AvailabilitySupportMetaData availability)
155    {
156       this.availabilitySupport = availability;
157    }
158
159    public String JavaDoc getTypeMapping()
160    {
161       return typeMapping;
162    }
163
164    public void setTypeMapping(String JavaDoc typeMapping)
165    {
166       this.typeMapping = typeMapping;
167    }
168
169
170 }
171
Popular Tags