001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.wls;
017:
018: import java.math.BigInteger;
019: import java.util.ArrayList;
020: import java.util.List;
021: import javax.xml.bind.annotation.XmlAccessType;
022: import javax.xml.bind.annotation.XmlAccessorType;
023: import javax.xml.bind.annotation.XmlAttribute;
024: import javax.xml.bind.annotation.XmlElement;
025: import javax.xml.bind.annotation.XmlID;
026: import javax.xml.bind.annotation.XmlType;
027: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
028: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
029:
030: /**
031: * <p>Java class for retry-methods-on-rollback complex type.
032: *
033: * <p>The following schema fragment specifies the expected content contained within this class.
034: *
035: * <pre>
036: * <complexType name="retry-methods-on-rollback">
037: * <complexContent>
038: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
039: * <sequence>
040: * <element name="description" type="{http://www.bea.com/ns/weblogic/90}description" minOccurs="0"/>
041: * <element name="retry-count" type="{http://www.w3.org/2001/XMLSchema}integer"/>
042: * <element name="method" type="{http://www.bea.com/ns/weblogic/90}method" maxOccurs="unbounded"/>
043: * </sequence>
044: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
045: * </restriction>
046: * </complexContent>
047: * </complexType>
048: * </pre>
049: *
050: *
051: */
052: @XmlAccessorType(XmlAccessType.FIELD)
053: @XmlType(name="retry-methods-on-rollback",propOrder={"description","retryCount","method"})
054: public class RetryMethodsOnRollback {
055:
056: protected Description description;
057: @XmlElement(name="retry-count",required=true)
058: protected BigInteger retryCount;
059: @XmlElement(required=true)
060: protected List<Method> method;
061: @XmlAttribute
062: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
063: @XmlID
064: protected String id;
065:
066: /**
067: * Gets the value of the description property.
068: *
069: * @return
070: * possible object is
071: * {@link Description }
072: *
073: */
074: public Description getDescription() {
075: return description;
076: }
077:
078: /**
079: * Sets the value of the description property.
080: *
081: * @param value
082: * allowed object is
083: * {@link Description }
084: *
085: */
086: public void setDescription(Description value) {
087: this .description = value;
088: }
089:
090: /**
091: * Gets the value of the retryCount property.
092: *
093: * @return
094: * possible object is
095: * {@link BigInteger }
096: *
097: */
098: public BigInteger getRetryCount() {
099: return retryCount;
100: }
101:
102: /**
103: * Sets the value of the retryCount property.
104: *
105: * @param value
106: * allowed object is
107: * {@link BigInteger }
108: *
109: */
110: public void setRetryCount(BigInteger value) {
111: this .retryCount = value;
112: }
113:
114: /**
115: * Gets the value of the method property.
116: *
117: * <p>
118: * This accessor method returns a reference to the live list,
119: * not a snapshot. Therefore any modification you make to the
120: * returned list will be present inside the JAXB object.
121: * This is why there is not a <CODE>set</CODE> method for the method property.
122: *
123: * <p>
124: * For example, to add a new item, do as follows:
125: * <pre>
126: * getMethod().add(newItem);
127: * </pre>
128: *
129: *
130: * <p>
131: * Objects of the following type(s) are allowed in the list
132: * {@link Method }
133: *
134: *
135: */
136: public List<Method> getMethod() {
137: if (method == null) {
138: method = new ArrayList<Method>();
139: }
140: return this .method;
141: }
142:
143: /**
144: * Gets the value of the id property.
145: *
146: * @return
147: * possible object is
148: * {@link String }
149: *
150: */
151: public String getId() {
152: return id;
153: }
154:
155: /**
156: * Sets the value of the id property.
157: *
158: * @param value
159: * allowed object is
160: * {@link String }
161: *
162: */
163: public void setId(String value) {
164: this.id = value;
165: }
166:
167: }
|