KickJava   Java API By Example, From Geeks To Geeks.

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


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.util.HashSet JavaDoc;
26 import java.util.Set JavaDoc;
27
28 /**
29  *
30  * A AbstractConnectionFactoryMetaData.
31  *
32  * @author <a HREF="weston.price@jboss.com">Weston Price</a>
33  * @version $Revision: 45634 $
34  */

35 public abstract class AbstractConnectionFactoryMetaData implements DsElementMetaData
36 {
37
38    /** The jndiName */
39    private String JavaDoc jndiName;
40    
41    /** The useJavaConext */
42    private boolean useJavaConext = true;
43    
44    /** The connectionDefintion */
45    private String JavaDoc connectionDefintion;
46    
47    /** The rarName */
48    private String JavaDoc rarName;
49    
50    /** The txnSupport */
51    private TransactionSupportMetaData txnSupport;
52       
53    /** The poolMetaData */
54    protected ConnectionPoolMetaData poolMetaData;
55   
56    /** The connectionProperties */
57    protected Set JavaDoc connectionProperties = new HashSet JavaDoc();
58    
59    /**
60     * Get the jndiName.
61     *
62     * @return the jndiName.
63     */

64    public String JavaDoc getJndiName()
65    {
66       return jndiName;
67    }
68
69    /**
70     * Set the jndiName.
71     *
72     * @param jndiName The jndiName to set.
73     */

74    public void setJndiName(String JavaDoc jndiName)
75    {
76       this.jndiName = jndiName;
77    }
78
79    /**
80     * Get the useJavaConext.
81     *
82     * @return the useJavaConext.
83     */

84    public boolean isUseJavaConext()
85    {
86       return useJavaConext;
87    }
88
89    /**
90     * Set the useJavaConext.
91     *
92     * @param useJavaConext The useJavaConext to set.
93     */

94    public void setUseJavaConext(boolean useJavaConext)
95    {
96       this.useJavaConext = useJavaConext;
97    }
98
99    /**
100     * Get the txnSupport.
101     *
102     * @return the txnSupport.
103     */

104    public TransactionSupportMetaData getTxnSupport()
105    {
106       return txnSupport;
107    }
108
109    /**
110     * Set the txnSupport.
111     *
112     * @param txnSupport The txnSupport to set.
113     */

114    public void setTxnSupport(TransactionSupportMetaData txnSupport)
115    {
116       this.txnSupport = txnSupport;
117    }
118
119    /**
120     * Get the poolMetaData.
121     *
122     * @return the poolMetaData.
123     */

124    public ConnectionPoolMetaData getPoolMetaData()
125    {
126       return poolMetaData;
127    }
128
129    /**
130     * Set the poolMetaData.
131     *
132     * @param poolMetaData The poolMetaData to set.
133     */

134    public void setPoolMetaData(ConnectionPoolMetaData poolMetaData)
135    {
136       this.poolMetaData = poolMetaData;
137    }
138
139    public String JavaDoc getConnectionDefintion()
140    {
141       return connectionDefintion;
142    }
143
144    public void setConnectionDefintion(String JavaDoc connectionDefintion)
145    {
146       this.connectionDefintion = connectionDefintion;
147    }
148    
149    public void addProperty(DsPropertyMetaData pmd)
150    {
151       connectionProperties.add(pmd);
152    
153    }
154
155    public String JavaDoc getRarName()
156    {
157       return rarName;
158    }
159
160    public void setRarName(String JavaDoc rarName)
161    {
162       this.rarName = rarName;
163    }
164    
165 }
166
Popular Tags