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.jba;
017:
018: import javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlElement;
021: import javax.xml.bind.annotation.XmlRootElement;
022: import javax.xml.bind.annotation.XmlType;
023:
024: /**
025: *
026: */
027: @XmlAccessorType(XmlAccessType.FIELD)
028: @XmlType(name="",propOrder={"methodName","readOnly","idempotent","transactionTimeout"})
029: @XmlRootElement(name="method")
030: public class Method {
031:
032: @XmlElement(name="method-name",required=true)
033: protected String methodName;
034: @XmlElement(name="read-only")
035: protected String readOnly;
036: protected String idempotent;
037: @XmlElement(name="transaction-timeout")
038: protected String transactionTimeout;
039:
040: /**
041: * Gets the value of the methodName property.
042: *
043: * @return
044: * possible object is
045: * {@link String }
046: *
047: */
048: public String getMethodName() {
049: return methodName;
050: }
051:
052: /**
053: * Sets the value of the methodName property.
054: *
055: * @param value
056: * allowed object is
057: * {@link String }
058: *
059: */
060: public void setMethodName(String value) {
061: this .methodName = value;
062: }
063:
064: /**
065: * Gets the value of the readOnly property.
066: *
067: * @return
068: * possible object is
069: * {@link String }
070: *
071: */
072: public String getReadOnly() {
073: return readOnly;
074: }
075:
076: /**
077: * Sets the value of the readOnly property.
078: *
079: * @param value
080: * allowed object is
081: * {@link String }
082: *
083: */
084: public void setReadOnly(String value) {
085: this .readOnly = value;
086: }
087:
088: /**
089: * Gets the value of the idempotent property.
090: *
091: * @return
092: * possible object is
093: * {@link String }
094: *
095: */
096: public String getIdempotent() {
097: return idempotent;
098: }
099:
100: /**
101: * Sets the value of the idempotent property.
102: *
103: * @param value
104: * allowed object is
105: * {@link String }
106: *
107: */
108: public void setIdempotent(String value) {
109: this .idempotent = value;
110: }
111:
112: /**
113: * Gets the value of the transactionTimeout property.
114: *
115: * @return
116: * possible object is
117: * {@link String }
118: *
119: */
120: public String getTransactionTimeout() {
121: return transactionTimeout;
122: }
123:
124: /**
125: * Sets the value of the transactionTimeout property.
126: *
127: * @param value
128: * allowed object is
129: * {@link String }
130: *
131: */
132: public void setTransactionTimeout(String value) {
133: this.transactionTimeout = value;
134: }
135:
136: }
|