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 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.XmlRootElement;
026: import javax.xml.bind.annotation.XmlType;
027: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
028: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
029:
030: /**
031: *
032: */
033: @XmlAccessorType(XmlAccessType.FIELD)
034: @XmlType(name="",propOrder={"ejbName","jndiName","localJndiName","callByValue","readOnly","exceptionOnRollback","timerPersistence","configurationName","invokerBindings","securityProxy","ejbRef","ejbLocalRef","serviceRef","securityIdentity","resourceRef","resourceEnvRef","messageDestinationRef","methodAttributes","clustered","clusterConfig","cacheInvalidation","cacheInvalidationConfig","depends","iorSecurityConfig"})
035: @XmlRootElement(name="entity")
036: public class Entity {
037:
038: @XmlAttribute
039: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
040: @XmlID
041: protected String id;
042: @XmlElement(name="ejb-name",required=true)
043: protected String ejbName;
044: @XmlElement(name="jndi-name")
045: protected JndiName jndiName;
046: @XmlElement(name="local-jndi-name")
047: protected String localJndiName;
048: @XmlElement(name="call-by-value")
049: protected String callByValue;
050: @XmlElement(name="read-only")
051: protected String readOnly;
052: @XmlElement(name="exception-on-rollback")
053: protected String exceptionOnRollback;
054: @XmlElement(name="timer-persistence")
055: protected String timerPersistence;
056: @XmlElement(name="configuration-name")
057: protected String configurationName;
058: @XmlElement(name="invoker-bindings")
059: protected InvokerBindings invokerBindings;
060: @XmlElement(name="security-proxy")
061: protected String securityProxy;
062: @XmlElement(name="ejb-ref")
063: protected List<EjbRef> ejbRef;
064: @XmlElement(name="ejb-local-ref")
065: protected List<EjbLocalRef> ejbLocalRef;
066: @XmlElement(name="service-ref")
067: protected List<ServiceRef> serviceRef;
068: @XmlElement(name="security-identity")
069: protected SecurityIdentity securityIdentity;
070: @XmlElement(name="resource-ref")
071: protected List<ResourceRef> resourceRef;
072: @XmlElement(name="resource-env-ref")
073: protected List<ResourceEnvRef> resourceEnvRef;
074: @XmlElement(name="message-destination-ref")
075: protected List<MessageDestinationRef> messageDestinationRef;
076: @XmlElement(name="method-attributes")
077: protected MethodAttributes methodAttributes;
078: protected String clustered;
079: @XmlElement(name="cluster-config")
080: protected ClusterConfig clusterConfig;
081: @XmlElement(name="cache-invalidation")
082: protected String cacheInvalidation;
083: @XmlElement(name="cache-invalidation-config")
084: protected CacheInvalidationConfig cacheInvalidationConfig;
085: protected List<Depends> depends;
086: @XmlElement(name="ior-security-config")
087: protected IorSecurityConfig iorSecurityConfig;
088:
089: /**
090: * Gets the value of the id property.
091: *
092: * @return
093: * possible object is
094: * {@link String }
095: *
096: */
097: public String getId() {
098: return id;
099: }
100:
101: /**
102: * Sets the value of the id property.
103: *
104: * @param value
105: * allowed object is
106: * {@link String }
107: *
108: */
109: public void setId(String value) {
110: this .id = value;
111: }
112:
113: /**
114: * Gets the value of the ejbName property.
115: *
116: * @return
117: * possible object is
118: * {@link String }
119: *
120: */
121: public String getEjbName() {
122: return ejbName;
123: }
124:
125: /**
126: * Sets the value of the ejbName property.
127: *
128: * @param value
129: * allowed object is
130: * {@link String }
131: *
132: */
133: public void setEjbName(String value) {
134: this .ejbName = value;
135: }
136:
137: /**
138: * Gets the value of the jndiName property.
139: *
140: * @return
141: * possible object is
142: * {@link JndiName }
143: *
144: */
145: public JndiName getJndiName() {
146: return jndiName;
147: }
148:
149: /**
150: * Sets the value of the jndiName property.
151: *
152: * @param value
153: * allowed object is
154: * {@link JndiName }
155: *
156: */
157: public void setJndiName(JndiName value) {
158: this .jndiName = value;
159: }
160:
161: /**
162: * Gets the value of the localJndiName property.
163: *
164: * @return
165: * possible object is
166: * {@link String }
167: *
168: */
169: public String getLocalJndiName() {
170: return localJndiName;
171: }
172:
173: /**
174: * Sets the value of the localJndiName property.
175: *
176: * @param value
177: * allowed object is
178: * {@link String }
179: *
180: */
181: public void setLocalJndiName(String value) {
182: this .localJndiName = value;
183: }
184:
185: /**
186: * Gets the value of the callByValue property.
187: *
188: * @return
189: * possible object is
190: * {@link String }
191: *
192: */
193: public String getCallByValue() {
194: return callByValue;
195: }
196:
197: /**
198: * Sets the value of the callByValue property.
199: *
200: * @param value
201: * allowed object is
202: * {@link String }
203: *
204: */
205: public void setCallByValue(String value) {
206: this .callByValue = value;
207: }
208:
209: /**
210: * Gets the value of the readOnly property.
211: *
212: * @return
213: * possible object is
214: * {@link String }
215: *
216: */
217: public String getReadOnly() {
218: return readOnly;
219: }
220:
221: /**
222: * Sets the value of the readOnly property.
223: *
224: * @param value
225: * allowed object is
226: * {@link String }
227: *
228: */
229: public void setReadOnly(String value) {
230: this .readOnly = value;
231: }
232:
233: /**
234: * Gets the value of the exceptionOnRollback property.
235: *
236: * @return
237: * possible object is
238: * {@link String }
239: *
240: */
241: public String getExceptionOnRollback() {
242: return exceptionOnRollback;
243: }
244:
245: /**
246: * Sets the value of the exceptionOnRollback property.
247: *
248: * @param value
249: * allowed object is
250: * {@link String }
251: *
252: */
253: public void setExceptionOnRollback(String value) {
254: this .exceptionOnRollback = value;
255: }
256:
257: /**
258: * Gets the value of the timerPersistence property.
259: *
260: * @return
261: * possible object is
262: * {@link String }
263: *
264: */
265: public String getTimerPersistence() {
266: return timerPersistence;
267: }
268:
269: /**
270: * Sets the value of the timerPersistence property.
271: *
272: * @param value
273: * allowed object is
274: * {@link String }
275: *
276: */
277: public void setTimerPersistence(String value) {
278: this .timerPersistence = value;
279: }
280:
281: /**
282: * Gets the value of the configurationName property.
283: *
284: * @return
285: * possible object is
286: * {@link String }
287: *
288: */
289: public String getConfigurationName() {
290: return configurationName;
291: }
292:
293: /**
294: * Sets the value of the configurationName property.
295: *
296: * @param value
297: * allowed object is
298: * {@link String }
299: *
300: */
301: public void setConfigurationName(String value) {
302: this .configurationName = value;
303: }
304:
305: /**
306: * Gets the value of the invokerBindings property.
307: *
308: * @return
309: * possible object is
310: * {@link InvokerBindings }
311: *
312: */
313: public InvokerBindings getInvokerBindings() {
314: return invokerBindings;
315: }
316:
317: /**
318: * Sets the value of the invokerBindings property.
319: *
320: * @param value
321: * allowed object is
322: * {@link InvokerBindings }
323: *
324: */
325: public void setInvokerBindings(InvokerBindings value) {
326: this .invokerBindings = value;
327: }
328:
329: /**
330: * Gets the value of the securityProxy property.
331: *
332: * @return
333: * possible object is
334: * {@link String }
335: *
336: */
337: public String getSecurityProxy() {
338: return securityProxy;
339: }
340:
341: /**
342: * Sets the value of the securityProxy property.
343: *
344: * @param value
345: * allowed object is
346: * {@link String }
347: *
348: */
349: public void setSecurityProxy(String value) {
350: this .securityProxy = value;
351: }
352:
353: /**
354: * Gets the value of the ejbRef property.
355: *
356: * <p>
357: * This accessor method returns a reference to the live list,
358: * not a snapshot. Therefore any modification you make to the
359: * returned list will be present inside the JAXB object.
360: * This is why there is not a <CODE>set</CODE> method for the ejbRef property.
361: *
362: * <p>
363: * For example, to add a new item, do as follows:
364: * <pre>
365: * getEjbRef().add(newItem);
366: * </pre>
367: *
368: *
369: * <p>
370: * Objects of the following type(s) are allowed in the list
371: * {@link EjbRef }
372: *
373: *
374: */
375: public List<EjbRef> getEjbRef() {
376: if (ejbRef == null) {
377: ejbRef = new ArrayList<EjbRef>();
378: }
379: return this .ejbRef;
380: }
381:
382: /**
383: * Gets the value of the ejbLocalRef property.
384: *
385: * <p>
386: * This accessor method returns a reference to the live list,
387: * not a snapshot. Therefore any modification you make to the
388: * returned list will be present inside the JAXB object.
389: * This is why there is not a <CODE>set</CODE> method for the ejbLocalRef property.
390: *
391: * <p>
392: * For example, to add a new item, do as follows:
393: * <pre>
394: * getEjbLocalRef().add(newItem);
395: * </pre>
396: *
397: *
398: * <p>
399: * Objects of the following type(s) are allowed in the list
400: * {@link EjbLocalRef }
401: *
402: *
403: */
404: public List<EjbLocalRef> getEjbLocalRef() {
405: if (ejbLocalRef == null) {
406: ejbLocalRef = new ArrayList<EjbLocalRef>();
407: }
408: return this .ejbLocalRef;
409: }
410:
411: /**
412: * Gets the value of the serviceRef property.
413: *
414: * <p>
415: * This accessor method returns a reference to the live list,
416: * not a snapshot. Therefore any modification you make to the
417: * returned list will be present inside the JAXB object.
418: * This is why there is not a <CODE>set</CODE> method for the serviceRef property.
419: *
420: * <p>
421: * For example, to add a new item, do as follows:
422: * <pre>
423: * getServiceRef().add(newItem);
424: * </pre>
425: *
426: *
427: * <p>
428: * Objects of the following type(s) are allowed in the list
429: * {@link ServiceRef }
430: *
431: *
432: */
433: public List<ServiceRef> getServiceRef() {
434: if (serviceRef == null) {
435: serviceRef = new ArrayList<ServiceRef>();
436: }
437: return this .serviceRef;
438: }
439:
440: /**
441: * Gets the value of the securityIdentity property.
442: *
443: * @return
444: * possible object is
445: * {@link SecurityIdentity }
446: *
447: */
448: public SecurityIdentity getSecurityIdentity() {
449: return securityIdentity;
450: }
451:
452: /**
453: * Sets the value of the securityIdentity property.
454: *
455: * @param value
456: * allowed object is
457: * {@link SecurityIdentity }
458: *
459: */
460: public void setSecurityIdentity(SecurityIdentity value) {
461: this .securityIdentity = value;
462: }
463:
464: /**
465: * Gets the value of the resourceRef property.
466: *
467: * <p>
468: * This accessor method returns a reference to the live list,
469: * not a snapshot. Therefore any modification you make to the
470: * returned list will be present inside the JAXB object.
471: * This is why there is not a <CODE>set</CODE> method for the resourceRef property.
472: *
473: * <p>
474: * For example, to add a new item, do as follows:
475: * <pre>
476: * getResourceRef().add(newItem);
477: * </pre>
478: *
479: *
480: * <p>
481: * Objects of the following type(s) are allowed in the list
482: * {@link ResourceRef }
483: *
484: *
485: */
486: public List<ResourceRef> getResourceRef() {
487: if (resourceRef == null) {
488: resourceRef = new ArrayList<ResourceRef>();
489: }
490: return this .resourceRef;
491: }
492:
493: /**
494: * Gets the value of the resourceEnvRef property.
495: *
496: * <p>
497: * This accessor method returns a reference to the live list,
498: * not a snapshot. Therefore any modification you make to the
499: * returned list will be present inside the JAXB object.
500: * This is why there is not a <CODE>set</CODE> method for the resourceEnvRef property.
501: *
502: * <p>
503: * For example, to add a new item, do as follows:
504: * <pre>
505: * getResourceEnvRef().add(newItem);
506: * </pre>
507: *
508: *
509: * <p>
510: * Objects of the following type(s) are allowed in the list
511: * {@link ResourceEnvRef }
512: *
513: *
514: */
515: public List<ResourceEnvRef> getResourceEnvRef() {
516: if (resourceEnvRef == null) {
517: resourceEnvRef = new ArrayList<ResourceEnvRef>();
518: }
519: return this .resourceEnvRef;
520: }
521:
522: /**
523: * Gets the value of the messageDestinationRef property.
524: *
525: * <p>
526: * This accessor method returns a reference to the live list,
527: * not a snapshot. Therefore any modification you make to the
528: * returned list will be present inside the JAXB object.
529: * This is why there is not a <CODE>set</CODE> method for the messageDestinationRef property.
530: *
531: * <p>
532: * For example, to add a new item, do as follows:
533: * <pre>
534: * getMessageDestinationRef().add(newItem);
535: * </pre>
536: *
537: *
538: * <p>
539: * Objects of the following type(s) are allowed in the list
540: * {@link MessageDestinationRef }
541: *
542: *
543: */
544: public List<MessageDestinationRef> getMessageDestinationRef() {
545: if (messageDestinationRef == null) {
546: messageDestinationRef = new ArrayList<MessageDestinationRef>();
547: }
548: return this .messageDestinationRef;
549: }
550:
551: /**
552: * Gets the value of the methodAttributes property.
553: *
554: * @return
555: * possible object is
556: * {@link MethodAttributes }
557: *
558: */
559: public MethodAttributes getMethodAttributes() {
560: return methodAttributes;
561: }
562:
563: /**
564: * Sets the value of the methodAttributes property.
565: *
566: * @param value
567: * allowed object is
568: * {@link MethodAttributes }
569: *
570: */
571: public void setMethodAttributes(MethodAttributes value) {
572: this .methodAttributes = value;
573: }
574:
575: /**
576: * Gets the value of the clustered property.
577: *
578: * @return
579: * possible object is
580: * {@link String }
581: *
582: */
583: public String getClustered() {
584: return clustered;
585: }
586:
587: /**
588: * Sets the value of the clustered property.
589: *
590: * @param value
591: * allowed object is
592: * {@link String }
593: *
594: */
595: public void setClustered(String value) {
596: this .clustered = value;
597: }
598:
599: /**
600: * Gets the value of the clusterConfig property.
601: *
602: * @return
603: * possible object is
604: * {@link ClusterConfig }
605: *
606: */
607: public ClusterConfig getClusterConfig() {
608: return clusterConfig;
609: }
610:
611: /**
612: * Sets the value of the clusterConfig property.
613: *
614: * @param value
615: * allowed object is
616: * {@link ClusterConfig }
617: *
618: */
619: public void setClusterConfig(ClusterConfig value) {
620: this .clusterConfig = value;
621: }
622:
623: /**
624: * Gets the value of the cacheInvalidation property.
625: *
626: * @return
627: * possible object is
628: * {@link String }
629: *
630: */
631: public String getCacheInvalidation() {
632: return cacheInvalidation;
633: }
634:
635: /**
636: * Sets the value of the cacheInvalidation property.
637: *
638: * @param value
639: * allowed object is
640: * {@link String }
641: *
642: */
643: public void setCacheInvalidation(String value) {
644: this .cacheInvalidation = value;
645: }
646:
647: /**
648: * Gets the value of the cacheInvalidationConfig property.
649: *
650: * @return
651: * possible object is
652: * {@link CacheInvalidationConfig }
653: *
654: */
655: public CacheInvalidationConfig getCacheInvalidationConfig() {
656: return cacheInvalidationConfig;
657: }
658:
659: /**
660: * Sets the value of the cacheInvalidationConfig property.
661: *
662: * @param value
663: * allowed object is
664: * {@link CacheInvalidationConfig }
665: *
666: */
667: public void setCacheInvalidationConfig(CacheInvalidationConfig value) {
668: this .cacheInvalidationConfig = value;
669: }
670:
671: /**
672: * Gets the value of the depends property.
673: *
674: * <p>
675: * This accessor method returns a reference to the live list,
676: * not a snapshot. Therefore any modification you make to the
677: * returned list will be present inside the JAXB object.
678: * This is why there is not a <CODE>set</CODE> method for the depends property.
679: *
680: * <p>
681: * For example, to add a new item, do as follows:
682: * <pre>
683: * getDepends().add(newItem);
684: * </pre>
685: *
686: *
687: * <p>
688: * Objects of the following type(s) are allowed in the list
689: * {@link Depends }
690: *
691: *
692: */
693: public List<Depends> getDepends() {
694: if (depends == null) {
695: depends = new ArrayList<Depends>();
696: }
697: return this .depends;
698: }
699:
700: /**
701: * Gets the value of the iorSecurityConfig property.
702: *
703: * @return
704: * possible object is
705: * {@link IorSecurityConfig }
706: *
707: */
708: public IorSecurityConfig getIorSecurityConfig() {
709: return iorSecurityConfig;
710: }
711:
712: /**
713: * Sets the value of the iorSecurityConfig property.
714: *
715: * @param value
716: * allowed object is
717: * {@link IorSecurityConfig }
718: *
719: */
720: public void setIorSecurityConfig(IorSecurityConfig value) {
721: this.iorSecurityConfig = value;
722: }
723:
724: }
|