01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: */package org.apache.openejb.jee.jpa.unit;
17:
18: import javax.xml.bind.annotation.XmlRegistry;
19:
20: /**
21: * This object contains factory methods for each
22: * Java content interface and Java element interface
23: * generated in the org.apache.openejb.persistence.xml package.
24: * <p>An ObjectFactory allows you to programatically
25: * construct new instances of the Java representation
26: * for XML content. The Java representation of XML
27: * content can consist of schema derived interfaces
28: * and classes representing the binding of schema
29: * type definitions, element declarations and model
30: * groups. Factory methods for each of these are
31: * provided in this class.
32: *
33: */
34: @XmlRegistry
35: public class ObjectFactory {
36:
37: /**
38: * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.openejb.persistence.xml
39: *
40: */
41: public ObjectFactory() {
42: }
43:
44: /**
45: * Create an instance of {@link Persistence }
46: *
47: */
48: public Persistence createPersistence() {
49: return new Persistence();
50: }
51:
52: /**
53: * Create an instance of {@link Properties }
54: *
55: */
56: public Properties createPersistencePersistenceUnitProperties() {
57: return new Properties();
58: }
59:
60: /**
61: * Create an instance of {@link PersistenceUnit }
62: *
63: */
64: public PersistenceUnit createPersistencePersistenceUnit() {
65: return new PersistenceUnit();
66: }
67:
68: /**
69: * Create an instance of {@link Property }
70: *
71: */
72: public Property createPersistencePersistenceUnitPropertiesProperty() {
73: return new Property();
74: }
75:
76: }
|