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.util.ArrayList;
019: import java.util.List;
020: import javax.xml.bind.annotation.XmlAccessType;
021: import javax.xml.bind.annotation.XmlAccessorType;
022: import javax.xml.bind.annotation.XmlAttribute;
023: import javax.xml.bind.annotation.XmlElement;
024: import javax.xml.bind.annotation.XmlID;
025: import javax.xml.bind.annotation.XmlType;
026: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
027: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
028:
029: /**
030: * <p>Java class for transaction-isolation complex type.
031: *
032: * <p>The following schema fragment specifies the expected content contained within this class.
033: *
034: * <pre>
035: * <complexType name="transaction-isolation">
036: * <complexContent>
037: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
038: * <sequence>
039: * <element name="isolation-level" type="{http://www.w3.org/2001/XMLSchema}string"/>
040: * <element name="method" type="{http://www.bea.com/ns/weblogic/90}method" maxOccurs="unbounded"/>
041: * </sequence>
042: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
043: * </restriction>
044: * </complexContent>
045: * </complexType>
046: * </pre>
047: *
048: *
049: */
050: @XmlAccessorType(XmlAccessType.FIELD)
051: @XmlType(name="transaction-isolation",propOrder={"isolationLevel","method"})
052: public class TransactionIsolation {
053:
054: @XmlElement(name="isolation-level",required=true)
055: protected String isolationLevel;
056: @XmlElement(required=true)
057: protected List<Method> method;
058: @XmlAttribute
059: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
060: @XmlID
061: protected String id;
062:
063: /**
064: * Gets the value of the isolationLevel property.
065: *
066: * @return
067: * possible object is
068: * {@link String }
069: *
070: */
071: public String getIsolationLevel() {
072: return isolationLevel;
073: }
074:
075: /**
076: * Sets the value of the isolationLevel property.
077: *
078: * @param value
079: * allowed object is
080: * {@link String }
081: *
082: */
083: public void setIsolationLevel(String value) {
084: this .isolationLevel = value;
085: }
086:
087: /**
088: * Gets the value of the method property.
089: *
090: * <p>
091: * This accessor method returns a reference to the live list,
092: * not a snapshot. Therefore any modification you make to the
093: * returned list will be present inside the JAXB object.
094: * This is why there is not a <CODE>set</CODE> method for the method property.
095: *
096: * <p>
097: * For example, to add a new item, do as follows:
098: * <pre>
099: * getMethod().add(newItem);
100: * </pre>
101: *
102: *
103: * <p>
104: * Objects of the following type(s) are allowed in the list
105: * {@link Method }
106: *
107: *
108: */
109: public List<Method> getMethod() {
110: if (method == null) {
111: method = new ArrayList<Method>();
112: }
113: return this .method;
114: }
115:
116: /**
117: * Gets the value of the id property.
118: *
119: * @return
120: * possible object is
121: * {@link String }
122: *
123: */
124: public String getId() {
125: return id;
126: }
127:
128: /**
129: * Sets the value of the id property.
130: *
131: * @param value
132: * allowed object is
133: * {@link String }
134: *
135: */
136: public void setId(String value) {
137: this.id = value;
138: }
139:
140: }
|