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}strategy"/>
037: * <element ref="{http://jboss.org}page-size" minOccurs="0"/>
038: * <element ref="{http://jboss.org}eager-load-group" minOccurs="0"/>
039: * <element ref="{http://jboss.org}left-join" maxOccurs="unbounded" minOccurs="0"/>
040: * </sequence>
041: * </restriction>
042: * </complexContent>
043: * </complexType>
044: * </pre>
045: *
046: *
047: */
048: @XmlAccessorType(XmlAccessType.FIELD)
049: @XmlType(name="",propOrder={"strategy","pageSize","eagerLoadGroup","leftJoin"})
050: @XmlRootElement(name="read-ahead")
051: public class ReadAhead {
052:
053: @XmlElement(required=true)
054: protected Strategy strategy;
055: @XmlElement(name="page-size")
056: protected PageSize pageSize;
057: @XmlElement(name="eager-load-group")
058: protected EagerLoadGroup eagerLoadGroup;
059: @XmlElement(name="left-join")
060: protected List<LeftJoin> leftJoin;
061:
062: /**
063: * Gets the value of the strategy property.
064: *
065: * @return
066: * possible object is
067: * {@link Strategy }
068: *
069: */
070: public Strategy getStrategy() {
071: return strategy;
072: }
073:
074: /**
075: * Sets the value of the strategy property.
076: *
077: * @param value
078: * allowed object is
079: * {@link Strategy }
080: *
081: */
082: public void setStrategy(Strategy value) {
083: this .strategy = value;
084: }
085:
086: /**
087: * Gets the value of the pageSize property.
088: *
089: * @return
090: * possible object is
091: * {@link PageSize }
092: *
093: */
094: public PageSize getPageSize() {
095: return pageSize;
096: }
097:
098: /**
099: * Sets the value of the pageSize property.
100: *
101: * @param value
102: * allowed object is
103: * {@link PageSize }
104: *
105: */
106: public void setPageSize(PageSize value) {
107: this .pageSize = value;
108: }
109:
110: /**
111: * Gets the value of the eagerLoadGroup property.
112: *
113: * @return
114: * possible object is
115: * {@link EagerLoadGroup }
116: *
117: */
118: public EagerLoadGroup getEagerLoadGroup() {
119: return eagerLoadGroup;
120: }
121:
122: /**
123: * Sets the value of the eagerLoadGroup property.
124: *
125: * @param value
126: * allowed object is
127: * {@link EagerLoadGroup }
128: *
129: */
130: public void setEagerLoadGroup(EagerLoadGroup value) {
131: this .eagerLoadGroup = value;
132: }
133:
134: /**
135: * Gets the value of the leftJoin property.
136: *
137: * <p>
138: * This accessor method returns a reference to the live list,
139: * not a snapshot. Therefore any modification you make to the
140: * returned list will be present inside the JAXB object.
141: * This is why there is not a <CODE>set</CODE> method for the leftJoin property.
142: *
143: * <p>
144: * For example, to add a new item, do as follows:
145: * <pre>
146: * getLeftJoin().add(newItem);
147: * </pre>
148: *
149: *
150: * <p>
151: * Objects of the following type(s) are allowed in the list
152: * {@link LeftJoin }
153: *
154: *
155: */
156: public List<LeftJoin> getLeftJoin() {
157: if (leftJoin == null) {
158: leftJoin = new ArrayList<LeftJoin>();
159: }
160: return this.leftJoin;
161: }
162:
163: }
|