Dali Provisional API
Release 3.2

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

All Superinterfaces:
JpaResourceDefinition, JptResourceTypeReference, MappingFileDefinition

public interface OrmXmlDefinition
extends MappingFileDefinition

orm.xml definition

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.

Since:
2.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeIsKindOf, JptResourceTypeReference.ResourceTypeTransformer
 
Field Summary
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
TRANSFORMER
 
Method Summary
 OrmAttributeMappingDefinition getAttributeMappingDefinition(String mappingKey)
          Return an attribute mapping definiton for the specified mapping key.
 OrmXmlContextModelFactory getContextModelFactory()
          Return the factory for building XML context models.
 OrmManagedTypeDefinition getManagedTypeDefinition(Class<? extends org.eclipse.jpt.jpa.core.resource.orm.XmlManagedType> resourceType)
          Return the OrmManagedTypeDefinition corresponding to the given resource type
 EFactory getResourceModelFactory()
          Return the factory for building XML resource nodes.
 OrmTypeMappingDefinition getTypeMappingDefinition(String mappingKey)
          Return a type mapping definiton for the specified mapping key.
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
getResourceType
 

Method Detail

getResourceModelFactory

EFactory getResourceModelFactory()
Return the factory for building XML resource nodes.


getContextModelFactory

OrmXmlContextModelFactory getContextModelFactory()
Return the factory for building XML context models.


getManagedTypeDefinition

OrmManagedTypeDefinition getManagedTypeDefinition(Class<? extends org.eclipse.jpt.jpa.core.resource.orm.XmlManagedType> resourceType)
Return the OrmManagedTypeDefinition corresponding to the given resource type

Throws:
IllegalArgumentException - if the resource type is not supported
See Also:
OrmManagedTypeDefinition.getResourceType()

getTypeMappingDefinition

OrmTypeMappingDefinition getTypeMappingDefinition(String mappingKey)
Return a type mapping definiton for the specified mapping key.

Throws:
IllegalArgumentException - if the mapping key is not supported

getAttributeMappingDefinition

OrmAttributeMappingDefinition getAttributeMappingDefinition(String mappingKey)
Return an attribute mapping definiton for the specified mapping key. Never return null.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.