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.cmp;
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.XmlElement;
023: import javax.xml.bind.annotation.XmlRootElement;
024: import javax.xml.bind.annotation.XmlType;
025:
026: /**
027: * <p>Java class for anonymous complex type.
028: *
029: * <p>The following schema fragment specifies the expected content contained within this class.
030: *
031: * <pre>
032: * <complexType>
033: * <complexContent>
034: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
035: * <sequence>
036: * <element ref="{http://jboss.org}ejb-name"/>
037: * <element ref="{http://jboss.org}datasource" minOccurs="0"/>
038: * <element ref="{http://jboss.org}datasource-mapping" minOccurs="0"/>
039: * <element ref="{http://jboss.org}create-table" minOccurs="0"/>
040: * <element ref="{http://jboss.org}remove-table" minOccurs="0"/>
041: * <element ref="{http://jboss.org}post-table-create" minOccurs="0"/>
042: * <element ref="{http://jboss.org}read-only" minOccurs="0"/>
043: * <element ref="{http://jboss.org}read-time-out" minOccurs="0"/>
044: * <element ref="{http://jboss.org}row-locking" minOccurs="0"/>
045: * <element ref="{http://jboss.org}pk-constraint" minOccurs="0"/>
046: * <element ref="{http://jboss.org}read-ahead" minOccurs="0"/>
047: * <element ref="{http://jboss.org}list-cache-max" minOccurs="0"/>
048: * <element ref="{http://jboss.org}clean-read-ahead-on-load" minOccurs="0"/>
049: * <element ref="{http://jboss.org}fetch-size" minOccurs="0"/>
050: * <element ref="{http://jboss.org}table-name" minOccurs="0"/>
051: * <element ref="{http://jboss.org}cmp-field" maxOccurs="unbounded" minOccurs="0"/>
052: * <element ref="{http://jboss.org}load-groups" minOccurs="0"/>
053: * <element ref="{http://jboss.org}eager-load-group" minOccurs="0"/>
054: * <element ref="{http://jboss.org}lazy-load-groups" minOccurs="0"/>
055: * <element ref="{http://jboss.org}query" maxOccurs="unbounded" minOccurs="0"/>
056: * <element ref="{http://jboss.org}unknown-pk" minOccurs="0"/>
057: * <element ref="{http://jboss.org}entity-command" minOccurs="0"/>
058: * <element ref="{http://jboss.org}optimistic-locking" minOccurs="0"/>
059: * <element ref="{http://jboss.org}audit" minOccurs="0"/>
060: * </sequence>
061: * </restriction>
062: * </complexContent>
063: * </complexType>
064: * </pre>
065: *
066: *
067: */
068: @XmlAccessorType(XmlAccessType.FIELD)
069: @XmlType(name="",propOrder={"ejbName","datasource","datasourceMapping","createTable","removeTable","postTableCreate","readOnly","readTimeOut","rowLocking","pkConstraint","readAhead","listCacheMax","cleanReadAheadOnLoad","fetchSize","tableName","cmpField","loadGroups","eagerLoadGroup","lazyLoadGroups","query","unknownPk","entityCommand","optimisticLocking","audit"})
070: @XmlRootElement(name="entity")
071: public class Entity {
072:
073: @XmlElement(name="ejb-name",required=true)
074: protected EjbName ejbName;
075: protected Datasource datasource;
076: @XmlElement(name="datasource-mapping")
077: protected DatasourceMapping datasourceMapping;
078: @XmlElement(name="create-table")
079: protected CreateTable createTable;
080: @XmlElement(name="remove-table")
081: protected RemoveTable removeTable;
082: @XmlElement(name="post-table-create")
083: protected PostTableCreate postTableCreate;
084: @XmlElement(name="read-only")
085: protected ReadOnly readOnly;
086: @XmlElement(name="read-time-out")
087: protected ReadTimeOut readTimeOut;
088: @XmlElement(name="row-locking")
089: protected RowLocking rowLocking;
090: @XmlElement(name="pk-constraint")
091: protected PkConstraint pkConstraint;
092: @XmlElement(name="read-ahead")
093: protected ReadAhead readAhead;
094: @XmlElement(name="list-cache-max")
095: protected ListCacheMax listCacheMax;
096: @XmlElement(name="clean-read-ahead-on-load")
097: protected CleanReadAheadOnLoad cleanReadAheadOnLoad;
098: @XmlElement(name="fetch-size")
099: protected FetchSize fetchSize;
100: @XmlElement(name="table-name")
101: protected TableName tableName;
102: @XmlElement(name="cmp-field")
103: protected List<CmpField> cmpField;
104: @XmlElement(name="load-groups")
105: protected LoadGroups loadGroups;
106: @XmlElement(name="eager-load-group")
107: protected EagerLoadGroup eagerLoadGroup;
108: @XmlElement(name="lazy-load-groups")
109: protected LazyLoadGroups lazyLoadGroups;
110: protected List<Query> query;
111: @XmlElement(name="unknown-pk")
112: protected UnknownPk unknownPk;
113: @XmlElement(name="entity-command")
114: protected EntityCommand entityCommand;
115: @XmlElement(name="optimistic-locking")
116: protected OptimisticLocking optimisticLocking;
117: protected Audit audit;
118:
119: /**
120: * Gets the value of the ejbName property.
121: *
122: * @return
123: * possible object is
124: * {@link EjbName }
125: *
126: */
127: public EjbName getEjbName() {
128: return ejbName;
129: }
130:
131: /**
132: * Sets the value of the ejbName property.
133: *
134: * @param value
135: * allowed object is
136: * {@link EjbName }
137: *
138: */
139: public void setEjbName(EjbName value) {
140: this .ejbName = value;
141: }
142:
143: /**
144: * Gets the value of the datasource property.
145: *
146: * @return
147: * possible object is
148: * {@link Datasource }
149: *
150: */
151: public Datasource getDatasource() {
152: return datasource;
153: }
154:
155: /**
156: * Sets the value of the datasource property.
157: *
158: * @param value
159: * allowed object is
160: * {@link Datasource }
161: *
162: */
163: public void setDatasource(Datasource value) {
164: this .datasource = value;
165: }
166:
167: /**
168: * Gets the value of the datasourceMapping property.
169: *
170: * @return
171: * possible object is
172: * {@link DatasourceMapping }
173: *
174: */
175: public DatasourceMapping getDatasourceMapping() {
176: return datasourceMapping;
177: }
178:
179: /**
180: * Sets the value of the datasourceMapping property.
181: *
182: * @param value
183: * allowed object is
184: * {@link DatasourceMapping }
185: *
186: */
187: public void setDatasourceMapping(DatasourceMapping value) {
188: this .datasourceMapping = value;
189: }
190:
191: /**
192: * Gets the value of the createTable property.
193: *
194: * @return
195: * possible object is
196: * {@link CreateTable }
197: *
198: */
199: public CreateTable getCreateTable() {
200: return createTable;
201: }
202:
203: /**
204: * Sets the value of the createTable property.
205: *
206: * @param value
207: * allowed object is
208: * {@link CreateTable }
209: *
210: */
211: public void setCreateTable(CreateTable value) {
212: this .createTable = value;
213: }
214:
215: /**
216: * Gets the value of the removeTable property.
217: *
218: * @return
219: * possible object is
220: * {@link RemoveTable }
221: *
222: */
223: public RemoveTable getRemoveTable() {
224: return removeTable;
225: }
226:
227: /**
228: * Sets the value of the removeTable property.
229: *
230: * @param value
231: * allowed object is
232: * {@link RemoveTable }
233: *
234: */
235: public void setRemoveTable(RemoveTable value) {
236: this .removeTable = value;
237: }
238:
239: /**
240: * Gets the value of the postTableCreate property.
241: *
242: * @return
243: * possible object is
244: * {@link PostTableCreate }
245: *
246: */
247: public PostTableCreate getPostTableCreate() {
248: return postTableCreate;
249: }
250:
251: /**
252: * Sets the value of the postTableCreate property.
253: *
254: * @param value
255: * allowed object is
256: * {@link PostTableCreate }
257: *
258: */
259: public void setPostTableCreate(PostTableCreate value) {
260: this .postTableCreate = value;
261: }
262:
263: /**
264: * Gets the value of the readOnly property.
265: *
266: * @return
267: * possible object is
268: * {@link ReadOnly }
269: *
270: */
271: public ReadOnly getReadOnly() {
272: return readOnly;
273: }
274:
275: /**
276: * Sets the value of the readOnly property.
277: *
278: * @param value
279: * allowed object is
280: * {@link ReadOnly }
281: *
282: */
283: public void setReadOnly(ReadOnly value) {
284: this .readOnly = value;
285: }
286:
287: /**
288: * Gets the value of the readTimeOut property.
289: *
290: * @return
291: * possible object is
292: * {@link ReadTimeOut }
293: *
294: */
295: public ReadTimeOut getReadTimeOut() {
296: return readTimeOut;
297: }
298:
299: /**
300: * Sets the value of the readTimeOut property.
301: *
302: * @param value
303: * allowed object is
304: * {@link ReadTimeOut }
305: *
306: */
307: public void setReadTimeOut(ReadTimeOut value) {
308: this .readTimeOut = value;
309: }
310:
311: /**
312: * Gets the value of the rowLocking property.
313: *
314: * @return
315: * possible object is
316: * {@link RowLocking }
317: *
318: */
319: public RowLocking getRowLocking() {
320: return rowLocking;
321: }
322:
323: /**
324: * Sets the value of the rowLocking property.
325: *
326: * @param value
327: * allowed object is
328: * {@link RowLocking }
329: *
330: */
331: public void setRowLocking(RowLocking value) {
332: this .rowLocking = value;
333: }
334:
335: /**
336: * Gets the value of the pkConstraint property.
337: *
338: * @return
339: * possible object is
340: * {@link PkConstraint }
341: *
342: */
343: public PkConstraint getPkConstraint() {
344: return pkConstraint;
345: }
346:
347: /**
348: * Sets the value of the pkConstraint property.
349: *
350: * @param value
351: * allowed object is
352: * {@link PkConstraint }
353: *
354: */
355: public void setPkConstraint(PkConstraint value) {
356: this .pkConstraint = value;
357: }
358:
359: /**
360: * Gets the value of the readAhead property.
361: *
362: * @return
363: * possible object is
364: * {@link ReadAhead }
365: *
366: */
367: public ReadAhead getReadAhead() {
368: return readAhead;
369: }
370:
371: /**
372: * Sets the value of the readAhead property.
373: *
374: * @param value
375: * allowed object is
376: * {@link ReadAhead }
377: *
378: */
379: public void setReadAhead(ReadAhead value) {
380: this .readAhead = value;
381: }
382:
383: /**
384: * Gets the value of the listCacheMax property.
385: *
386: * @return
387: * possible object is
388: * {@link ListCacheMax }
389: *
390: */
391: public ListCacheMax getListCacheMax() {
392: return listCacheMax;
393: }
394:
395: /**
396: * Sets the value of the listCacheMax property.
397: *
398: * @param value
399: * allowed object is
400: * {@link ListCacheMax }
401: *
402: */
403: public void setListCacheMax(ListCacheMax value) {
404: this .listCacheMax = value;
405: }
406:
407: /**
408: * Gets the value of the cleanReadAheadOnLoad property.
409: *
410: * @return
411: * possible object is
412: * {@link CleanReadAheadOnLoad }
413: *
414: */
415: public CleanReadAheadOnLoad getCleanReadAheadOnLoad() {
416: return cleanReadAheadOnLoad;
417: }
418:
419: /**
420: * Sets the value of the cleanReadAheadOnLoad property.
421: *
422: * @param value
423: * allowed object is
424: * {@link CleanReadAheadOnLoad }
425: *
426: */
427: public void setCleanReadAheadOnLoad(CleanReadAheadOnLoad value) {
428: this .cleanReadAheadOnLoad = value;
429: }
430:
431: /**
432: * Gets the value of the fetchSize property.
433: *
434: * @return
435: * possible object is
436: * {@link FetchSize }
437: *
438: */
439: public FetchSize getFetchSize() {
440: return fetchSize;
441: }
442:
443: /**
444: * Sets the value of the fetchSize property.
445: *
446: * @param value
447: * allowed object is
448: * {@link FetchSize }
449: *
450: */
451: public void setFetchSize(FetchSize value) {
452: this .fetchSize = value;
453: }
454:
455: /**
456: * Gets the value of the tableName property.
457: *
458: * @return
459: * possible object is
460: * {@link TableName }
461: *
462: */
463: public TableName getTableName() {
464: return tableName;
465: }
466:
467: /**
468: * Sets the value of the tableName property.
469: *
470: * @param value
471: * allowed object is
472: * {@link TableName }
473: *
474: */
475: public void setTableName(TableName value) {
476: this .tableName = value;
477: }
478:
479: /**
480: * Gets the value of the cmpField property.
481: *
482: * <p>
483: * This accessor method returns a reference to the live list,
484: * not a snapshot. Therefore any modification you make to the
485: * returned list will be present inside the JAXB object.
486: * This is why there is not a <CODE>set</CODE> method for the cmpField property.
487: *
488: * <p>
489: * For example, to add a new item, do as follows:
490: * <pre>
491: * getCmpField().add(newItem);
492: * </pre>
493: *
494: *
495: * <p>
496: * Objects of the following type(s) are allowed in the list
497: * {@link CmpField }
498: *
499: *
500: */
501: public List<CmpField> getCmpField() {
502: if (cmpField == null) {
503: cmpField = new ArrayList<CmpField>();
504: }
505: return this .cmpField;
506: }
507:
508: /**
509: * Gets the value of the loadGroups property.
510: *
511: * @return
512: * possible object is
513: * {@link LoadGroups }
514: *
515: */
516: public LoadGroups getLoadGroups() {
517: return loadGroups;
518: }
519:
520: /**
521: * Sets the value of the loadGroups property.
522: *
523: * @param value
524: * allowed object is
525: * {@link LoadGroups }
526: *
527: */
528: public void setLoadGroups(LoadGroups value) {
529: this .loadGroups = value;
530: }
531:
532: /**
533: * Gets the value of the eagerLoadGroup property.
534: *
535: * @return
536: * possible object is
537: * {@link EagerLoadGroup }
538: *
539: */
540: public EagerLoadGroup getEagerLoadGroup() {
541: return eagerLoadGroup;
542: }
543:
544: /**
545: * Sets the value of the eagerLoadGroup property.
546: *
547: * @param value
548: * allowed object is
549: * {@link EagerLoadGroup }
550: *
551: */
552: public void setEagerLoadGroup(EagerLoadGroup value) {
553: this .eagerLoadGroup = value;
554: }
555:
556: /**
557: * Gets the value of the lazyLoadGroups property.
558: *
559: * @return
560: * possible object is
561: * {@link LazyLoadGroups }
562: *
563: */
564: public LazyLoadGroups getLazyLoadGroups() {
565: return lazyLoadGroups;
566: }
567:
568: /**
569: * Sets the value of the lazyLoadGroups property.
570: *
571: * @param value
572: * allowed object is
573: * {@link LazyLoadGroups }
574: *
575: */
576: public void setLazyLoadGroups(LazyLoadGroups value) {
577: this .lazyLoadGroups = value;
578: }
579:
580: /**
581: * Gets the value of the query property.
582: *
583: * <p>
584: * This accessor method returns a reference to the live list,
585: * not a snapshot. Therefore any modification you make to the
586: * returned list will be present inside the JAXB object.
587: * This is why there is not a <CODE>set</CODE> method for the query property.
588: *
589: * <p>
590: * For example, to add a new item, do as follows:
591: * <pre>
592: * getQuery().add(newItem);
593: * </pre>
594: *
595: *
596: * <p>
597: * Objects of the following type(s) are allowed in the list
598: * {@link Query }
599: *
600: *
601: */
602: public List<Query> getQuery() {
603: if (query == null) {
604: query = new ArrayList<Query>();
605: }
606: return this .query;
607: }
608:
609: /**
610: * Gets the value of the unknownPk property.
611: *
612: * @return
613: * possible object is
614: * {@link UnknownPk }
615: *
616: */
617: public UnknownPk getUnknownPk() {
618: return unknownPk;
619: }
620:
621: /**
622: * Sets the value of the unknownPk property.
623: *
624: * @param value
625: * allowed object is
626: * {@link UnknownPk }
627: *
628: */
629: public void setUnknownPk(UnknownPk value) {
630: this .unknownPk = value;
631: }
632:
633: /**
634: * Gets the value of the entityCommand property.
635: *
636: * @return
637: * possible object is
638: * {@link EntityCommand }
639: *
640: */
641: public EntityCommand getEntityCommand() {
642: return entityCommand;
643: }
644:
645: /**
646: * Sets the value of the entityCommand property.
647: *
648: * @param value
649: * allowed object is
650: * {@link EntityCommand }
651: *
652: */
653: public void setEntityCommand(EntityCommand value) {
654: this .entityCommand = value;
655: }
656:
657: /**
658: * Gets the value of the optimisticLocking property.
659: *
660: * @return
661: * possible object is
662: * {@link OptimisticLocking }
663: *
664: */
665: public OptimisticLocking getOptimisticLocking() {
666: return optimisticLocking;
667: }
668:
669: /**
670: * Sets the value of the optimisticLocking property.
671: *
672: * @param value
673: * allowed object is
674: * {@link OptimisticLocking }
675: *
676: */
677: public void setOptimisticLocking(OptimisticLocking value) {
678: this .optimisticLocking = value;
679: }
680:
681: /**
682: * Gets the value of the audit property.
683: *
684: * @return
685: * possible object is
686: * {@link Audit }
687: *
688: */
689: public Audit getAudit() {
690: return audit;
691: }
692:
693: /**
694: * Sets the value of the audit property.
695: *
696: * @param value
697: * allowed object is
698: * {@link Audit }
699: *
700: */
701: public void setAudit(Audit value) {
702: this.audit = value;
703: }
704:
705: }
|