|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OrmTypeMapping
orm.xml type mapping
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.
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_PROPERTY
|
static java.lang.String |
OVERRIDE_METADATA_COMPLETE_PROPERTY
|
static java.lang.String |
SPECIFIED_METADATA_COMPLETE_PROPERTY
|
| Method Summary | |
|---|---|
void |
addXmlTypeMappingTo(XmlEntityMappings entityMappings)
Add the type mapping's XML type mapping to the appropriate list in the specified XML entity mappings. |
boolean |
containsOffset(int textOffset)
|
org.eclipse.text.edits.DeleteEdit |
createDeleteEdit()
Create a text DeleteEdit for deleting the type mapping element and any text that precedes it |
java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> |
createMoveTypeEdits(org.eclipse.jdt.core.IType originalType,
org.eclipse.jdt.core.IPackageFragment newPackage)
Create ReplaceEdits for moving any references to the originalType to the newPackage. |
java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> |
createRenamePackageEdits(org.eclipse.jdt.core.IPackageFragment originalPackage,
java.lang.String newName)
Create ReplaceEdits for renaming any references to the originalPackage to the newName. |
java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> |
createRenameTypeEdits(org.eclipse.jdt.core.IType originalType,
java.lang.String newName)
Create ReplaceEdits for renaming any references to the originalType to the newName. |
TextRange |
getAttributesTextRange()
|
java.lang.String |
getClass_()
NB: This may be a partial name to be prefixed by the entity mappings's package value. |
TextRange |
getClassTextRange()
|
JavaTypeMapping |
getJavaTypeMapping()
Return the Java type mapping corresponding to the orm.xml
type mapping. |
JavaTypeMapping |
getJavaTypeMappingForDefaults()
Check "metadata complete" before returning the Java type mapping. |
OrmPersistentType |
getPersistentType()
|
TextRange |
getSelectionTextRange()
|
java.lang.Boolean |
getSpecifiedMetadataComplete()
|
int |
getXmlSequence()
Type mappings are a sequence in the orm schema. |
XmlTypeMapping |
getXmlTypeMapping()
|
void |
initializeFrom(OrmTypeMapping oldMapping)
|
boolean |
isMetadataComplete()
|
boolean |
isOverrideMetadataComplete()
Override metadata complete is true if the type mapping's persistence unit is marked "XML mapping metadata complete". |
void |
removeXmlTypeMappingFrom(XmlEntityMappings entityMappings)
Remove the type mapping's XML type mapping from the appropriate list in the specified XML entity mappings. |
void |
setClass(java.lang.String class_)
|
void |
setSpecifiedMetadataComplete(java.lang.Boolean metadataComplete)
|
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.XmlContextNode |
|---|
getValidationTextRange, validate |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode |
|---|
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, synchronizeWithResourceModel, update |
| Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode |
|---|
getJpaProject, getParent, stateChanged |
| Methods inherited from interface org.eclipse.jpt.common.utility.model.Model |
|---|
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Methods inherited from interface org.eclipse.jpt.common.core.IResourcePart |
|---|
getResource |
| Field Detail |
|---|
static final java.lang.String CLASS_PROPERTY
static final java.lang.String SPECIFIED_METADATA_COMPLETE_PROPERTY
static final java.lang.String OVERRIDE_METADATA_COMPLETE_PROPERTY
| Method Detail |
|---|
java.lang.String getClass_()
EntityMappings.getPackage()void setClass(java.lang.String class_)
getClass_()boolean isMetadataComplete()
java.lang.Boolean getSpecifiedMetadataComplete()
void setSpecifiedMetadataComplete(java.lang.Boolean metadataComplete)
boolean isOverrideMetadataComplete()
int getXmlSequence()
Each concrete implementation must implement this method and return an int that matches its order in the schema.
void addXmlTypeMappingTo(XmlEntityMappings entityMappings)
void removeXmlTypeMappingFrom(XmlEntityMappings entityMappings)
XmlTypeMapping getXmlTypeMapping()
TextRange getSelectionTextRange()
TextRange getClassTextRange()
TextRange getAttributesTextRange()
boolean containsOffset(int textOffset)
JavaTypeMapping getJavaTypeMapping()
orm.xml
type mapping. Return null if there is no such Java type
mapping; i.e. it does not exist or it is not the same type of type
mapping (entity, mapped superclass, embeddable).
getJavaTypeMappingForDefaults()JavaTypeMapping getJavaTypeMappingForDefaults()
orm.xml defaults, if "metadata complete" is
true, return null.
getJavaTypeMapping()org.eclipse.text.edits.DeleteEdit createDeleteEdit()
java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> createRenameTypeEdits(org.eclipse.jdt.core.IType originalType,
java.lang.String newName)
java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> createMoveTypeEdits(org.eclipse.jdt.core.IType originalType,
org.eclipse.jdt.core.IPackageFragment newPackage)
java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> createRenamePackageEdits(org.eclipse.jdt.core.IPackageFragment originalPackage,
java.lang.String newName)
OrmPersistentType getPersistentType()
getPersistentType in interface TypeMappingvoid initializeFrom(OrmTypeMapping oldMapping)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||