org.datanucleus.metadata.PersistenceUnitMetaData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datanucleus-core Show documentation
Show all versions of datanucleus-core Show documentation
DataNucleus Core provides the primary components of a heterogenous Java persistence solution.
It supports persistence API's being layered on top of the core functionality.
/**********************************************************************
Copyright (c) 2006 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Contributors:
...
**********************************************************************/
package org.datanucleus.metadata;
import java.net.URI;
import java.net.URL;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
/**
* MetaData representation of a "persistence.xml" persistence unit.
* Corresponds to the JPA spec section 6.2.1
*/
public class PersistenceUnitMetaData extends MetaData
{
private static final long serialVersionUID = 6021663206256915679L;
/** Name of the persistence unit. */
String name = null;
/** Root of the persistence unit. This can be used if wanting to scan for classes, to find the root to scan from. */
URI rootURI = null;
/** Transaction type for this persistence unit. */
TransactionType transactionType = null;
/** Description of the persistence unit. */
String description = null;
/** Provider for the persistence unit. */
String provider = null;
/** Validation Mode for Bean Validator. */
String validationMode = null;
/** JTA data source for the persistence unit. */
String jtaDataSource = null;
/** Non-JTA data source for the persistence unit. */
String nonJtaDataSource = null;
/** Names of the classes specified. */
Set classNames = null;
/** Names/URLs of the JAR files specified. */
Set