KickJava   Java API By Example, From Geeks To Geeks.

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


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  * PersistenceManagerResource.java
21  *
22  * Created on September 17, 2003, 1:19 PM
23  */

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

31 public class PersistenceManagerResource extends BaseResource implements java.io.Serializable JavaDoc{
32
33     private String JavaDoc jndiName;
34     private String JavaDoc factoryClass;
35     private String JavaDoc datasourceJndiName;
36     private String JavaDoc isEnabled;
37
38     /** Creates a new instance of PersistenceManagerResource */
39     public PersistenceManagerResource() {
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 getFactoryClass() {
53         return factoryClass;
54     }
55     public void setFactoryClass(String JavaDoc value) {
56         String JavaDoc oldValue = factoryClass;
57         this.factoryClass = value;
58         initPropertyChangeSupport();
59         propertySupport.firePropertyChange ("factoryClass", oldValue, factoryClass);//NOI18N
60
}
61     
62     public String JavaDoc getDatasourceJndiName() {
63         return datasourceJndiName;
64     }
65     public void setDatasourceJndiName(String JavaDoc value) {
66         String JavaDoc oldValue = datasourceJndiName;
67         this.datasourceJndiName = value;
68         initPropertyChangeSupport();
69         propertySupport.firePropertyChange ("datasourceJndiName", oldValue, datasourceJndiName);//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