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 java.util.ArrayList;
020: import java.util.List;
021: import javax.xml.bind.annotation.XmlAccessType;
022: import javax.xml.bind.annotation.XmlAccessorType;
023: import javax.xml.bind.annotation.XmlAttribute;
024: import javax.xml.bind.annotation.XmlElement;
025: import javax.xml.bind.annotation.XmlID;
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: * <p>Java class for weblogic-rdbms-bean complex type.
032: *
033: * <p>The following schema fragment specifies the expected content contained within this class.
034: *
035: * <pre>
036: * <complexType name="weblogic-rdbms-bean">
037: * <complexContent>
038: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
039: * <sequence>
040: * <element name="ejb-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
041: * <element name="data-source-jndi-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
042: * <element name="unknown-primary-key-field" type="{http://www.bea.com/ns/weblogic/90}unknown-primary-key-field" minOccurs="0"/>
043: * <element name="table-map" type="{http://www.bea.com/ns/weblogic/90}table-map" maxOccurs="unbounded"/>
044: * <element name="field-group" type="{http://www.bea.com/ns/weblogic/90}field-group" maxOccurs="unbounded" minOccurs="0"/>
045: * <element name="relationship-caching" type="{http://www.bea.com/ns/weblogic/90}relationship-caching" maxOccurs="unbounded" minOccurs="0"/>
046: * <element name="sql-shape" type="{http://www.bea.com/ns/weblogic/90}sql-shape" maxOccurs="unbounded" minOccurs="0"/>
047: * <element name="weblogic-query" type="{http://www.bea.com/ns/weblogic/90}weblogic-query" maxOccurs="unbounded" minOccurs="0"/>
048: * <element name="delay-database-insert-until" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
049: * <element name="use-select-for-update" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
050: * <element name="lock-order" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
051: * <element name="instance-lock-order" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
052: * <element name="automatic-key-generation" type="{http://www.bea.com/ns/weblogic/90}automatic-key-generation" minOccurs="0"/>
053: * <element name="check-exists-on-method" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
054: * <element name="cluster-invalidation-disabled" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
055: * </sequence>
056: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
057: * </restriction>
058: * </complexContent>
059: * </complexType>
060: * </pre>
061: *
062: *
063: */
064: @XmlAccessorType(XmlAccessType.FIELD)
065: @XmlType(name="weblogic-rdbms-bean",propOrder={"ejbName","dataSourceJndiName","unknownPrimaryKeyField","tableMap","fieldGroup","relationshipCaching","sqlShape","weblogicQuery","delayDatabaseInsertUntil","useSelectForUpdate","lockOrder","instanceLockOrder","automaticKeyGeneration","checkExistsOnMethod","clusterInvalidationDisabled"})
066: public class WeblogicRdbmsBean {
067:
068: @XmlElement(name="ejb-name",required=true)
069: protected String ejbName;
070: @XmlElement(name="data-source-jndi-name",required=true)
071: protected String dataSourceJndiName;
072: @XmlElement(name="unknown-primary-key-field")
073: protected UnknownPrimaryKeyField unknownPrimaryKeyField;
074: @XmlElement(name="table-map",required=true)
075: protected List<TableMap> tableMap;
076: @XmlElement(name="field-group")
077: protected List<FieldGroup> fieldGroup;
078: @XmlElement(name="relationship-caching")
079: protected List<RelationshipCaching> relationshipCaching;
080: @XmlElement(name="sql-shape")
081: protected List<SqlShape> sqlShape;
082: @XmlElement(name="weblogic-query")
083: protected List<WeblogicQuery> weblogicQuery;
084: @XmlElement(name="delay-database-insert-until")
085: protected String delayDatabaseInsertUntil;
086: @XmlElement(name="use-select-for-update")
087: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
088: protected Boolean useSelectForUpdate;
089: @XmlElement(name="lock-order")
090: protected BigInteger lockOrder;
091: @XmlElement(name="instance-lock-order")
092: protected String instanceLockOrder;
093: @XmlElement(name="automatic-key-generation")
094: protected AutomaticKeyGeneration automaticKeyGeneration;
095: @XmlElement(name="check-exists-on-method")
096: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
097: protected Boolean checkExistsOnMethod;
098: @XmlElement(name="cluster-invalidation-disabled")
099: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
100: protected Boolean clusterInvalidationDisabled;
101: @XmlAttribute
102: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
103: @XmlID
104: protected String id;
105:
106: /**
107: * Gets the value of the ejbName property.
108: *
109: * @return
110: * possible object is
111: * {@link String }
112: *
113: */
114: public String getEjbName() {
115: return ejbName;
116: }
117:
118: /**
119: * Sets the value of the ejbName property.
120: *
121: * @param value
122: * allowed object is
123: * {@link String }
124: *
125: */
126: public void setEjbName(String value) {
127: this .ejbName = value;
128: }
129:
130: /**
131: * Gets the value of the dataSourceJndiName property.
132: *
133: * @return
134: * possible object is
135: * {@link String }
136: *
137: */
138: public String getDataSourceJndiName() {
139: return dataSourceJndiName;
140: }
141:
142: /**
143: * Sets the value of the dataSourceJndiName property.
144: *
145: * @param value
146: * allowed object is
147: * {@link String }
148: *
149: */
150: public void setDataSourceJndiName(String value) {
151: this .dataSourceJndiName = value;
152: }
153:
154: /**
155: * Gets the value of the unknownPrimaryKeyField property.
156: *
157: * @return
158: * possible object is
159: * {@link UnknownPrimaryKeyField }
160: *
161: */
162: public UnknownPrimaryKeyField getUnknownPrimaryKeyField() {
163: return unknownPrimaryKeyField;
164: }
165:
166: /**
167: * Sets the value of the unknownPrimaryKeyField property.
168: *
169: * @param value
170: * allowed object is
171: * {@link UnknownPrimaryKeyField }
172: *
173: */
174: public void setUnknownPrimaryKeyField(UnknownPrimaryKeyField value) {
175: this .unknownPrimaryKeyField = value;
176: }
177:
178: /**
179: * Gets the value of the tableMap property.
180: *
181: * <p>
182: * This accessor method returns a reference to the live list,
183: * not a snapshot. Therefore any modification you make to the
184: * returned list will be present inside the JAXB object.
185: * This is why there is not a <CODE>set</CODE> method for the tableMap property.
186: *
187: * <p>
188: * For example, to add a new item, do as follows:
189: * <pre>
190: * getTableMap().add(newItem);
191: * </pre>
192: *
193: *
194: * <p>
195: * Objects of the following type(s) are allowed in the list
196: * {@link TableMap }
197: *
198: *
199: */
200: public List<TableMap> getTableMap() {
201: if (tableMap == null) {
202: tableMap = new ArrayList<TableMap>();
203: }
204: return this .tableMap;
205: }
206:
207: /**
208: * Gets the value of the fieldGroup property.
209: *
210: * <p>
211: * This accessor method returns a reference to the live list,
212: * not a snapshot. Therefore any modification you make to the
213: * returned list will be present inside the JAXB object.
214: * This is why there is not a <CODE>set</CODE> method for the fieldGroup property.
215: *
216: * <p>
217: * For example, to add a new item, do as follows:
218: * <pre>
219: * getFieldGroup().add(newItem);
220: * </pre>
221: *
222: *
223: * <p>
224: * Objects of the following type(s) are allowed in the list
225: * {@link FieldGroup }
226: *
227: *
228: */
229: public List<FieldGroup> getFieldGroup() {
230: if (fieldGroup == null) {
231: fieldGroup = new ArrayList<FieldGroup>();
232: }
233: return this .fieldGroup;
234: }
235:
236: /**
237: * Gets the value of the relationshipCaching property.
238: *
239: * <p>
240: * This accessor method returns a reference to the live list,
241: * not a snapshot. Therefore any modification you make to the
242: * returned list will be present inside the JAXB object.
243: * This is why there is not a <CODE>set</CODE> method for the relationshipCaching property.
244: *
245: * <p>
246: * For example, to add a new item, do as follows:
247: * <pre>
248: * getRelationshipCaching().add(newItem);
249: * </pre>
250: *
251: *
252: * <p>
253: * Objects of the following type(s) are allowed in the list
254: * {@link RelationshipCaching }
255: *
256: *
257: */
258: public List<RelationshipCaching> getRelationshipCaching() {
259: if (relationshipCaching == null) {
260: relationshipCaching = new ArrayList<RelationshipCaching>();
261: }
262: return this .relationshipCaching;
263: }
264:
265: /**
266: * Gets the value of the sqlShape property.
267: *
268: * <p>
269: * This accessor method returns a reference to the live list,
270: * not a snapshot. Therefore any modification you make to the
271: * returned list will be present inside the JAXB object.
272: * This is why there is not a <CODE>set</CODE> method for the sqlShape property.
273: *
274: * <p>
275: * For example, to add a new item, do as follows:
276: * <pre>
277: * getSqlShape().add(newItem);
278: * </pre>
279: *
280: *
281: * <p>
282: * Objects of the following type(s) are allowed in the list
283: * {@link SqlShape }
284: *
285: *
286: */
287: public List<SqlShape> getSqlShape() {
288: if (sqlShape == null) {
289: sqlShape = new ArrayList<SqlShape>();
290: }
291: return this .sqlShape;
292: }
293:
294: /**
295: * Gets the value of the weblogicQuery property.
296: *
297: * <p>
298: * This accessor method returns a reference to the live list,
299: * not a snapshot. Therefore any modification you make to the
300: * returned list will be present inside the JAXB object.
301: * This is why there is not a <CODE>set</CODE> method for the weblogicQuery property.
302: *
303: * <p>
304: * For example, to add a new item, do as follows:
305: * <pre>
306: * getWeblogicQuery().add(newItem);
307: * </pre>
308: *
309: *
310: * <p>
311: * Objects of the following type(s) are allowed in the list
312: * {@link WeblogicQuery }
313: *
314: *
315: */
316: public List<WeblogicQuery> getWeblogicQuery() {
317: if (weblogicQuery == null) {
318: weblogicQuery = new ArrayList<WeblogicQuery>();
319: }
320: return this .weblogicQuery;
321: }
322:
323: /**
324: * Gets the value of the delayDatabaseInsertUntil property.
325: *
326: * @return
327: * possible object is
328: * {@link String }
329: *
330: */
331: public String getDelayDatabaseInsertUntil() {
332: return delayDatabaseInsertUntil;
333: }
334:
335: /**
336: * Sets the value of the delayDatabaseInsertUntil property.
337: *
338: * @param value
339: * allowed object is
340: * {@link String }
341: *
342: */
343: public void setDelayDatabaseInsertUntil(String value) {
344: this .delayDatabaseInsertUntil = value;
345: }
346:
347: /**
348: * Gets the value of the useSelectForUpdate property.
349: *
350: * @return
351: * possible object is
352: * {@link Boolean }
353: *
354: */
355: public Boolean getUseSelectForUpdate() {
356: return useSelectForUpdate;
357: }
358:
359: /**
360: * Sets the value of the useSelectForUpdate property.
361: *
362: * @param value
363: * allowed object is
364: * {@link Boolean }
365: *
366: */
367: public void setUseSelectForUpdate(Boolean value) {
368: this .useSelectForUpdate = value;
369: }
370:
371: /**
372: * Gets the value of the lockOrder property.
373: *
374: * @return
375: * possible object is
376: * {@link BigInteger }
377: *
378: */
379: public BigInteger getLockOrder() {
380: return lockOrder;
381: }
382:
383: /**
384: * Sets the value of the lockOrder property.
385: *
386: * @param value
387: * allowed object is
388: * {@link BigInteger }
389: *
390: */
391: public void setLockOrder(BigInteger value) {
392: this .lockOrder = value;
393: }
394:
395: /**
396: * Gets the value of the instanceLockOrder property.
397: *
398: * @return
399: * possible object is
400: * {@link String }
401: *
402: */
403: public String getInstanceLockOrder() {
404: return instanceLockOrder;
405: }
406:
407: /**
408: * Sets the value of the instanceLockOrder property.
409: *
410: * @param value
411: * allowed object is
412: * {@link String }
413: *
414: */
415: public void setInstanceLockOrder(String value) {
416: this .instanceLockOrder = value;
417: }
418:
419: /**
420: * Gets the value of the automaticKeyGeneration property.
421: *
422: * @return
423: * possible object is
424: * {@link AutomaticKeyGeneration }
425: *
426: */
427: public AutomaticKeyGeneration getAutomaticKeyGeneration() {
428: return automaticKeyGeneration;
429: }
430:
431: /**
432: * Sets the value of the automaticKeyGeneration property.
433: *
434: * @param value
435: * allowed object is
436: * {@link AutomaticKeyGeneration }
437: *
438: */
439: public void setAutomaticKeyGeneration(AutomaticKeyGeneration value) {
440: this .automaticKeyGeneration = value;
441: }
442:
443: /**
444: * Gets the value of the checkExistsOnMethod property.
445: *
446: * @return
447: * possible object is
448: * {@link Boolean }
449: *
450: */
451: public Boolean getCheckExistsOnMethod() {
452: return checkExistsOnMethod;
453: }
454:
455: /**
456: * Sets the value of the checkExistsOnMethod property.
457: *
458: * @param value
459: * allowed object is
460: * {@link Boolean }
461: *
462: */
463: public void setCheckExistsOnMethod(Boolean value) {
464: this .checkExistsOnMethod = value;
465: }
466:
467: /**
468: * Gets the value of the clusterInvalidationDisabled property.
469: *
470: * @return
471: * possible object is
472: * {@link Boolean }
473: *
474: */
475: public Boolean getClusterInvalidationDisabled() {
476: return clusterInvalidationDisabled;
477: }
478:
479: /**
480: * Sets the value of the clusterInvalidationDisabled property.
481: *
482: * @param value
483: * allowed object is
484: * {@link Boolean }
485: *
486: */
487: public void setClusterInvalidationDisabled(Boolean value) {
488: this .clusterInvalidationDisabled = value;
489: }
490:
491: /**
492: * Gets the value of the id property.
493: *
494: * @return
495: * possible object is
496: * {@link String }
497: *
498: */
499: public String getId() {
500: return id;
501: }
502:
503: /**
504: * Sets the value of the id property.
505: *
506: * @param value
507: * allowed object is
508: * {@link String }
509: *
510: */
511: public void setId(String value) {
512: this.id = value;
513: }
514:
515: }
|