org.eclipse.jpt.core.context.orm
Interface OrmAttributeMapping

All Superinterfaces:
AttributeMapping, org.eclipse.core.runtime.IAdaptable, JpaContextNode, JpaNode, Model, OrmJpaContextNode
All Known Subinterfaces:
OrmBaseEmbeddedMapping, OrmBasicMapping, OrmEmbeddedIdMapping, OrmEmbeddedMapping, OrmIdMapping, OrmManyToManyMapping, OrmManyToOneMapping, OrmMultiRelationshipMapping, OrmOneToManyMapping, OrmOneToOneMapping, OrmRelationshipMapping, OrmSingleRelationshipMapping, OrmTransientMapping, OrmVersionMapping

public interface OrmAttributeMapping
extends AttributeMapping, OrmJpaContextNode

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 JAVA_PERSISTENT_ATTRIBUTE_PROPERTY
           
static java.lang.String NAME_PROPERTY
           
 
Method Summary
 XmlAttributeMapping addToResourceModel(AbstractXmlTypeMapping typeMapping)
           
 boolean contains(int textOffset)
           
 JavaPersistentAttribute getJavaPersistentAttribute()
           
 java.lang.String getName()
           
 OrmPersistentAttribute getPersistentAttribute()
           
 TextRange getSelectionTextRange()
           
 int getXmlSequence()
          Attributes are a sequence in the orm 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 removeFromResourceModel(AbstractXmlTypeMapping typeMapping)
           
 void setName(java.lang.String newName)
           
 
Methods inherited from interface org.eclipse.jpt.core.context.AttributeMapping
getKey, getPrimaryKeyColumnName, getTypeMapping, isDefault, isIdMapping, isOverridableAssociationMapping, isOverridableAttributeMapping
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getEntityMappings, getOrmPersistentType, getPersistenceUnit
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent, getResource
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.core.context.orm.OrmJpaContextNode
addToMessages, getValidationTextRange
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getEntityMappings, getOrmPersistentType, getPersistenceUnit
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent, getResource
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

NAME_PROPERTY

static final java.lang.String NAME_PROPERTY
See Also:
Constant Field Values

JAVA_PERSISTENT_ATTRIBUTE_PROPERTY

static final java.lang.String JAVA_PERSISTENT_ATTRIBUTE_PROPERTY
See Also:
Constant Field Values
Method Detail

getPersistentAttribute

OrmPersistentAttribute getPersistentAttribute()
Specified by:
getPersistentAttribute in interface AttributeMapping

getName

java.lang.String getName()

setName

void setName(java.lang.String newName)

getJavaPersistentAttribute

JavaPersistentAttribute getJavaPersistentAttribute()

getXmlSequence

int getXmlSequence()
Attributes are a sequence in the orm schema. We must keep the list of attributes 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 subclass of XmlAttributeMapping must implement this method and return an int that matches it's order in the schema

Returns:

removeFromResourceModel

void removeFromResourceModel(AbstractXmlTypeMapping typeMapping)

addToResourceModel

XmlAttributeMapping addToResourceModel(AbstractXmlTypeMapping typeMapping)

initializeOn

void initializeOn(OrmAttributeMapping newMapping)

initializeFromOrmAttributeMapping

void initializeFromOrmAttributeMapping(OrmAttributeMapping oldMapping)

initializeFromOrmBasicMapping

void initializeFromOrmBasicMapping(OrmBasicMapping oldMapping)

initializeFromOrmIdMapping

void initializeFromOrmIdMapping(OrmIdMapping oldMapping)

initializeFromOrmTransientMapping

void initializeFromOrmTransientMapping(OrmTransientMapping oldMapping)

initializeFromOrmEmbeddedMapping

void initializeFromOrmEmbeddedMapping(OrmEmbeddedMapping oldMapping)

initializeFromOrmEmbeddedIdMapping

void initializeFromOrmEmbeddedIdMapping(OrmEmbeddedIdMapping oldMapping)

initializeFromOrmVersionMapping

void initializeFromOrmVersionMapping(OrmVersionMapping oldMapping)

initializeFromOrmOneToManyMapping

void initializeFromOrmOneToManyMapping(OrmOneToManyMapping oldMapping)

initializeFromOrmManyToOneMapping

void initializeFromOrmManyToOneMapping(OrmManyToOneMapping oldMapping)

initializeFromOrmOneToOneMapping

void initializeFromOrmOneToOneMapping(OrmOneToOneMapping oldMapping)

initializeFromOrmManyToManyMapping

void initializeFromOrmManyToManyMapping(OrmManyToManyMapping oldMapping)

contains

boolean contains(int textOffset)

getSelectionTextRange

TextRange getSelectionTextRange()