1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one or more 3 * contributor license agreements. See the NOTICE file distributed with 4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 7 * the License. You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18 package org.apache.geronimo.jee.persistence; 19 20 import javax.xml.bind.annotation.XmlRegistry; 21 22 23 /** 24 * This object contains factory methods for each 25 * Java content interface and Java element interface 26 * generated in the <strong>org.apache.geronimo.jee.persistence</strong> package. 27 * 28 * <p>An ObjectFactory allows you to programatically 29 * construct new instances of the Java representation 30 * for XML content. The Java representation of XML 31 * content can consist of schema derived interfaces 32 * and classes representing the binding of schema 33 * type definitions, element declarations and model 34 * groups. Factory methods for each of these are 35 * provided in this class. 36 * 37 * @version $Rev: 642503 $ $Date: 2008-03-29 12:35:01 +0800 (Sat, 29 Mar 2008) $ 38 */ 39 @XmlRegistry 40 public class ObjectFactory { 41 42 43 /** 44 * Create a new ObjectFactory that can be used to create new instances of schema 45 * derived classes for package: org.apache.geronimo.jee.persistence 46 * 47 */ 48 public ObjectFactory() { 49 } 50 51 /** 52 * Create an instance of {@link Persistence.PersistenceUnit.Properties.Property } 53 * 54 */ 55 public Persistence.PersistenceUnit.Properties.Property createPersistencePersistenceUnitPropertiesProperty() { 56 return new Persistence.PersistenceUnit.Properties.Property(); 57 } 58 59 /** 60 * Create an instance of {@link Persistence.PersistenceUnit } 61 * 62 */ 63 public Persistence.PersistenceUnit createPersistencePersistenceUnit() { 64 return new Persistence.PersistenceUnit(); 65 } 66 67 /** 68 * Create an instance of {@link Persistence.PersistenceUnit.Properties } 69 * 70 */ 71 public Persistence.PersistenceUnit.Properties createPersistencePersistenceUnitProperties() { 72 return new Persistence.PersistenceUnit.Properties(); 73 } 74 75 /** 76 * Create an instance of {@link Persistence } 77 * 78 */ 79 public Persistence createPersistence() { 80 return new Persistence(); 81 } 82 83 }