001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: //
043: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs
044: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
045: // Any modifications to this file will be lost upon recompilation of the source schema.
046: // Generated on: 2006.12.09 at 06:26:10 PM PST
047: //
048:
049: package org.netbeans.modules.compapp.javaee.sunresources.generated.sunresources13;
050:
051: import java.util.ArrayList;
052: import java.util.List;
053: import javax.xml.bind.annotation.XmlAccessType;
054: import javax.xml.bind.annotation.XmlAccessorType;
055: import javax.xml.bind.annotation.XmlAttribute;
056: import javax.xml.bind.annotation.XmlRootElement;
057: import javax.xml.bind.annotation.XmlType;
058: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
059: import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
060: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
061:
062: /**
063: *
064: */
065: @XmlAccessorType(XmlAccessType.FIELD)
066: @XmlType(name="",propOrder={"description","property"})
067: @XmlRootElement(name="persistence-manager-factory-resource")
068: public class PersistenceManagerFactoryResource {
069:
070: @XmlAttribute(name="jndi-name",required=true)
071: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
072: protected String jndiName;
073: @XmlAttribute(name="factory-class")
074: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
075: protected String factoryClass;
076: @XmlAttribute(name="jdbc-resource-jndi-name")
077: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
078: protected String jdbcResourceJndiName;
079: @XmlAttribute(name="object-type")
080: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
081: protected String objectType;
082: @XmlAttribute
083: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
084: protected String enabled;
085: protected String description;
086: protected List<Property> property;
087:
088: /**
089: * Gets the value of the jndiName property.
090: *
091: * @return
092: * possible object is
093: * {@link String }
094: *
095: */
096: public String getJndiName() {
097: return jndiName;
098: }
099:
100: /**
101: * Sets the value of the jndiName property.
102: *
103: * @param value
104: * allowed object is
105: * {@link String }
106: *
107: */
108: public void setJndiName(String value) {
109: this .jndiName = value;
110: }
111:
112: /**
113: * Gets the value of the factoryClass property.
114: *
115: * @return
116: * possible object is
117: * {@link String }
118: *
119: */
120: public String getFactoryClass() {
121: if (factoryClass == null) {
122: return "com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl";
123: } else {
124: return factoryClass;
125: }
126: }
127:
128: /**
129: * Sets the value of the factoryClass property.
130: *
131: * @param value
132: * allowed object is
133: * {@link String }
134: *
135: */
136: public void setFactoryClass(String value) {
137: this .factoryClass = value;
138: }
139:
140: /**
141: * Gets the value of the jdbcResourceJndiName property.
142: *
143: * @return
144: * possible object is
145: * {@link String }
146: *
147: */
148: public String getJdbcResourceJndiName() {
149: return jdbcResourceJndiName;
150: }
151:
152: /**
153: * Sets the value of the jdbcResourceJndiName property.
154: *
155: * @param value
156: * allowed object is
157: * {@link String }
158: *
159: */
160: public void setJdbcResourceJndiName(String value) {
161: this .jdbcResourceJndiName = value;
162: }
163:
164: /**
165: * Gets the value of the objectType property.
166: *
167: * @return
168: * possible object is
169: * {@link String }
170: *
171: */
172: public String getObjectType() {
173: if (objectType == null) {
174: return "user";
175: } else {
176: return objectType;
177: }
178: }
179:
180: /**
181: * Sets the value of the objectType property.
182: *
183: * @param value
184: * allowed object is
185: * {@link String }
186: *
187: */
188: public void setObjectType(String value) {
189: this .objectType = value;
190: }
191:
192: /**
193: * Gets the value of the enabled property.
194: *
195: * @return
196: * possible object is
197: * {@link String }
198: *
199: */
200: public String getEnabled() {
201: if (enabled == null) {
202: return "true";
203: } else {
204: return enabled;
205: }
206: }
207:
208: /**
209: * Sets the value of the enabled property.
210: *
211: * @param value
212: * allowed object is
213: * {@link String }
214: *
215: */
216: public void setEnabled(String value) {
217: this .enabled = value;
218: }
219:
220: /**
221: * Gets the value of the description property.
222: *
223: * @return
224: * possible object is
225: * {@link String }
226: *
227: */
228: public String getDescription() {
229: return description;
230: }
231:
232: /**
233: * Sets the value of the description property.
234: *
235: * @param value
236: * allowed object is
237: * {@link String }
238: *
239: */
240: public void setDescription(String value) {
241: this .description = value;
242: }
243:
244: /**
245: * Gets the value of the property property.
246: *
247: * <p>
248: * This accessor method returns a reference to the live list,
249: * not a snapshot. Therefore any modification you make to the
250: * returned list will be present inside the JAXB object.
251: * This is why there is not a <CODE>set</CODE> method for the property property.
252: *
253: * <p>
254: * For example, to add a new item, do as follows:
255: * <pre>
256: * getProperty().add(newItem);
257: * </pre>
258: *
259: *
260: * <p>
261: * Objects of the following type(s) are allowed in the list
262: * {@link Property }
263: *
264: *
265: */
266: public List<Property> getProperty() {
267: if (property == null) {
268: property = new ArrayList<Property>();
269: }
270: return this.property;
271: }
272:
273: }
|