Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.core.context.orm
Interface OrmPersistenceUnitMetadata

All Superinterfaces:
IAdaptable, JpaContextModel, JpaModel, JptResourceTypeReference, MappingFilePersistenceUnitMetadata, Model
All Known Subinterfaces:
OrmPersistenceUnitMetadata2_0

public interface OrmPersistenceUnitMetadata
extends MappingFilePersistenceUnitMetadata

Context orm.xml persistence unit metadata. Context model corresponding to the XML resource model XmlPersistenceUnitMetadata, which corresponds to the persistence-unit-metadata element in the orm.xml file.

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.JpaModel
JpaModel.JpaVersionIsCompatibleWith
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeIsKindOf, JptResourceTypeReference.ResourceTypeTransformer
 
Field Summary
static String XML_MAPPING_METADATA_COMPLETE_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
TRANSFORMER
 
Method Summary
 EntityMappings getParent()
          Covariant override.
 OrmPersistenceUnitDefaults getPersistenceUnitDefaults()
          Return the persistence unit defaults held by the mapping file.
 org.eclipse.jpt.jpa.core.resource.orm.XmlEntityMappings getXmlEntityMappings()
          This can be null.
 org.eclipse.jpt.jpa.core.resource.orm.XmlPersistenceUnitMetadata getXmlPersistenceUnitMetadata()
           
 org.eclipse.jpt.jpa.core.resource.orm.XmlPersistenceUnitMetadata getXmlPersistenceUnitMetadataForUpdate()
           
 void removeXmlPersistenceUnitMetadataIfUnset()
           
 void setXmlMappingMetadataComplete(boolean xmlMappingMetadataComplete)
           
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.MappingFilePersistenceUnitMetadata
isXmlMappingMetadataComplete, resourceExists
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextModel
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaModel
getJpaPlatform, getJpaProject, getJpaProjectManager, getResource, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
getResourceType
 

Field Detail

XML_MAPPING_METADATA_COMPLETE_PROPERTY

static final String XML_MAPPING_METADATA_COMPLETE_PROPERTY
See Also:
Constant Field Values
Method Detail

getParent

EntityMappings getParent()
Covariant override.

Specified by:
getParent in interface JpaContextModel
Specified by:
getParent in interface JpaModel
Specified by:
getParent in interface MappingFilePersistenceUnitMetadata

getXmlEntityMappings

org.eclipse.jpt.jpa.core.resource.orm.XmlEntityMappings getXmlEntityMappings()
This can be null. The context metadata is always present, even if the XML metadata is missing.


setXmlMappingMetadataComplete

void setXmlMappingMetadataComplete(boolean xmlMappingMetadataComplete)

getPersistenceUnitDefaults

OrmPersistenceUnitDefaults getPersistenceUnitDefaults()
Description copied from interface: MappingFilePersistenceUnitMetadata
Return the persistence unit defaults held by the mapping file.

Specified by:
getPersistenceUnitDefaults in interface MappingFilePersistenceUnitMetadata

getXmlPersistenceUnitMetadata

org.eclipse.jpt.jpa.core.resource.orm.XmlPersistenceUnitMetadata getXmlPersistenceUnitMetadata()

getXmlPersistenceUnitMetadataForUpdate

org.eclipse.jpt.jpa.core.resource.orm.XmlPersistenceUnitMetadata getXmlPersistenceUnitMetadataForUpdate()

removeXmlPersistenceUnitMetadataIfUnset

void removeXmlPersistenceUnitMetadataIfUnset()

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.