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-unit-ref element contains a declaration
026: * of Deployment Component's reference to a persistence unit
027: * associated within a Deployment Component's
028: * environment. It consists of:
029: *
030: * - an optional description
031: * - the persistence unit reference name
032: * - an optional persistence unit name. If not specified,
033: * the default persistence unit is assumed.
034: * - optional injection targets
035: *
036: * Examples:
037: *
038: * <persistence-unit-ref>
039: * <persistence-unit-ref-name>myPersistenceUnit
040: * </persistence-unit-ref-name>
041: * </persistence-unit-ref>
042: *
043: * <persistence-unit-ref>
044: * <persistence-unit-ref-name>myPersistenceUnit
045: * </persistence-unit-ref-name>
046: * <persistence-unit-name>PersistenceUnit1
047: * </persistence-unit-name>
048: * </persistence-unit-ref>
049: *
050: *
051: *
052: *
053: * <p>Java class for persistence-unit-refType complex type.
054: *
055: * <p>The following schema fragment specifies the expected content contained within this class.
056: *
057: * <pre>
058: * <complexType name="persistence-unit-refType">
059: * <complexContent>
060: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
061: * <sequence>
062: * <element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
063: * <element name="persistence-unit-ref-name" type="{http://java.sun.com/xml/ns/javaee}jndi-nameType"/>
064: * <element name="persistence-unit-name" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/>
065: * <group ref="{http://java.sun.com/xml/ns/javaee}resourceGroup"/>
066: * </sequence>
067: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
068: * </restriction>
069: * </complexContent>
070: * </complexType>
071: * </pre>
072: *
073: *
074: */
075: @XmlAccessorType(XmlAccessType.FIELD)
076: @XmlType(name="persistence-unit-refType",propOrder={"description","persistenceUnitRefName","persistenceUnitName","mappedName","injectionTarget"})
077: public class PersistenceUnitRefType {
078:
079: protected List<DescriptionType> description;
080: @XmlElement(name="persistence-unit-ref-name",required=true)
081: protected JndiNameType persistenceUnitRefName;
082: @XmlElement(name="persistence-unit-name")
083: protected org.apache.cxf.jaxws.javaee.String persistenceUnitName;
084: @XmlElement(name="mapped-name")
085: protected XsdStringType mappedName;
086: @XmlElement(name="injection-target")
087: protected List<InjectionTargetType> injectionTarget;
088: @XmlAttribute
089: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
090: @XmlID
091: protected java.lang.String id;
092:
093: /**
094: * Gets the value of the description property.
095: *
096: * <p>
097: * This accessor method returns a reference to the live list,
098: * not a snapshot. Therefore any modification you make to the
099: * returned list will be present inside the JAXB object.
100: * This is why there is not a <CODE>set</CODE> method for the description property.
101: *
102: * <p>
103: * For example, to add a new item, do as follows:
104: * <pre>
105: * getDescription().add(newItem);
106: * </pre>
107: *
108: *
109: * <p>
110: * Objects of the following type(s) are allowed in the list
111: * {@link DescriptionType }
112: *
113: *
114: */
115: public List<DescriptionType> getDescription() {
116: if (description == null) {
117: description = new ArrayList<DescriptionType>();
118: }
119: return this .description;
120: }
121:
122: /**
123: * Gets the value of the persistenceUnitRefName property.
124: *
125: * @return
126: * possible object is
127: * {@link JndiNameType }
128: *
129: */
130: public JndiNameType getPersistenceUnitRefName() {
131: return persistenceUnitRefName;
132: }
133:
134: /**
135: * Sets the value of the persistenceUnitRefName property.
136: *
137: * @param value
138: * allowed object is
139: * {@link JndiNameType }
140: *
141: */
142: public void setPersistenceUnitRefName(JndiNameType value) {
143: this .persistenceUnitRefName = value;
144: }
145:
146: /**
147: * Gets the value of the persistenceUnitName property.
148: *
149: * @return
150: * possible object is
151: * {@link org.apache.cxf.jaxws.javaee.String }
152: *
153: */
154: public org.apache.cxf.jaxws.javaee.String getPersistenceUnitName() {
155: return persistenceUnitName;
156: }
157:
158: /**
159: * Sets the value of the persistenceUnitName property.
160: *
161: * @param value
162: * allowed object is
163: * {@link org.apache.cxf.jaxws.javaee.String }
164: *
165: */
166: public void setPersistenceUnitName(
167: org.apache.cxf.jaxws.javaee.String value) {
168: this .persistenceUnitName = value;
169: }
170:
171: /**
172: * Gets the value of the mappedName property.
173: *
174: * @return
175: * possible object is
176: * {@link XsdStringType }
177: *
178: */
179: public XsdStringType getMappedName() {
180: return mappedName;
181: }
182:
183: /**
184: * Sets the value of the mappedName property.
185: *
186: * @param value
187: * allowed object is
188: * {@link XsdStringType }
189: *
190: */
191: public void setMappedName(XsdStringType value) {
192: this .mappedName = value;
193: }
194:
195: /**
196: * Gets the value of the injectionTarget property.
197: *
198: * <p>
199: * This accessor method returns a reference to the live list,
200: * not a snapshot. Therefore any modification you make to the
201: * returned list will be present inside the JAXB object.
202: * This is why there is not a <CODE>set</CODE> method for the injectionTarget property.
203: *
204: * <p>
205: * For example, to add a new item, do as follows:
206: * <pre>
207: * getInjectionTarget().add(newItem);
208: * </pre>
209: *
210: *
211: * <p>
212: * Objects of the following type(s) are allowed in the list
213: * {@link InjectionTargetType }
214: *
215: *
216: */
217: public List<InjectionTargetType> getInjectionTarget() {
218: if (injectionTarget == null) {
219: injectionTarget = new ArrayList<InjectionTargetType>();
220: }
221: return this .injectionTarget;
222: }
223:
224: /**
225: * Gets the value of the id property.
226: *
227: * @return
228: * possible object is
229: * {@link java.lang.String }
230: *
231: */
232: public java.lang.String getId() {
233: return id;
234: }
235:
236: /**
237: * Sets the value of the id property.
238: *
239: * @param value
240: * allowed object is
241: * {@link java.lang.String }
242: *
243: */
244: public void setId(java.lang.String value) {
245: this.id = value;
246: }
247:
248: }
|