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.jpa;
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: /**
024: *
025: *
026: * Metadata that applies to the persistence unit and not just to
027: * the mapping file in which it is contained.
028: *
029: * If the xml-mapping-metadata-complete element is specified then
030: * the complete set of mapping metadata for the persistence unit
031: * is contained in the XML mapping files for the persistence unit.
032: *
033: *
034: *
035: * <p>Java class for persistence-unit-metadata complex type.
036: *
037: * <p>The following schema fragment specifies the expected content contained within this class.
038: *
039: * <pre>
040: * <complexType name="persistence-unit-metadata">
041: * <complexContent>
042: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
043: * <sequence>
044: * <element name="xml-mapping-metadata-complete" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
045: * <element name="persistence-unit-defaults" type="{http://java.sun.com/xml/ns/persistence/orm}persistence-unit-defaults" minOccurs="0"/>
046: * </sequence>
047: * </restriction>
048: * </complexContent>
049: * </complexType>
050: * </pre>
051: *
052: *
053: */
054: @XmlAccessorType(XmlAccessType.FIELD)
055: @XmlType(name="persistence-unit-metadata",propOrder={"xmlMappingMetadataComplete","persistenceUnitDefaults"})
056: public class PersistenceUnitMetadata {
057:
058: @XmlElement(name="xml-mapping-metadata-complete")
059: protected EmptyType xmlMappingMetadataComplete;
060: @XmlElement(name="persistence-unit-defaults")
061: protected PersistenceUnitDefaults persistenceUnitDefaults;
062:
063: /**
064: * Gets the value of the xmlMappingMetadataComplete property.
065: *
066: * @return
067: * possible object is
068: * {@link boolean }
069: *
070: */
071: public boolean isXmlMappingMetadataComplete() {
072: return xmlMappingMetadataComplete != null;
073: }
074:
075: /**
076: * Sets the value of the xmlMappingMetadataComplete property.
077: *
078: * @param value
079: * allowed object is
080: * {@link boolean }
081: *
082: */
083: public void setXmlMappingMetadataComplete(boolean value) {
084: this .xmlMappingMetadataComplete = value ? new EmptyType()
085: : null;
086: }
087:
088: /**
089: * Gets the value of the persistenceUnitDefaults property.
090: *
091: * @return
092: * possible object is
093: * {@link PersistenceUnitDefaults }
094: *
095: */
096: public PersistenceUnitDefaults getPersistenceUnitDefaults() {
097: return persistenceUnitDefaults;
098: }
099:
100: /**
101: * Sets the value of the persistenceUnitDefaults property.
102: *
103: * @param value
104: * allowed object is
105: * {@link PersistenceUnitDefaults }
106: *
107: */
108: public void setPersistenceUnitDefaults(PersistenceUnitDefaults value) {
109: this.persistenceUnitDefaults = value;
110: }
111:
112: }
|