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.oejb2;
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.XmlType;
022:
023: @XmlAccessorType(XmlAccessType.FIELD)
024: @XmlType(name="persistence-unit-refType",namespace="http://geronimo.apache.org/xml/ns/naming-1.2",propOrder={"persistenceUnitRefName","persistenceUnitName","pattern"})
025: public class PersistenceUnitRefType extends AbstractNamingEntryType {
026:
027: @XmlElement(name="persistence-unit-ref-name",required=true)
028: protected String persistenceUnitRefName;
029: @XmlElement(name="persistence-unit-name")
030: protected String persistenceUnitName;
031: protected PatternType pattern;
032:
033: /**
034: * Gets the value of the entityManagerFactoryRefName property.
035: *
036: * @return
037: * possible object is
038: * {@link String }
039: *
040: */
041: public String getPersistenceUnitRefName() {
042: return persistenceUnitRefName;
043: }
044:
045: /**
046: * Sets the value of the entityManagerFactoryRefName property.
047: *
048: * @param value
049: * allowed object is
050: * {@link String }
051: *
052: */
053: public void setPersistenceUnitRefName(String value) {
054: this .persistenceUnitRefName = value;
055: }
056:
057: /**
058: * Gets the value of the persistenceUnitName property.
059: *
060: * @return
061: * possible object is
062: * {@link String }
063: *
064: */
065: public String getPersistenceUnitName() {
066: return persistenceUnitName;
067: }
068:
069: /**
070: * Sets the value of the persistenceUnitName property.
071: *
072: * @param value
073: * allowed object is
074: * {@link String }
075: *
076: */
077: public void setPersistenceUnitName(String value) {
078: this .persistenceUnitName = value;
079: }
080:
081: /**
082: * Gets the value of the pattern property.
083: *
084: * @return
085: * possible object is
086: * {@link PatternType }
087: *
088: */
089: public PatternType getPattern() {
090: return pattern;
091: }
092:
093: /**
094: * Sets the value of the pattern property.
095: *
096: * @param value
097: * allowed object is
098: * {@link PatternType }
099: *
100: */
101: public void setPattern(PatternType value) {
102: this.pattern = value;
103: }
104:
105: }
|