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 javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlAttribute;
021: import javax.xml.bind.annotation.XmlElement;
022: import javax.xml.bind.annotation.XmlID;
023: import javax.xml.bind.annotation.XmlType;
024: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
025: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
026:
027: /**
028: * <p>Java class for entity-descriptor complex type.
029: *
030: * <p>The following schema fragment specifies the expected content contained within this class.
031: *
032: * <pre>
033: * <complexType name="entity-descriptor">
034: * <complexContent>
035: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
036: * <sequence>
037: * <element name="pool" type="{http://www.bea.com/ns/weblogic/90}pool" minOccurs="0"/>
038: * <element name="timer-descriptor" type="{http://www.bea.com/ns/weblogic/90}timer-descriptor" minOccurs="0"/>
039: * <choice minOccurs="0">
040: * <element name="entity-cache" type="{http://www.bea.com/ns/weblogic/90}entity-cache"/>
041: * <element name="entity-cache-ref" type="{http://www.bea.com/ns/weblogic/90}entity-cache-ref"/>
042: * </choice>
043: * <element name="persistence" type="{http://www.bea.com/ns/weblogic/90}persistence" minOccurs="0"/>
044: * <element name="entity-clustering" type="{http://www.bea.com/ns/weblogic/90}entity-clustering" minOccurs="0"/>
045: * <element name="invalidation-target" type="{http://www.bea.com/ns/weblogic/90}invalidation-target" minOccurs="0"/>
046: * <element name="enable-dynamic-queries" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
047: * </sequence>
048: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
049: * </restriction>
050: * </complexContent>
051: * </complexType>
052: * </pre>
053: *
054: *
055: */
056: @XmlAccessorType(XmlAccessType.FIELD)
057: @XmlType(name="entity-descriptor",propOrder={"pool","timerDescriptor","entityCache","entityCacheRef","persistence","entityClustering","invalidationTarget","enableDynamicQueries"})
058: public class EntityDescriptor {
059:
060: protected Pool pool;
061: @XmlElement(name="timer-descriptor")
062: protected TimerDescriptor timerDescriptor;
063: @XmlElement(name="entity-cache")
064: protected EntityCache entityCache;
065: @XmlElement(name="entity-cache-ref")
066: protected EntityCacheRef entityCacheRef;
067: protected Persistence persistence;
068: @XmlElement(name="entity-clustering")
069: protected EntityClustering entityClustering;
070: @XmlElement(name="invalidation-target")
071: protected InvalidationTarget invalidationTarget;
072: @XmlElement(name="enable-dynamic-queries")
073: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
074: protected Boolean enableDynamicQueries;
075: @XmlAttribute
076: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
077: @XmlID
078: protected String id;
079:
080: /**
081: * Gets the value of the pool property.
082: *
083: * @return
084: * possible object is
085: * {@link Pool }
086: *
087: */
088: public Pool getPool() {
089: return pool;
090: }
091:
092: /**
093: * Sets the value of the pool property.
094: *
095: * @param value
096: * allowed object is
097: * {@link Pool }
098: *
099: */
100: public void setPool(Pool value) {
101: this .pool = value;
102: }
103:
104: /**
105: * Gets the value of the timerDescriptor property.
106: *
107: * @return
108: * possible object is
109: * {@link TimerDescriptor }
110: *
111: */
112: public TimerDescriptor getTimerDescriptor() {
113: return timerDescriptor;
114: }
115:
116: /**
117: * Sets the value of the timerDescriptor property.
118: *
119: * @param value
120: * allowed object is
121: * {@link TimerDescriptor }
122: *
123: */
124: public void setTimerDescriptor(TimerDescriptor value) {
125: this .timerDescriptor = value;
126: }
127:
128: /**
129: * Gets the value of the entityCache property.
130: *
131: * @return
132: * possible object is
133: * {@link EntityCache }
134: *
135: */
136: public EntityCache getEntityCache() {
137: return entityCache;
138: }
139:
140: /**
141: * Sets the value of the entityCache property.
142: *
143: * @param value
144: * allowed object is
145: * {@link EntityCache }
146: *
147: */
148: public void setEntityCache(EntityCache value) {
149: this .entityCache = value;
150: }
151:
152: /**
153: * Gets the value of the entityCacheRef property.
154: *
155: * @return
156: * possible object is
157: * {@link EntityCacheRef }
158: *
159: */
160: public EntityCacheRef getEntityCacheRef() {
161: return entityCacheRef;
162: }
163:
164: /**
165: * Sets the value of the entityCacheRef property.
166: *
167: * @param value
168: * allowed object is
169: * {@link EntityCacheRef }
170: *
171: */
172: public void setEntityCacheRef(EntityCacheRef value) {
173: this .entityCacheRef = value;
174: }
175:
176: /**
177: * Gets the value of the persistence property.
178: *
179: * @return
180: * possible object is
181: * {@link Persistence }
182: *
183: */
184: public Persistence getPersistence() {
185: return persistence;
186: }
187:
188: /**
189: * Sets the value of the persistence property.
190: *
191: * @param value
192: * allowed object is
193: * {@link Persistence }
194: *
195: */
196: public void setPersistence(Persistence value) {
197: this .persistence = value;
198: }
199:
200: /**
201: * Gets the value of the entityClustering property.
202: *
203: * @return
204: * possible object is
205: * {@link EntityClustering }
206: *
207: */
208: public EntityClustering getEntityClustering() {
209: return entityClustering;
210: }
211:
212: /**
213: * Sets the value of the entityClustering property.
214: *
215: * @param value
216: * allowed object is
217: * {@link EntityClustering }
218: *
219: */
220: public void setEntityClustering(EntityClustering value) {
221: this .entityClustering = value;
222: }
223:
224: /**
225: * Gets the value of the invalidationTarget property.
226: *
227: * @return
228: * possible object is
229: * {@link InvalidationTarget }
230: *
231: */
232: public InvalidationTarget getInvalidationTarget() {
233: return invalidationTarget;
234: }
235:
236: /**
237: * Sets the value of the invalidationTarget property.
238: *
239: * @param value
240: * allowed object is
241: * {@link InvalidationTarget }
242: *
243: */
244: public void setInvalidationTarget(InvalidationTarget value) {
245: this .invalidationTarget = value;
246: }
247:
248: /**
249: * Gets the value of the enableDynamicQueries property.
250: *
251: * @return
252: * possible object is
253: * {@link Boolean }
254: *
255: */
256: public Boolean getEnableDynamicQueries() {
257: return enableDynamicQueries;
258: }
259:
260: /**
261: * Sets the value of the enableDynamicQueries property.
262: *
263: * @param value
264: * allowed object is
265: * {@link Boolean }
266: *
267: */
268: public void setEnableDynamicQueries(Boolean value) {
269: this .enableDynamicQueries = value;
270: }
271:
272: /**
273: * Gets the value of the id property.
274: *
275: * @return
276: * possible object is
277: * {@link String }
278: *
279: */
280: public String getId() {
281: return id;
282: }
283:
284: /**
285: * Sets the value of the id property.
286: *
287: * @param value
288: * allowed object is
289: * {@link String }
290: *
291: */
292: public void setId(String value) {
293: this.id = value;
294: }
295:
296: }
|