|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OrmAttributeMapping
orm.xml attribute 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 |
NAME_PROPERTY
|
| Fields inherited from interface org.eclipse.jpt.jpa.core.context.AttributeMapping |
|---|
DEFAULT_PROPERTY |
| Method Summary | |
|---|---|
void |
addXmlAttributeMappingTo(Attributes resourceAttributes)
|
boolean |
contains(int textOffset)
|
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 |
getNameTextRange()
|
OrmPersistentAttribute |
getParent()
Return the JPA node's parent. |
OrmPersistentAttribute |
getPersistentAttribute()
Return the mapping's attribute (typically its parent node in the containment hierarchy). |
TextRange |
getSelectionTextRange()
|
OrmTypeMapping |
getTypeMapping()
Return the mapping for the type that contains the mapping's attribute. |
XmlAttributeMapping |
getXmlAttributeMapping()
|
int |
getXmlSequence()
Attributes are a sequence in the orm.xml schema. |
void |
initializeFromOrmAttributeMapping(OrmAttributeMapping oldMapping)
|
void |
initializeFromOrmBasicMapping(OrmBasicMapping oldMapping)
|
void |
initializeFromOrmEmbeddedIdMapping(OrmEmbeddedIdMapping oldMapping)
|
void |
initializeFromOrmEmbeddedMapping(OrmEmbeddedMapping oldMapping)
|
void |
initializeFromOrmIdMapping(OrmIdMapping oldMapping)
|
void |
initializeFromOrmManyToManyMapping(OrmManyToManyMapping oldMapping)
|
void |
initializeFromOrmManyToOneMapping(OrmManyToOneMapping oldMapping)
|
void |
initializeFromOrmOneToManyMapping(OrmOneToManyMapping oldMapping)
|
void |
initializeFromOrmOneToOneMapping(OrmOneToOneMapping oldMapping)
|
void |
initializeFromOrmTransientMapping(OrmTransientMapping oldMapping)
|
void |
initializeFromOrmVersionMapping(OrmVersionMapping oldMapping)
|
void |
initializeOn(OrmAttributeMapping newMapping)
|
void |
removeXmlAttributeMappingFrom(Attributes resourceAttributes)
|
void |
setName(java.lang.String name)
|
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.AttributeMapping |
|---|
allMappingNames, allOverridableAssociationMappingNames, allOverridableAttributeMappingNames, getKey, getName, getPrimaryKeyColumnName, isDefault, isOverridableAssociationMapping, isOverridableAttributeMapping, isOwnedBy, isRelationshipOwner, resolveAttributeMapping, resolveOverriddenColumn, resolveOverriddenRelationship, validatesAgainstDatabase |
| 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, 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 NAME_PROPERTY
| Method Detail |
|---|
OrmPersistentAttribute getParent()
JpaNode
getParent in interface JpaNodeOrmPersistentAttribute getPersistentAttribute()
AttributeMapping
getPersistentAttribute in interface AttributeMappingXmlAttributeMapping getXmlAttributeMapping()
OrmTypeMapping getTypeMapping()
AttributeMapping
getTypeMapping in interface AttributeMappingvoid setName(java.lang.String name)
int getXmlSequence()
orm.xml schema. We must keep
the list of attributes in the appropriate order so the WTP XML
translators will write them to the XML document in that order and they
will adhere to the schema.
Each implementation must implement this method and return a number that matches its order in the schema.
void addXmlAttributeMappingTo(Attributes resourceAttributes)
void removeXmlAttributeMappingFrom(Attributes resourceAttributes)
boolean contains(int textOffset)
TextRange getSelectionTextRange()
TextRange getNameTextRange()
void initializeOn(OrmAttributeMapping newMapping)
void initializeFromOrmAttributeMapping(OrmAttributeMapping oldMapping)
void initializeFromOrmBasicMapping(OrmBasicMapping oldMapping)
void initializeFromOrmIdMapping(OrmIdMapping oldMapping)
void initializeFromOrmTransientMapping(OrmTransientMapping oldMapping)
void initializeFromOrmEmbeddedMapping(OrmEmbeddedMapping oldMapping)
void initializeFromOrmEmbeddedIdMapping(OrmEmbeddedIdMapping oldMapping)
void initializeFromOrmVersionMapping(OrmVersionMapping oldMapping)
void initializeFromOrmOneToManyMapping(OrmOneToManyMapping oldMapping)
void initializeFromOrmManyToOneMapping(OrmManyToOneMapping oldMapping)
void initializeFromOrmOneToOneMapping(OrmOneToOneMapping oldMapping)
void initializeFromOrmManyToManyMapping(OrmManyToManyMapping oldMapping)
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||