org.apache.aries.jpa.container.parsing
Interface ParsedPersistenceUnit


public interface ParsedPersistenceUnit

This interface provides access to the information defined by a persistence unit in a persistence descriptor. Implementations of this interface will be returned by calls to PersistenceDescriptorParser.


Field Summary
static String EXCLUDE_UNLISTED_CLASSES
          A Boolean indicating whether unlisted classes should be excluded
static String JAR_FILES
          A List of String jar file names
static String JPA_PROVIDER_VERSION
          This property is used in the JPA properties to indicate a provider version range
static String JTA_DATASOURCE
          The jta-datasource name
static String MANAGED_CLASSES
          A List of String managed class names
static String MAPPING_FILES
          A List of String mapping file names
static String NON_JTA_DATASOURCE
          The non-jta-datasource name
static String PROPERTIES
          A Properties object containing the properties from the persistence unit
static String PROVIDER_CLASSNAME
          The provider class name
static String SCHEMA_VERSION
          The version of the JPA schema being used
static String SHARED_CACHE_MODE
          The caching type of the persistence unit.
static String TRANSACTION_TYPE
          The Transaction type of the persistence unit
static String UNIT_NAME
          The name of the persistence unit
static String VALIDATION_MODE
          The validation mode of the persistence unit.
 
Method Summary
 Bundle getDefiningBundle()
          Return the persistence bundle that defines this persistence unit
 Map<String,Object> getPersistenceXmlMetadata()
          Returns a deep copy of the persistence metadata, modifications to the returned Map will not be reflected in future calls.
 

Field Detail

SCHEMA_VERSION

static final String SCHEMA_VERSION
The version of the JPA schema being used

See Also:
Constant Field Values

UNIT_NAME

static final String UNIT_NAME
The name of the persistence unit

See Also:
Constant Field Values

TRANSACTION_TYPE

static final String TRANSACTION_TYPE
The Transaction type of the persistence unit

See Also:
Constant Field Values

MAPPING_FILES

static final String MAPPING_FILES
A List of String mapping file names

See Also:
Constant Field Values

JAR_FILES

static final String JAR_FILES
A List of String jar file names

See Also:
Constant Field Values

MANAGED_CLASSES

static final String MANAGED_CLASSES
A List of String managed class names

See Also:
Constant Field Values

PROPERTIES

static final String PROPERTIES
A Properties object containing the properties from the persistence unit

See Also:
Constant Field Values

PROVIDER_CLASSNAME

static final String PROVIDER_CLASSNAME
The provider class name

See Also:
Constant Field Values

JTA_DATASOURCE

static final String JTA_DATASOURCE
The jta-datasource name

See Also:
Constant Field Values

NON_JTA_DATASOURCE

static final String NON_JTA_DATASOURCE
The non-jta-datasource name

See Also:
Constant Field Values

EXCLUDE_UNLISTED_CLASSES

static final String EXCLUDE_UNLISTED_CLASSES
A Boolean indicating whether unlisted classes should be excluded

See Also:
Constant Field Values

SHARED_CACHE_MODE

static final String SHARED_CACHE_MODE
The caching type of the persistence unit. This will only be available for JPA2 persistence units.

See Also:
Constant Field Values

VALIDATION_MODE

static final String VALIDATION_MODE
The validation mode of the persistence unit. This will only be available for JPA2 persistence units.

See Also:
Constant Field Values

JPA_PROVIDER_VERSION

static final String JPA_PROVIDER_VERSION
This property is used in the JPA properties to indicate a provider version range

See Also:
Constant Field Values
Method Detail

getDefiningBundle

Bundle getDefiningBundle()
Return the persistence bundle that defines this persistence unit

Returns:
the defining bundle

getPersistenceXmlMetadata

Map<String,Object> getPersistenceXmlMetadata()
Returns a deep copy of the persistence metadata, modifications to the returned Map will not be reflected in future calls.

Returns:
the metadata


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.