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 javax.xml.bind.annotation.XmlAccessType;
020: import javax.xml.bind.annotation.XmlAccessorType;
021: import javax.xml.bind.annotation.XmlAttribute;
022: import javax.xml.bind.annotation.XmlElement;
023: import javax.xml.bind.annotation.XmlID;
024: import javax.xml.bind.annotation.XmlType;
025: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
026: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
027:
028: /**
029: * <p>Java class for entity-cache-ref complex type.
030: *
031: * <p>The following schema fragment specifies the expected content contained within this class.
032: *
033: * <pre>
034: * <complexType name="entity-cache-ref">
035: * <complexContent>
036: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
037: * <sequence>
038: * <element name="entity-cache-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
039: * <element name="idle-timeout-seconds" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
040: * <element name="read-timeout-seconds" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
041: * <element name="concurrency-strategy" type="{http://www.w3.org/2001/XMLSchema}string"/>
042: * <element name="cache-between-transactions" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
043: * <element name="estimated-bean-size" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
044: * </sequence>
045: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
046: * </restriction>
047: * </complexContent>
048: * </complexType>
049: * </pre>
050: *
051: *
052: */
053: @XmlAccessorType(XmlAccessType.FIELD)
054: @XmlType(name="entity-cache-ref",propOrder={"entityCacheName","idleTimeoutSeconds","readTimeoutSeconds","concurrencyStrategy","cacheBetweenTransactions","estimatedBeanSize"})
055: public class EntityCacheRef {
056:
057: @XmlElement(name="entity-cache-name",required=true)
058: protected String entityCacheName;
059: @XmlElement(name="idle-timeout-seconds")
060: protected BigInteger idleTimeoutSeconds;
061: @XmlElement(name="read-timeout-seconds")
062: protected BigInteger readTimeoutSeconds;
063: @XmlElement(name="concurrency-strategy",required=true)
064: protected String concurrencyStrategy;
065: @XmlElement(name="cache-between-transactions")
066: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
067: protected Boolean cacheBetweenTransactions;
068: @XmlElement(name="estimated-bean-size")
069: protected BigInteger estimatedBeanSize;
070: @XmlAttribute
071: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
072: @XmlID
073: protected String id;
074:
075: /**
076: * Gets the value of the entityCacheName property.
077: *
078: * @return
079: * possible object is
080: * {@link String }
081: *
082: */
083: public String getEntityCacheName() {
084: return entityCacheName;
085: }
086:
087: /**
088: * Sets the value of the entityCacheName property.
089: *
090: * @param value
091: * allowed object is
092: * {@link String }
093: *
094: */
095: public void setEntityCacheName(String value) {
096: this .entityCacheName = value;
097: }
098:
099: /**
100: * Gets the value of the idleTimeoutSeconds property.
101: *
102: * @return
103: * possible object is
104: * {@link BigInteger }
105: *
106: */
107: public BigInteger getIdleTimeoutSeconds() {
108: return idleTimeoutSeconds;
109: }
110:
111: /**
112: * Sets the value of the idleTimeoutSeconds property.
113: *
114: * @param value
115: * allowed object is
116: * {@link BigInteger }
117: *
118: */
119: public void setIdleTimeoutSeconds(BigInteger value) {
120: this .idleTimeoutSeconds = value;
121: }
122:
123: /**
124: * Gets the value of the readTimeoutSeconds property.
125: *
126: * @return
127: * possible object is
128: * {@link BigInteger }
129: *
130: */
131: public BigInteger getReadTimeoutSeconds() {
132: return readTimeoutSeconds;
133: }
134:
135: /**
136: * Sets the value of the readTimeoutSeconds property.
137: *
138: * @param value
139: * allowed object is
140: * {@link BigInteger }
141: *
142: */
143: public void setReadTimeoutSeconds(BigInteger value) {
144: this .readTimeoutSeconds = value;
145: }
146:
147: /**
148: * Gets the value of the concurrencyStrategy property.
149: *
150: * @return
151: * possible object is
152: * {@link String }
153: *
154: */
155: public String getConcurrencyStrategy() {
156: return concurrencyStrategy;
157: }
158:
159: /**
160: * Sets the value of the concurrencyStrategy property.
161: *
162: * @param value
163: * allowed object is
164: * {@link String }
165: *
166: */
167: public void setConcurrencyStrategy(String value) {
168: this .concurrencyStrategy = value;
169: }
170:
171: /**
172: * Gets the value of the cacheBetweenTransactions property.
173: *
174: * @return
175: * possible object is
176: * {@link Boolean }
177: *
178: */
179: public Boolean getCacheBetweenTransactions() {
180: return cacheBetweenTransactions;
181: }
182:
183: /**
184: * Sets the value of the cacheBetweenTransactions property.
185: *
186: * @param value
187: * allowed object is
188: * {@link Boolean }
189: *
190: */
191: public void setCacheBetweenTransactions(Boolean value) {
192: this .cacheBetweenTransactions = value;
193: }
194:
195: /**
196: * Gets the value of the estimatedBeanSize property.
197: *
198: * @return
199: * possible object is
200: * {@link BigInteger }
201: *
202: */
203: public BigInteger getEstimatedBeanSize() {
204: return estimatedBeanSize;
205: }
206:
207: /**
208: * Sets the value of the estimatedBeanSize property.
209: *
210: * @param value
211: * allowed object is
212: * {@link BigInteger }
213: *
214: */
215: public void setEstimatedBeanSize(BigInteger value) {
216: this .estimatedBeanSize = value;
217: }
218:
219: /**
220: * Gets the value of the id property.
221: *
222: * @return
223: * possible object is
224: * {@link String }
225: *
226: */
227: public String getId() {
228: return id;
229: }
230:
231: /**
232: * Sets the value of the id property.
233: *
234: * @param value
235: * allowed object is
236: * {@link String }
237: *
238: */
239: public void setId(String value) {
240: this.id = value;
241: }
242:
243: }
|