001: //
002: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.3-b01-fcs
003: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004: // Any modifications to this file will be lost upon recompilation of the source schema.
005: // Generated on: 2006.10.31 at 10:25:50 AM GMT+08:00
006: //
007:
008: package org.apache.cxf.jaxws.javaee;
009:
010: import java.util.ArrayList;
011: import java.util.List;
012: import javax.xml.bind.annotation.XmlAccessType;
013: import javax.xml.bind.annotation.XmlAccessorType;
014: import javax.xml.bind.annotation.XmlAttribute;
015: import javax.xml.bind.annotation.XmlElement;
016: import javax.xml.bind.annotation.XmlID;
017: import javax.xml.bind.annotation.XmlType;
018: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
019: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
020:
021: /**
022: *
023: *
024: *
025: * The persistence-context-ref element contains a declaration
026: * of Deployment Component's reference to a persistence context
027: * associated within a Deployment Component's
028: * environment. It consists of:
029: *
030: * - an optional description
031: * - the persistence context reference name
032: * - an optional persistence unit name. If not specified,
033: * the default persistence unit is assumed.
034: * - an optional specification as to whether
035: * the persistence context type is Transaction or
036: * Extended. If not specified, Transaction is assumed.
037: * - an optional list of persistence properties
038: * - optional injection targets
039: *
040: * Examples:
041: *
042: * <persistence-context-ref>
043: * <persistence-context-ref-name>myPersistenceContext
044: * </persistence-context-ref-name>
045: * </persistence-context-ref>
046: *
047: * <persistence-context-ref>
048: * <persistence-context-ref-name>myPersistenceContext
049: * </persistence-context-ref-name>
050: * <persistence-unit-name>PersistenceUnit1
051: * </persistence-unit-name>
052: * <persistence-context-type>Extended</persistence-context-type>
053: * </persistence-context-ref>
054: *
055: *
056: *
057: *
058: * <p>Java class for persistence-context-refType complex type.
059: *
060: * <p>The following schema fragment specifies the expected content contained within this class.
061: *
062: * <pre>
063: * <complexType name="persistence-context-refType">
064: * <complexContent>
065: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
066: * <sequence>
067: * <element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
068: * <element name="persistence-context-ref-name" type="{http://java.sun.com/xml/ns/javaee}jndi-nameType"/>
069: * <element name="persistence-unit-name" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/>
070: * <element name="persistence-context-type" type="{http://java.sun.com/xml/ns/javaee}persistence-context-typeType" minOccurs="0"/>
071: * <element name="persistence-property" type="{http://java.sun.com/xml/ns/javaee}propertyType" maxOccurs="unbounded" minOccurs="0"/>
072: * <group ref="{http://java.sun.com/xml/ns/javaee}resourceGroup"/>
073: * </sequence>
074: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
075: * </restriction>
076: * </complexContent>
077: * </complexType>
078: * </pre>
079: *
080: *
081: */
082: @XmlAccessorType(XmlAccessType.FIELD)
083: @XmlType(name="persistence-context-refType",propOrder={"description","persistenceContextRefName","persistenceUnitName","persistenceContextType","persistenceProperty","mappedName","injectionTarget"})
084: public class PersistenceContextRefType {
085:
086: protected List<DescriptionType> description;
087: @XmlElement(name="persistence-context-ref-name",required=true)
088: protected JndiNameType persistenceContextRefName;
089: @XmlElement(name="persistence-unit-name")
090: protected org.apache.cxf.jaxws.javaee.String persistenceUnitName;
091: @XmlElement(name="persistence-context-type")
092: protected PersistenceContextTypeType persistenceContextType;
093: @XmlElement(name="persistence-property")
094: protected List<PropertyType> persistenceProperty;
095: @XmlElement(name="mapped-name")
096: protected XsdStringType mappedName;
097: @XmlElement(name="injection-target")
098: protected List<InjectionTargetType> injectionTarget;
099: @XmlAttribute
100: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
101: @XmlID
102: protected java.lang.String id;
103:
104: /**
105: * Gets the value of the description property.
106: *
107: * <p>
108: * This accessor method returns a reference to the live list,
109: * not a snapshot. Therefore any modification you make to the
110: * returned list will be present inside the JAXB object.
111: * This is why there is not a <CODE>set</CODE> method for the description property.
112: *
113: * <p>
114: * For example, to add a new item, do as follows:
115: * <pre>
116: * getDescription().add(newItem);
117: * </pre>
118: *
119: *
120: * <p>
121: * Objects of the following type(s) are allowed in the list
122: * {@link DescriptionType }
123: *
124: *
125: */
126: public List<DescriptionType> getDescription() {
127: if (description == null) {
128: description = new ArrayList<DescriptionType>();
129: }
130: return this .description;
131: }
132:
133: /**
134: * Gets the value of the persistenceContextRefName property.
135: *
136: * @return
137: * possible object is
138: * {@link JndiNameType }
139: *
140: */
141: public JndiNameType getPersistenceContextRefName() {
142: return persistenceContextRefName;
143: }
144:
145: /**
146: * Sets the value of the persistenceContextRefName property.
147: *
148: * @param value
149: * allowed object is
150: * {@link JndiNameType }
151: *
152: */
153: public void setPersistenceContextRefName(JndiNameType value) {
154: this .persistenceContextRefName = value;
155: }
156:
157: /**
158: * Gets the value of the persistenceUnitName property.
159: *
160: * @return
161: * possible object is
162: * {@link org.apache.cxf.jaxws.javaee.String }
163: *
164: */
165: public org.apache.cxf.jaxws.javaee.String getPersistenceUnitName() {
166: return persistenceUnitName;
167: }
168:
169: /**
170: * Sets the value of the persistenceUnitName property.
171: *
172: * @param value
173: * allowed object is
174: * {@link org.apache.cxf.jaxws.javaee.String }
175: *
176: */
177: public void setPersistenceUnitName(
178: org.apache.cxf.jaxws.javaee.String value) {
179: this .persistenceUnitName = value;
180: }
181:
182: /**
183: * Gets the value of the persistenceContextType property.
184: *
185: * @return
186: * possible object is
187: * {@link PersistenceContextTypeType }
188: *
189: */
190: public PersistenceContextTypeType getPersistenceContextType() {
191: return persistenceContextType;
192: }
193:
194: /**
195: * Sets the value of the persistenceContextType property.
196: *
197: * @param value
198: * allowed object is
199: * {@link PersistenceContextTypeType }
200: *
201: */
202: public void setPersistenceContextType(
203: PersistenceContextTypeType value) {
204: this .persistenceContextType = value;
205: }
206:
207: /**
208: * Gets the value of the persistenceProperty 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 persistenceProperty property.
215: *
216: * <p>
217: * For example, to add a new item, do as follows:
218: * <pre>
219: * getPersistenceProperty().add(newItem);
220: * </pre>
221: *
222: *
223: * <p>
224: * Objects of the following type(s) are allowed in the list
225: * {@link PropertyType }
226: *
227: *
228: */
229: public List<PropertyType> getPersistenceProperty() {
230: if (persistenceProperty == null) {
231: persistenceProperty = new ArrayList<PropertyType>();
232: }
233: return this .persistenceProperty;
234: }
235:
236: /**
237: * Gets the value of the mappedName property.
238: *
239: * @return
240: * possible object is
241: * {@link XsdStringType }
242: *
243: */
244: public XsdStringType getMappedName() {
245: return mappedName;
246: }
247:
248: /**
249: * Sets the value of the mappedName property.
250: *
251: * @param value
252: * allowed object is
253: * {@link XsdStringType }
254: *
255: */
256: public void setMappedName(XsdStringType value) {
257: this .mappedName = value;
258: }
259:
260: /**
261: * Gets the value of the injectionTarget property.
262: *
263: * <p>
264: * This accessor method returns a reference to the live list,
265: * not a snapshot. Therefore any modification you make to the
266: * returned list will be present inside the JAXB object.
267: * This is why there is not a <CODE>set</CODE> method for the injectionTarget property.
268: *
269: * <p>
270: * For example, to add a new item, do as follows:
271: * <pre>
272: * getInjectionTarget().add(newItem);
273: * </pre>
274: *
275: *
276: * <p>
277: * Objects of the following type(s) are allowed in the list
278: * {@link InjectionTargetType }
279: *
280: *
281: */
282: public List<InjectionTargetType> getInjectionTarget() {
283: if (injectionTarget == null) {
284: injectionTarget = new ArrayList<InjectionTargetType>();
285: }
286: return this .injectionTarget;
287: }
288:
289: /**
290: * Gets the value of the id property.
291: *
292: * @return
293: * possible object is
294: * {@link java.lang.String }
295: *
296: */
297: public java.lang.String getId() {
298: return id;
299: }
300:
301: /**
302: * Sets the value of the id property.
303: *
304: * @param value
305: * allowed object is
306: * {@link java.lang.String }
307: *
308: */
309: public void setId(java.lang.String value) {
310: this.id = value;
311: }
312:
313: }
|