org.eclipse.jpt.jpa.core.context.orm
Interface OrmManagedType
- All Superinterfaces:
- DeleteTypeRefactoringParticipant, IAdaptable, JpaContextModel, JpaModel, JptResourceTypeReference, ManagedType, Model, TypeRefactoringParticipant
- All Known Subinterfaces:
- EclipseLinkOrmPersistentType, OrmPersistentType
public interface OrmManagedType
- extends ManagedType, DeleteTypeRefactoringParticipant, TypeRefactoringParticipant
Context managed type.
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:
- 3.3
|
Method Summary |
void |
addXmlManagedTypeTo(org.eclipse.jpt.jpa.core.resource.orm.XmlEntityMappings entityMappings)
Add the managed type's XML managed type to the appropriate list
in the specified XML entity mappings. |
void |
dispose()
|
String |
getClass_()
Member class names will be qualified with a '$'
between each declaring class name and member class name. |
String |
getDefaultPackage()
Return the managed type's default package, as set in its entity
mappings. |
JavaManagedType |
getJavaManagedType()
Return the Java managed type that is referred to by the
orm.xml managed type. |
EntityMappings |
getParent()
Return the JPA node's parent. |
org.eclipse.jpt.jpa.core.resource.orm.XmlManagedType |
getXmlManagedType()
|
int |
getXmlSequence()
Managed types are in a sequence in the orm schema. |
void |
removeXmlManagedTypeFrom(org.eclipse.jpt.jpa.core.resource.orm.XmlEntityMappings entityMappings)
Remove the managed type's XML managed type from the appropriate list
in the specified XML entity mappings. |
void |
setClass(String class_)
|
CLASS_PROPERTY
static final String CLASS_PROPERTY
- See Also:
- Constant Field Values
JAVA_MANAGED_TYPE_PROPERTY
static final String JAVA_MANAGED_TYPE_PROPERTY
- See Also:
- Constant Field Values
getClass_
String getClass_()
- Member class names will be qualified with a
'$'
between each declaring class name and member class name.
NB: This may be an unqualified name to be prefixed by the
entity mappings's 'package' value.
- See Also:
EntityMappings.getPackage()
setClass
void setClass(String class_)
- See Also:
getClass_()
getParent
EntityMappings getParent()
- Description copied from interface:
JpaModel
- Return the JPA node's parent. The JPA project will not have a parent.
- Specified by:
getParent in interface JpaContextModel- Specified by:
getParent in interface JpaModel
getXmlManagedType
org.eclipse.jpt.jpa.core.resource.orm.XmlManagedType getXmlManagedType()
getXmlSequence
int getXmlSequence()
- Managed types are in a sequence in the orm schema. We must keep
the list of managed in the appropriate order so the wtp xml
translators will write them to the xml in that order and they
will adhere to the schema.
Each concrete implementation must implement this
method and return an int that matches its order in the schema.
addXmlManagedTypeTo
void addXmlManagedTypeTo(org.eclipse.jpt.jpa.core.resource.orm.XmlEntityMappings entityMappings)
- Add the managed type's XML managed type to the appropriate list
in the specified XML entity mappings.
removeXmlManagedTypeFrom
void removeXmlManagedTypeFrom(org.eclipse.jpt.jpa.core.resource.orm.XmlEntityMappings entityMappings)
- Remove the managed type's XML managed type from the appropriate list
in the specified XML entity mappings.
getJavaManagedType
JavaManagedType getJavaManagedType()
- Return the Java managed type that is referred to by the
orm.xml managed type.
Return null if it is missing.
getDefaultPackage
String getDefaultPackage()
- Return the managed type's default package, as set in its entity
mappings.
dispose
void dispose()
Copyright (c) 2012 Oracle. All rights reserved.