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.XmlElement;
057: import javax.xml.bind.annotation.XmlRootElement;
058: import javax.xml.bind.annotation.XmlType;
059: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
060: import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
061: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
062:
063: /**
064: *
065: */
066: @XmlAccessorType(XmlAccessType.FIELD)
067: @XmlType(name="",propOrder={"description","securityMap","property"})
068: @XmlRootElement(name="connector-connection-pool")
069: public class ConnectorConnectionPool {
070:
071: @XmlAttribute(required=true)
072: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
073: protected String name;
074: @XmlAttribute(name="resource-adapter-name",required=true)
075: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
076: protected String resourceAdapterName;
077: @XmlAttribute(name="connection-definition-name",required=true)
078: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
079: protected String connectionDefinitionName;
080: @XmlAttribute(name="steady-pool-size")
081: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
082: protected String steadyPoolSize;
083: @XmlAttribute(name="max-pool-size")
084: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
085: protected String maxPoolSize;
086: @XmlAttribute(name="max-wait-time-in-millis")
087: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
088: protected String maxWaitTimeInMillis;
089: @XmlAttribute(name="pool-resize-quantity")
090: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
091: protected String poolResizeQuantity;
092: @XmlAttribute(name="idle-timeout-in-seconds")
093: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
094: protected String idleTimeoutInSeconds;
095: @XmlAttribute(name="fail-all-connections")
096: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
097: protected String failAllConnections;
098: @XmlAttribute(name="transaction-support")
099: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
100: protected String transactionSupport;
101: @XmlAttribute(name="is-connection-validation-required")
102: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
103: protected String isConnectionValidationRequired;
104: protected String description;
105: @XmlElement(name="security-map")
106: protected List<SecurityMap> securityMap;
107: protected List<Property> property;
108:
109: /**
110: * Gets the value of the name property.
111: *
112: * @return
113: * possible object is
114: * {@link String }
115: *
116: */
117: public String getName() {
118: return name;
119: }
120:
121: /**
122: * Sets the value of the name property.
123: *
124: * @param value
125: * allowed object is
126: * {@link String }
127: *
128: */
129: public void setName(String value) {
130: this .name = value;
131: }
132:
133: /**
134: * Gets the value of the resourceAdapterName property.
135: *
136: * @return
137: * possible object is
138: * {@link String }
139: *
140: */
141: public String getResourceAdapterName() {
142: return resourceAdapterName;
143: }
144:
145: /**
146: * Sets the value of the resourceAdapterName property.
147: *
148: * @param value
149: * allowed object is
150: * {@link String }
151: *
152: */
153: public void setResourceAdapterName(String value) {
154: this .resourceAdapterName = value;
155: }
156:
157: /**
158: * Gets the value of the connectionDefinitionName property.
159: *
160: * @return
161: * possible object is
162: * {@link String }
163: *
164: */
165: public String getConnectionDefinitionName() {
166: return connectionDefinitionName;
167: }
168:
169: /**
170: * Sets the value of the connectionDefinitionName property.
171: *
172: * @param value
173: * allowed object is
174: * {@link String }
175: *
176: */
177: public void setConnectionDefinitionName(String value) {
178: this .connectionDefinitionName = value;
179: }
180:
181: /**
182: * Gets the value of the steadyPoolSize property.
183: *
184: * @return
185: * possible object is
186: * {@link String }
187: *
188: */
189: public String getSteadyPoolSize() {
190: if (steadyPoolSize == null) {
191: return "8";
192: } else {
193: return steadyPoolSize;
194: }
195: }
196:
197: /**
198: * Sets the value of the steadyPoolSize property.
199: *
200: * @param value
201: * allowed object is
202: * {@link String }
203: *
204: */
205: public void setSteadyPoolSize(String value) {
206: this .steadyPoolSize = value;
207: }
208:
209: /**
210: * Gets the value of the maxPoolSize property.
211: *
212: * @return
213: * possible object is
214: * {@link String }
215: *
216: */
217: public String getMaxPoolSize() {
218: if (maxPoolSize == null) {
219: return "32";
220: } else {
221: return maxPoolSize;
222: }
223: }
224:
225: /**
226: * Sets the value of the maxPoolSize property.
227: *
228: * @param value
229: * allowed object is
230: * {@link String }
231: *
232: */
233: public void setMaxPoolSize(String value) {
234: this .maxPoolSize = value;
235: }
236:
237: /**
238: * Gets the value of the maxWaitTimeInMillis property.
239: *
240: * @return
241: * possible object is
242: * {@link String }
243: *
244: */
245: public String getMaxWaitTimeInMillis() {
246: if (maxWaitTimeInMillis == null) {
247: return "60000";
248: } else {
249: return maxWaitTimeInMillis;
250: }
251: }
252:
253: /**
254: * Sets the value of the maxWaitTimeInMillis property.
255: *
256: * @param value
257: * allowed object is
258: * {@link String }
259: *
260: */
261: public void setMaxWaitTimeInMillis(String value) {
262: this .maxWaitTimeInMillis = value;
263: }
264:
265: /**
266: * Gets the value of the poolResizeQuantity property.
267: *
268: * @return
269: * possible object is
270: * {@link String }
271: *
272: */
273: public String getPoolResizeQuantity() {
274: if (poolResizeQuantity == null) {
275: return "2";
276: } else {
277: return poolResizeQuantity;
278: }
279: }
280:
281: /**
282: * Sets the value of the poolResizeQuantity property.
283: *
284: * @param value
285: * allowed object is
286: * {@link String }
287: *
288: */
289: public void setPoolResizeQuantity(String value) {
290: this .poolResizeQuantity = value;
291: }
292:
293: /**
294: * Gets the value of the idleTimeoutInSeconds property.
295: *
296: * @return
297: * possible object is
298: * {@link String }
299: *
300: */
301: public String getIdleTimeoutInSeconds() {
302: if (idleTimeoutInSeconds == null) {
303: return "300";
304: } else {
305: return idleTimeoutInSeconds;
306: }
307: }
308:
309: /**
310: * Sets the value of the idleTimeoutInSeconds property.
311: *
312: * @param value
313: * allowed object is
314: * {@link String }
315: *
316: */
317: public void setIdleTimeoutInSeconds(String value) {
318: this .idleTimeoutInSeconds = value;
319: }
320:
321: /**
322: * Gets the value of the failAllConnections property.
323: *
324: * @return
325: * possible object is
326: * {@link String }
327: *
328: */
329: public String getFailAllConnections() {
330: if (failAllConnections == null) {
331: return "false";
332: } else {
333: return failAllConnections;
334: }
335: }
336:
337: /**
338: * Sets the value of the failAllConnections property.
339: *
340: * @param value
341: * allowed object is
342: * {@link String }
343: *
344: */
345: public void setFailAllConnections(String value) {
346: this .failAllConnections = value;
347: }
348:
349: /**
350: * Gets the value of the transactionSupport property.
351: *
352: * @return
353: * possible object is
354: * {@link String }
355: *
356: */
357: public String getTransactionSupport() {
358: return transactionSupport;
359: }
360:
361: /**
362: * Sets the value of the transactionSupport property.
363: *
364: * @param value
365: * allowed object is
366: * {@link String }
367: *
368: */
369: public void setTransactionSupport(String value) {
370: this .transactionSupport = value;
371: }
372:
373: /**
374: * Gets the value of the isConnectionValidationRequired property.
375: *
376: * @return
377: * possible object is
378: * {@link String }
379: *
380: */
381: public String getIsConnectionValidationRequired() {
382: if (isConnectionValidationRequired == null) {
383: return "false";
384: } else {
385: return isConnectionValidationRequired;
386: }
387: }
388:
389: /**
390: * Sets the value of the isConnectionValidationRequired property.
391: *
392: * @param value
393: * allowed object is
394: * {@link String }
395: *
396: */
397: public void setIsConnectionValidationRequired(String value) {
398: this .isConnectionValidationRequired = value;
399: }
400:
401: /**
402: * Gets the value of the description property.
403: *
404: * @return
405: * possible object is
406: * {@link String }
407: *
408: */
409: public String getDescription() {
410: return description;
411: }
412:
413: /**
414: * Sets the value of the description property.
415: *
416: * @param value
417: * allowed object is
418: * {@link String }
419: *
420: */
421: public void setDescription(String value) {
422: this .description = value;
423: }
424:
425: /**
426: * Gets the value of the securityMap property.
427: *
428: * <p>
429: * This accessor method returns a reference to the live list,
430: * not a snapshot. Therefore any modification you make to the
431: * returned list will be present inside the JAXB object.
432: * This is why there is not a <CODE>set</CODE> method for the securityMap property.
433: *
434: * <p>
435: * For example, to add a new item, do as follows:
436: * <pre>
437: * getSecurityMap().add(newItem);
438: * </pre>
439: *
440: *
441: * <p>
442: * Objects of the following type(s) are allowed in the list
443: * {@link SecurityMap }
444: *
445: *
446: */
447: public List<SecurityMap> getSecurityMap() {
448: if (securityMap == null) {
449: securityMap = new ArrayList<SecurityMap>();
450: }
451: return this .securityMap;
452: }
453:
454: /**
455: * Gets the value of the property property.
456: *
457: * <p>
458: * This accessor method returns a reference to the live list,
459: * not a snapshot. Therefore any modification you make to the
460: * returned list will be present inside the JAXB object.
461: * This is why there is not a <CODE>set</CODE> method for the property property.
462: *
463: * <p>
464: * For example, to add a new item, do as follows:
465: * <pre>
466: * getProperty().add(newItem);
467: * </pre>
468: *
469: *
470: * <p>
471: * Objects of the following type(s) are allowed in the list
472: * {@link Property }
473: *
474: *
475: */
476: public List<Property> getProperty() {
477: if (property == null) {
478: property = new ArrayList<Property>();
479: }
480: return this.property;
481: }
482:
483: }
|