KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > share > serverresources > JdbcDS


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 /*
20  * JdbcResource.java
21  *
22  * Created on September 16, 2003, 11:19 AM
23  */

24
25 package org.netbeans.modules.j2ee.sun.share.serverresources;
26
27 /**
28  *
29  * @author nityad
30  */

31 public class JdbcDS extends BaseResource implements java.io.Serializable JavaDoc{
32
33     private String JavaDoc jndiName;
34     private String JavaDoc connPoolName;
35     private String JavaDoc resType;
36     private String JavaDoc isEnabled;
37
38     /** Creates a new instance of JdbcResource */
39     public JdbcDS() {
40     }
41
42     public String JavaDoc getJndiName() {
43         return jndiName;
44     }
45     public void setJndiName(String JavaDoc value) {
46         String JavaDoc oldValue = jndiName;
47         this.jndiName = value;
48         initPropertyChangeSupport();
49         propertySupport.firePropertyChange ("jndiName", oldValue, jndiName);//NOI18N
50
}
51     
52     public String JavaDoc getConnPoolName() {
53         return connPoolName;
54     }
55     public void setConnPoolName(String JavaDoc value) {
56         String JavaDoc oldValue = connPoolName;
57         this.connPoolName = value;
58         initPropertyChangeSupport();
59         propertySupport.firePropertyChange ("connPoolName", oldValue, connPoolName);//NOI18N
60
}
61     
62     public String JavaDoc getResType() {
63         return resType;
64     }
65     public void setResType(String JavaDoc value) {
66         String JavaDoc oldValue = resType;
67         this.resType = value;
68         initPropertyChangeSupport();
69         propertySupport.firePropertyChange ("resType", oldValue, resType);//NOI18N
70
}
71     
72     public String JavaDoc getIsEnabled() {
73         return isEnabled;
74     }
75     public void setIsEnabled(String JavaDoc value) {
76         String JavaDoc oldValue = isEnabled;
77         this.isEnabled = value;
78         initPropertyChangeSupport();
79         propertySupport.firePropertyChange ("isEnabled", oldValue, isEnabled);//NOI18N
80
}
81     
82 }
83
Popular Tags