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 javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlElement;
021: import javax.xml.bind.annotation.XmlRootElement;
022: import javax.xml.bind.annotation.XmlType;
023:
024: /**
025: * <p>Java class for anonymous complex type.
026: *
027: * <p>The following schema fragment specifies the expected content contained within this class.
028: *
029: * <pre>
030: * <complexType>
031: * <complexContent>
032: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
033: * <sequence>
034: * <element ref="{http://jboss.org}datasource" minOccurs="0"/>
035: * <element ref="{http://jboss.org}datasource-mapping" minOccurs="0"/>
036: * <element ref="{http://jboss.org}create-table" minOccurs="0"/>
037: * <element ref="{http://jboss.org}alter-table" minOccurs="0"/>
038: * <element ref="{http://jboss.org}remove-table" minOccurs="0"/>
039: * <element ref="{http://jboss.org}post-table-create" minOccurs="0"/>
040: * <element ref="{http://jboss.org}read-only" minOccurs="0"/>
041: * <element ref="{http://jboss.org}read-time-out" minOccurs="0"/>
042: * <element ref="{http://jboss.org}row-locking" minOccurs="0"/>
043: * <element ref="{http://jboss.org}pk-constraint" minOccurs="0"/>
044: * <element ref="{http://jboss.org}fk-constraint" minOccurs="0"/>
045: * <element ref="{http://jboss.org}preferred-relation-mapping" 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}unknown-pk" minOccurs="0"/>
051: * <element ref="{http://jboss.org}entity-command" minOccurs="0"/>
052: * <element ref="{http://jboss.org}ql-compiler" minOccurs="0"/>
053: * <element ref="{http://jboss.org}throw-runtime-exceptions" minOccurs="0"/>
054: * </sequence>
055: * </restriction>
056: * </complexContent>
057: * </complexType>
058: * </pre>
059: *
060: *
061: */
062: @XmlAccessorType(XmlAccessType.FIELD)
063: @XmlType(name="",propOrder={"datasource","datasourceMapping","createTable","alterTable","removeTable","postTableCreate","readOnly","readTimeOut","rowLocking","pkConstraint","fkConstraint","preferredRelationMapping","readAhead","listCacheMax","cleanReadAheadOnLoad","fetchSize","unknownPk","entityCommand","qlCompiler","throwRuntimeExceptions"})
064: @XmlRootElement(name="defaults")
065: public class Defaults {
066:
067: protected Datasource datasource;
068: @XmlElement(name="datasource-mapping")
069: protected DatasourceMapping datasourceMapping;
070: @XmlElement(name="create-table")
071: protected CreateTable createTable;
072: @XmlElement(name="alter-table")
073: protected AlterTable alterTable;
074: @XmlElement(name="remove-table")
075: protected RemoveTable removeTable;
076: @XmlElement(name="post-table-create")
077: protected PostTableCreate postTableCreate;
078: @XmlElement(name="read-only")
079: protected ReadOnly readOnly;
080: @XmlElement(name="read-time-out")
081: protected ReadTimeOut readTimeOut;
082: @XmlElement(name="row-locking")
083: protected RowLocking rowLocking;
084: @XmlElement(name="pk-constraint")
085: protected PkConstraint pkConstraint;
086: @XmlElement(name="fk-constraint")
087: protected FkConstraint fkConstraint;
088: @XmlElement(name="preferred-relation-mapping")
089: protected PreferredRelationMapping preferredRelationMapping;
090: @XmlElement(name="read-ahead")
091: protected ReadAhead readAhead;
092: @XmlElement(name="list-cache-max")
093: protected ListCacheMax listCacheMax;
094: @XmlElement(name="clean-read-ahead-on-load")
095: protected CleanReadAheadOnLoad cleanReadAheadOnLoad;
096: @XmlElement(name="fetch-size")
097: protected FetchSize fetchSize;
098: @XmlElement(name="unknown-pk")
099: protected UnknownPk unknownPk;
100: @XmlElement(name="entity-command")
101: protected EntityCommand entityCommand;
102: @XmlElement(name="ql-compiler")
103: protected QlCompiler qlCompiler;
104: @XmlElement(name="throw-runtime-exceptions")
105: protected ThrowRuntimeExceptions throwRuntimeExceptions;
106:
107: /**
108: * Gets the value of the datasource property.
109: *
110: * @return
111: * possible object is
112: * {@link Datasource }
113: *
114: */
115: public Datasource getDatasource() {
116: return datasource;
117: }
118:
119: /**
120: * Sets the value of the datasource property.
121: *
122: * @param value
123: * allowed object is
124: * {@link Datasource }
125: *
126: */
127: public void setDatasource(Datasource value) {
128: this .datasource = value;
129: }
130:
131: /**
132: * Gets the value of the datasourceMapping property.
133: *
134: * @return
135: * possible object is
136: * {@link DatasourceMapping }
137: *
138: */
139: public DatasourceMapping getDatasourceMapping() {
140: return datasourceMapping;
141: }
142:
143: /**
144: * Sets the value of the datasourceMapping property.
145: *
146: * @param value
147: * allowed object is
148: * {@link DatasourceMapping }
149: *
150: */
151: public void setDatasourceMapping(DatasourceMapping value) {
152: this .datasourceMapping = value;
153: }
154:
155: /**
156: * Gets the value of the createTable property.
157: *
158: * @return
159: * possible object is
160: * {@link CreateTable }
161: *
162: */
163: public CreateTable getCreateTable() {
164: return createTable;
165: }
166:
167: /**
168: * Sets the value of the createTable property.
169: *
170: * @param value
171: * allowed object is
172: * {@link CreateTable }
173: *
174: */
175: public void setCreateTable(CreateTable value) {
176: this .createTable = value;
177: }
178:
179: /**
180: * Gets the value of the alterTable property.
181: *
182: * @return
183: * possible object is
184: * {@link AlterTable }
185: *
186: */
187: public AlterTable getAlterTable() {
188: return alterTable;
189: }
190:
191: /**
192: * Sets the value of the alterTable property.
193: *
194: * @param value
195: * allowed object is
196: * {@link AlterTable }
197: *
198: */
199: public void setAlterTable(AlterTable value) {
200: this .alterTable = value;
201: }
202:
203: /**
204: * Gets the value of the removeTable property.
205: *
206: * @return
207: * possible object is
208: * {@link RemoveTable }
209: *
210: */
211: public RemoveTable getRemoveTable() {
212: return removeTable;
213: }
214:
215: /**
216: * Sets the value of the removeTable property.
217: *
218: * @param value
219: * allowed object is
220: * {@link RemoveTable }
221: *
222: */
223: public void setRemoveTable(RemoveTable value) {
224: this .removeTable = value;
225: }
226:
227: /**
228: * Gets the value of the postTableCreate property.
229: *
230: * @return
231: * possible object is
232: * {@link PostTableCreate }
233: *
234: */
235: public PostTableCreate getPostTableCreate() {
236: return postTableCreate;
237: }
238:
239: /**
240: * Sets the value of the postTableCreate property.
241: *
242: * @param value
243: * allowed object is
244: * {@link PostTableCreate }
245: *
246: */
247: public void setPostTableCreate(PostTableCreate value) {
248: this .postTableCreate = value;
249: }
250:
251: /**
252: * Gets the value of the readOnly property.
253: *
254: * @return
255: * possible object is
256: * {@link ReadOnly }
257: *
258: */
259: public ReadOnly getReadOnly() {
260: return readOnly;
261: }
262:
263: /**
264: * Sets the value of the readOnly property.
265: *
266: * @param value
267: * allowed object is
268: * {@link ReadOnly }
269: *
270: */
271: public void setReadOnly(ReadOnly value) {
272: this .readOnly = value;
273: }
274:
275: /**
276: * Gets the value of the readTimeOut property.
277: *
278: * @return
279: * possible object is
280: * {@link ReadTimeOut }
281: *
282: */
283: public ReadTimeOut getReadTimeOut() {
284: return readTimeOut;
285: }
286:
287: /**
288: * Sets the value of the readTimeOut property.
289: *
290: * @param value
291: * allowed object is
292: * {@link ReadTimeOut }
293: *
294: */
295: public void setReadTimeOut(ReadTimeOut value) {
296: this .readTimeOut = value;
297: }
298:
299: /**
300: * Gets the value of the rowLocking property.
301: *
302: * @return
303: * possible object is
304: * {@link RowLocking }
305: *
306: */
307: public RowLocking getRowLocking() {
308: return rowLocking;
309: }
310:
311: /**
312: * Sets the value of the rowLocking property.
313: *
314: * @param value
315: * allowed object is
316: * {@link RowLocking }
317: *
318: */
319: public void setRowLocking(RowLocking value) {
320: this .rowLocking = value;
321: }
322:
323: /**
324: * Gets the value of the pkConstraint property.
325: *
326: * @return
327: * possible object is
328: * {@link PkConstraint }
329: *
330: */
331: public PkConstraint getPkConstraint() {
332: return pkConstraint;
333: }
334:
335: /**
336: * Sets the value of the pkConstraint property.
337: *
338: * @param value
339: * allowed object is
340: * {@link PkConstraint }
341: *
342: */
343: public void setPkConstraint(PkConstraint value) {
344: this .pkConstraint = value;
345: }
346:
347: /**
348: * Gets the value of the fkConstraint property.
349: *
350: * @return
351: * possible object is
352: * {@link FkConstraint }
353: *
354: */
355: public FkConstraint getFkConstraint() {
356: return fkConstraint;
357: }
358:
359: /**
360: * Sets the value of the fkConstraint property.
361: *
362: * @param value
363: * allowed object is
364: * {@link FkConstraint }
365: *
366: */
367: public void setFkConstraint(FkConstraint value) {
368: this .fkConstraint = value;
369: }
370:
371: /**
372: * Gets the value of the preferredRelationMapping property.
373: *
374: * @return
375: * possible object is
376: * {@link PreferredRelationMapping }
377: *
378: */
379: public PreferredRelationMapping getPreferredRelationMapping() {
380: return preferredRelationMapping;
381: }
382:
383: /**
384: * Sets the value of the preferredRelationMapping property.
385: *
386: * @param value
387: * allowed object is
388: * {@link PreferredRelationMapping }
389: *
390: */
391: public void setPreferredRelationMapping(
392: PreferredRelationMapping value) {
393: this .preferredRelationMapping = value;
394: }
395:
396: /**
397: * Gets the value of the readAhead property.
398: *
399: * @return
400: * possible object is
401: * {@link ReadAhead }
402: *
403: */
404: public ReadAhead getReadAhead() {
405: return readAhead;
406: }
407:
408: /**
409: * Sets the value of the readAhead property.
410: *
411: * @param value
412: * allowed object is
413: * {@link ReadAhead }
414: *
415: */
416: public void setReadAhead(ReadAhead value) {
417: this .readAhead = value;
418: }
419:
420: /**
421: * Gets the value of the listCacheMax property.
422: *
423: * @return
424: * possible object is
425: * {@link ListCacheMax }
426: *
427: */
428: public ListCacheMax getListCacheMax() {
429: return listCacheMax;
430: }
431:
432: /**
433: * Sets the value of the listCacheMax property.
434: *
435: * @param value
436: * allowed object is
437: * {@link ListCacheMax }
438: *
439: */
440: public void setListCacheMax(ListCacheMax value) {
441: this .listCacheMax = value;
442: }
443:
444: /**
445: * Gets the value of the cleanReadAheadOnLoad property.
446: *
447: * @return
448: * possible object is
449: * {@link CleanReadAheadOnLoad }
450: *
451: */
452: public CleanReadAheadOnLoad getCleanReadAheadOnLoad() {
453: return cleanReadAheadOnLoad;
454: }
455:
456: /**
457: * Sets the value of the cleanReadAheadOnLoad property.
458: *
459: * @param value
460: * allowed object is
461: * {@link CleanReadAheadOnLoad }
462: *
463: */
464: public void setCleanReadAheadOnLoad(CleanReadAheadOnLoad value) {
465: this .cleanReadAheadOnLoad = value;
466: }
467:
468: /**
469: * Gets the value of the fetchSize property.
470: *
471: * @return
472: * possible object is
473: * {@link FetchSize }
474: *
475: */
476: public FetchSize getFetchSize() {
477: return fetchSize;
478: }
479:
480: /**
481: * Sets the value of the fetchSize property.
482: *
483: * @param value
484: * allowed object is
485: * {@link FetchSize }
486: *
487: */
488: public void setFetchSize(FetchSize value) {
489: this .fetchSize = value;
490: }
491:
492: /**
493: * Gets the value of the unknownPk property.
494: *
495: * @return
496: * possible object is
497: * {@link UnknownPk }
498: *
499: */
500: public UnknownPk getUnknownPk() {
501: return unknownPk;
502: }
503:
504: /**
505: * Sets the value of the unknownPk property.
506: *
507: * @param value
508: * allowed object is
509: * {@link UnknownPk }
510: *
511: */
512: public void setUnknownPk(UnknownPk value) {
513: this .unknownPk = value;
514: }
515:
516: /**
517: * Gets the value of the entityCommand property.
518: *
519: * @return
520: * possible object is
521: * {@link EntityCommand }
522: *
523: */
524: public EntityCommand getEntityCommand() {
525: return entityCommand;
526: }
527:
528: /**
529: * Sets the value of the entityCommand property.
530: *
531: * @param value
532: * allowed object is
533: * {@link EntityCommand }
534: *
535: */
536: public void setEntityCommand(EntityCommand value) {
537: this .entityCommand = value;
538: }
539:
540: /**
541: * Gets the value of the qlCompiler property.
542: *
543: * @return
544: * possible object is
545: * {@link QlCompiler }
546: *
547: */
548: public QlCompiler getQlCompiler() {
549: return qlCompiler;
550: }
551:
552: /**
553: * Sets the value of the qlCompiler property.
554: *
555: * @param value
556: * allowed object is
557: * {@link QlCompiler }
558: *
559: */
560: public void setQlCompiler(QlCompiler value) {
561: this .qlCompiler = value;
562: }
563:
564: /**
565: * Gets the value of the throwRuntimeExceptions property.
566: *
567: * @return
568: * possible object is
569: * {@link ThrowRuntimeExceptions }
570: *
571: */
572: public ThrowRuntimeExceptions getThrowRuntimeExceptions() {
573: return throwRuntimeExceptions;
574: }
575:
576: /**
577: * Sets the value of the throwRuntimeExceptions property.
578: *
579: * @param value
580: * allowed object is
581: * {@link ThrowRuntimeExceptions }
582: *
583: */
584: public void setThrowRuntimeExceptions(ThrowRuntimeExceptions value) {
585: this.throwRuntimeExceptions = value;
586: }
587:
588: }
|