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="jdbc-connection-pool")
068: public class JdbcConnectionPool {
069:
070: @XmlAttribute(required=true)
071: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
072: protected String name;
073: @XmlAttribute(name="datasource-classname",required=true)
074: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
075: protected String datasourceClassname;
076: @XmlAttribute(name="res-type")
077: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
078: protected String resType;
079: @XmlAttribute(name="steady-pool-size")
080: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
081: protected String steadyPoolSize;
082: @XmlAttribute(name="max-pool-size")
083: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
084: protected String maxPoolSize;
085: @XmlAttribute(name="max-wait-time-in-millis")
086: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
087: protected String maxWaitTimeInMillis;
088: @XmlAttribute(name="pool-resize-quantity")
089: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
090: protected String poolResizeQuantity;
091: @XmlAttribute(name="idle-timeout-in-seconds")
092: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
093: protected String idleTimeoutInSeconds;
094: @XmlAttribute(name="transaction-isolation-level")
095: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
096: protected String transactionIsolationLevel;
097: @XmlAttribute(name="is-isolation-level-guaranteed")
098: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
099: protected String isIsolationLevelGuaranteed;
100: @XmlAttribute(name="is-connection-validation-required")
101: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
102: protected String isConnectionValidationRequired;
103: @XmlAttribute(name="connection-validation-method")
104: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
105: protected String connectionValidationMethod;
106: @XmlAttribute(name="validation-table-name")
107: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
108: protected String validationTableName;
109: @XmlAttribute(name="fail-all-connections")
110: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
111: protected String failAllConnections;
112: @XmlAttribute(name="non-transactional-connections")
113: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
114: protected String nonTransactionalConnections;
115: @XmlAttribute(name="allow-non-component-callers")
116: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
117: protected String allowNonComponentCallers;
118: protected String description;
119: protected List<Property> property;
120:
121: /**
122: * Gets the value of the name property.
123: *
124: * @return
125: * possible object is
126: * {@link String }
127: *
128: */
129: public String getName() {
130: return name;
131: }
132:
133: /**
134: * Sets the value of the name property.
135: *
136: * @param value
137: * allowed object is
138: * {@link String }
139: *
140: */
141: public void setName(String value) {
142: this .name = value;
143: }
144:
145: /**
146: * Gets the value of the datasourceClassname property.
147: *
148: * @return
149: * possible object is
150: * {@link String }
151: *
152: */
153: public String getDatasourceClassname() {
154: return datasourceClassname;
155: }
156:
157: /**
158: * Sets the value of the datasourceClassname property.
159: *
160: * @param value
161: * allowed object is
162: * {@link String }
163: *
164: */
165: public void setDatasourceClassname(String value) {
166: this .datasourceClassname = value;
167: }
168:
169: /**
170: * Gets the value of the resType property.
171: *
172: * @return
173: * possible object is
174: * {@link String }
175: *
176: */
177: public String getResType() {
178: return resType;
179: }
180:
181: /**
182: * Sets the value of the resType property.
183: *
184: * @param value
185: * allowed object is
186: * {@link String }
187: *
188: */
189: public void setResType(String value) {
190: this .resType = value;
191: }
192:
193: /**
194: * Gets the value of the steadyPoolSize property.
195: *
196: * @return
197: * possible object is
198: * {@link String }
199: *
200: */
201: public String getSteadyPoolSize() {
202: if (steadyPoolSize == null) {
203: return "8";
204: } else {
205: return steadyPoolSize;
206: }
207: }
208:
209: /**
210: * Sets the value of the steadyPoolSize property.
211: *
212: * @param value
213: * allowed object is
214: * {@link String }
215: *
216: */
217: public void setSteadyPoolSize(String value) {
218: this .steadyPoolSize = value;
219: }
220:
221: /**
222: * Gets the value of the maxPoolSize property.
223: *
224: * @return
225: * possible object is
226: * {@link String }
227: *
228: */
229: public String getMaxPoolSize() {
230: if (maxPoolSize == null) {
231: return "32";
232: } else {
233: return maxPoolSize;
234: }
235: }
236:
237: /**
238: * Sets the value of the maxPoolSize property.
239: *
240: * @param value
241: * allowed object is
242: * {@link String }
243: *
244: */
245: public void setMaxPoolSize(String value) {
246: this .maxPoolSize = value;
247: }
248:
249: /**
250: * Gets the value of the maxWaitTimeInMillis property.
251: *
252: * @return
253: * possible object is
254: * {@link String }
255: *
256: */
257: public String getMaxWaitTimeInMillis() {
258: if (maxWaitTimeInMillis == null) {
259: return "60000";
260: } else {
261: return maxWaitTimeInMillis;
262: }
263: }
264:
265: /**
266: * Sets the value of the maxWaitTimeInMillis property.
267: *
268: * @param value
269: * allowed object is
270: * {@link String }
271: *
272: */
273: public void setMaxWaitTimeInMillis(String value) {
274: this .maxWaitTimeInMillis = value;
275: }
276:
277: /**
278: * Gets the value of the poolResizeQuantity property.
279: *
280: * @return
281: * possible object is
282: * {@link String }
283: *
284: */
285: public String getPoolResizeQuantity() {
286: if (poolResizeQuantity == null) {
287: return "2";
288: } else {
289: return poolResizeQuantity;
290: }
291: }
292:
293: /**
294: * Sets the value of the poolResizeQuantity property.
295: *
296: * @param value
297: * allowed object is
298: * {@link String }
299: *
300: */
301: public void setPoolResizeQuantity(String value) {
302: this .poolResizeQuantity = value;
303: }
304:
305: /**
306: * Gets the value of the idleTimeoutInSeconds property.
307: *
308: * @return
309: * possible object is
310: * {@link String }
311: *
312: */
313: public String getIdleTimeoutInSeconds() {
314: if (idleTimeoutInSeconds == null) {
315: return "300";
316: } else {
317: return idleTimeoutInSeconds;
318: }
319: }
320:
321: /**
322: * Sets the value of the idleTimeoutInSeconds property.
323: *
324: * @param value
325: * allowed object is
326: * {@link String }
327: *
328: */
329: public void setIdleTimeoutInSeconds(String value) {
330: this .idleTimeoutInSeconds = value;
331: }
332:
333: /**
334: * Gets the value of the transactionIsolationLevel property.
335: *
336: * @return
337: * possible object is
338: * {@link String }
339: *
340: */
341: public String getTransactionIsolationLevel() {
342: return transactionIsolationLevel;
343: }
344:
345: /**
346: * Sets the value of the transactionIsolationLevel property.
347: *
348: * @param value
349: * allowed object is
350: * {@link String }
351: *
352: */
353: public void setTransactionIsolationLevel(String value) {
354: this .transactionIsolationLevel = value;
355: }
356:
357: /**
358: * Gets the value of the isIsolationLevelGuaranteed property.
359: *
360: * @return
361: * possible object is
362: * {@link String }
363: *
364: */
365: public String getIsIsolationLevelGuaranteed() {
366: if (isIsolationLevelGuaranteed == null) {
367: return "true";
368: } else {
369: return isIsolationLevelGuaranteed;
370: }
371: }
372:
373: /**
374: * Sets the value of the isIsolationLevelGuaranteed property.
375: *
376: * @param value
377: * allowed object is
378: * {@link String }
379: *
380: */
381: public void setIsIsolationLevelGuaranteed(String value) {
382: this .isIsolationLevelGuaranteed = value;
383: }
384:
385: /**
386: * Gets the value of the isConnectionValidationRequired property.
387: *
388: * @return
389: * possible object is
390: * {@link String }
391: *
392: */
393: public String getIsConnectionValidationRequired() {
394: if (isConnectionValidationRequired == null) {
395: return "false";
396: } else {
397: return isConnectionValidationRequired;
398: }
399: }
400:
401: /**
402: * Sets the value of the isConnectionValidationRequired property.
403: *
404: * @param value
405: * allowed object is
406: * {@link String }
407: *
408: */
409: public void setIsConnectionValidationRequired(String value) {
410: this .isConnectionValidationRequired = value;
411: }
412:
413: /**
414: * Gets the value of the connectionValidationMethod property.
415: *
416: * @return
417: * possible object is
418: * {@link String }
419: *
420: */
421: public String getConnectionValidationMethod() {
422: if (connectionValidationMethod == null) {
423: return "auto-commit";
424: } else {
425: return connectionValidationMethod;
426: }
427: }
428:
429: /**
430: * Sets the value of the connectionValidationMethod property.
431: *
432: * @param value
433: * allowed object is
434: * {@link String }
435: *
436: */
437: public void setConnectionValidationMethod(String value) {
438: this .connectionValidationMethod = value;
439: }
440:
441: /**
442: * Gets the value of the validationTableName property.
443: *
444: * @return
445: * possible object is
446: * {@link String }
447: *
448: */
449: public String getValidationTableName() {
450: return validationTableName;
451: }
452:
453: /**
454: * Sets the value of the validationTableName property.
455: *
456: * @param value
457: * allowed object is
458: * {@link String }
459: *
460: */
461: public void setValidationTableName(String value) {
462: this .validationTableName = value;
463: }
464:
465: /**
466: * Gets the value of the failAllConnections property.
467: *
468: * @return
469: * possible object is
470: * {@link String }
471: *
472: */
473: public String getFailAllConnections() {
474: if (failAllConnections == null) {
475: return "false";
476: } else {
477: return failAllConnections;
478: }
479: }
480:
481: /**
482: * Sets the value of the failAllConnections property.
483: *
484: * @param value
485: * allowed object is
486: * {@link String }
487: *
488: */
489: public void setFailAllConnections(String value) {
490: this .failAllConnections = value;
491: }
492:
493: /**
494: * Gets the value of the nonTransactionalConnections property.
495: *
496: * @return
497: * possible object is
498: * {@link String }
499: *
500: */
501: public String getNonTransactionalConnections() {
502: if (nonTransactionalConnections == null) {
503: return "false";
504: } else {
505: return nonTransactionalConnections;
506: }
507: }
508:
509: /**
510: * Sets the value of the nonTransactionalConnections property.
511: *
512: * @param value
513: * allowed object is
514: * {@link String }
515: *
516: */
517: public void setNonTransactionalConnections(String value) {
518: this .nonTransactionalConnections = value;
519: }
520:
521: /**
522: * Gets the value of the allowNonComponentCallers property.
523: *
524: * @return
525: * possible object is
526: * {@link String }
527: *
528: */
529: public String getAllowNonComponentCallers() {
530: if (allowNonComponentCallers == null) {
531: return "false";
532: } else {
533: return allowNonComponentCallers;
534: }
535: }
536:
537: /**
538: * Sets the value of the allowNonComponentCallers property.
539: *
540: * @param value
541: * allowed object is
542: * {@link String }
543: *
544: */
545: public void setAllowNonComponentCallers(String value) {
546: this .allowNonComponentCallers = value;
547: }
548:
549: /**
550: * Gets the value of the description property.
551: *
552: * @return
553: * possible object is
554: * {@link String }
555: *
556: */
557: public String getDescription() {
558: return description;
559: }
560:
561: /**
562: * Sets the value of the description property.
563: *
564: * @param value
565: * allowed object is
566: * {@link String }
567: *
568: */
569: public void setDescription(String value) {
570: this .description = value;
571: }
572:
573: /**
574: * Gets the value of the property property.
575: *
576: * <p>
577: * This accessor method returns a reference to the live list,
578: * not a snapshot. Therefore any modification you make to the
579: * returned list will be present inside the JAXB object.
580: * This is why there is not a <CODE>set</CODE> method for the property property.
581: *
582: * <p>
583: * For example, to add a new item, do as follows:
584: * <pre>
585: * getProperty().add(newItem);
586: * </pre>
587: *
588: *
589: * <p>
590: * Objects of the following type(s) are allowed in the list
591: * {@link Property }
592: *
593: *
594: */
595: public List<Property> getProperty() {
596: if (property == null) {
597: property = new ArrayList<Property>();
598: }
599: return this.property;
600: }
601:
602: }
|