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 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">
035: * <complexContent>
036: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
037: * <sequence>
038: * <element name="max-beans-in-cache" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
039: * <element name="max-queries-in-cache" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
040: * <element name="idle-timeout-seconds" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
041: * <element name="read-timeout-seconds" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
042: * <element name="concurrency-strategy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
043: * <element name="cache-between-transactions" type="{http://www.bea.com/ns/weblogic/90}true-false" 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",propOrder={"maxBeansInCache","maxQueriesInCache","idleTimeoutSeconds","readTimeoutSeconds","concurrencyStrategy","cacheBetweenTransactions"})
055: public class EntityCache {
056:
057: @XmlElement(name="max-beans-in-cache")
058: protected BigInteger maxBeansInCache;
059: @XmlElement(name="max-queries-in-cache")
060: protected BigInteger maxQueriesInCache;
061: @XmlElement(name="idle-timeout-seconds")
062: protected BigInteger idleTimeoutSeconds;
063: @XmlElement(name="read-timeout-seconds")
064: protected BigInteger readTimeoutSeconds;
065: @XmlElement(name="concurrency-strategy")
066: protected String concurrencyStrategy;
067: @XmlElement(name="cache-between-transactions")
068: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
069: protected Boolean cacheBetweenTransactions;
070: @XmlAttribute
071: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
072: @XmlID
073: protected String id;
074:
075: /**
076: * Gets the value of the maxBeansInCache property.
077: *
078: * @return
079: * possible object is
080: * {@link BigInteger }
081: *
082: */
083: public BigInteger getMaxBeansInCache() {
084: return maxBeansInCache;
085: }
086:
087: /**
088: * Sets the value of the maxBeansInCache property.
089: *
090: * @param value
091: * allowed object is
092: * {@link BigInteger }
093: *
094: */
095: public void setMaxBeansInCache(BigInteger value) {
096: this .maxBeansInCache = value;
097: }
098:
099: /**
100: * Gets the value of the maxQueriesInCache property.
101: *
102: * @return
103: * possible object is
104: * {@link BigInteger }
105: *
106: */
107: public BigInteger getMaxQueriesInCache() {
108: return maxQueriesInCache;
109: }
110:
111: /**
112: * Sets the value of the maxQueriesInCache property.
113: *
114: * @param value
115: * allowed object is
116: * {@link BigInteger }
117: *
118: */
119: public void setMaxQueriesInCache(BigInteger value) {
120: this .maxQueriesInCache = value;
121: }
122:
123: /**
124: * Gets the value of the idleTimeoutSeconds property.
125: *
126: * @return
127: * possible object is
128: * {@link BigInteger }
129: *
130: */
131: public BigInteger getIdleTimeoutSeconds() {
132: return idleTimeoutSeconds;
133: }
134:
135: /**
136: * Sets the value of the idleTimeoutSeconds property.
137: *
138: * @param value
139: * allowed object is
140: * {@link BigInteger }
141: *
142: */
143: public void setIdleTimeoutSeconds(BigInteger value) {
144: this .idleTimeoutSeconds = value;
145: }
146:
147: /**
148: * Gets the value of the readTimeoutSeconds property.
149: *
150: * @return
151: * possible object is
152: * {@link BigInteger }
153: *
154: */
155: public BigInteger getReadTimeoutSeconds() {
156: return readTimeoutSeconds;
157: }
158:
159: /**
160: * Sets the value of the readTimeoutSeconds property.
161: *
162: * @param value
163: * allowed object is
164: * {@link BigInteger }
165: *
166: */
167: public void setReadTimeoutSeconds(BigInteger value) {
168: this .readTimeoutSeconds = value;
169: }
170:
171: /**
172: * Gets the value of the concurrencyStrategy property.
173: *
174: * @return
175: * possible object is
176: * {@link String }
177: *
178: */
179: public String getConcurrencyStrategy() {
180: return concurrencyStrategy;
181: }
182:
183: /**
184: * Sets the value of the concurrencyStrategy property.
185: *
186: * @param value
187: * allowed object is
188: * {@link String }
189: *
190: */
191: public void setConcurrencyStrategy(String value) {
192: this .concurrencyStrategy = value;
193: }
194:
195: /**
196: * Gets the value of the cacheBetweenTransactions property.
197: *
198: * @return
199: * possible object is
200: * {@link Boolean }
201: *
202: */
203: public Boolean getCacheBetweenTransactions() {
204: return cacheBetweenTransactions;
205: }
206:
207: /**
208: * Sets the value of the cacheBetweenTransactions property.
209: *
210: * @param value
211: * allowed object is
212: * {@link Boolean }
213: *
214: */
215: public void setCacheBetweenTransactions(Boolean value) {
216: this .cacheBetweenTransactions = 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: }
|