Dali Provisional API
Release 3.2

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

All Superinterfaces:
AttributeMapping, IAdaptable, JpaContextNode, JpaNode, JptResourceTypeReference, Model, TypeRefactoringParticipant
All Known Subinterfaces:
OrmBaseEmbeddedMapping, OrmBasicMapping, OrmCollectionMapping2_0, OrmColumnMapping, OrmConvertibleKeyMapping2_0, OrmConvertibleMapping, OrmElementCollectionMapping2_0, OrmEmbeddedIdMapping, OrmEmbeddedMapping, OrmEmbeddedMapping2_0, OrmIdMapping, OrmManyToManyMapping, OrmManyToOneMapping, OrmMultiRelationshipMapping, OrmOneToManyMapping, OrmOneToOneMapping, OrmRelationshipMapping, OrmSingleRelationshipMapping, OrmSingleRelationshipMapping2_0, OrmTransientMapping, OrmVersionMapping

public interface OrmAttributeMapping
extends AttributeMapping, TypeRefactoringParticipant

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.

Since:
2.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.AttributeMapping
AttributeMapping.GeneratorsTransformer, AttributeMapping.IsNotTransient, AttributeMapping.IsOverridableAssociationMapping, AttributeMapping.KeyEquals, AttributeMapping.NameTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.TypeRefactoringParticipant
TypeRefactoringParticipant.MoveTypeEditsTransformer, TypeRefactoringParticipant.RenamePackageEditsTransformer, TypeRefactoringParticipant.RenameTypeEditsTransformer
 
Field Summary
static String DEFAULT_ATTRIBUTE_TYPE_PROPERTY
           
static String FULLY_QUALIFIED_ATTRIBUTE_TYPE_PROPERTY
           
static String NAME_PROPERTY
           
static String SPECIFIED_ATTRIBUTE_TYPE_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.AttributeMapping
DEFAULT_PROPERTY, GENERATORS_TRANSFORMER, IS_NOT_TRANSIENT, IS_OVERRIDABLE_ASSOCIATION_MAPPING, NAME_TRANSFORMER
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
RESOURCE_TYPE_TRANSFORMER
 
Method Summary
 void addXmlAttributeMappingTo(org.eclipse.jpt.jpa.core.resource.orm.Attributes resourceAttributes)
           
 String getAttributeType()
          Return either the (possibly unqualified) type specified here or, if unspecified, the (qualified) default type.
 String getDefaultAttributeType()
           
 String getFullyQualifiedAttributeType()
           
 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()
           
 String getSpecifiedAttributeType()
           
 OrmTypeMapping getTypeMapping()
          Return the mapping for the type that contains the mapping's attribute.
 org.eclipse.jpt.jpa.core.resource.orm.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(org.eclipse.jpt.jpa.core.resource.orm.Attributes resourceAttributes)
           
 void setName(String name)
           
 void setSpecifiedAttributeType(String attributeType)
           
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.AttributeMapping
getAllMappingNames, getAllOverridableAssociationMappingNames, getAllOverridableAttributeMappingNames, getGenerators, getKey, getName, getPrimaryKeyColumnName, isDefault, isOverridableAssociationMapping, isOverridableAttributeMapping, isOwnedBy, isRelationshipOwner, resolveAttributeMapping, resolveOverriddenColumn, resolveOverriddenRelationship, validatesAgainstDatabase
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode
getJpaPlatform, getJpaProject, getJpaProjectManager, getResource, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
getResourceType
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.TypeRefactoringParticipant
createMoveTypeEdits, createRenamePackageEdits, createRenameTypeEdits
 

Field Detail

NAME_PROPERTY

static final String NAME_PROPERTY
See Also:
Constant Field Values

FULLY_QUALIFIED_ATTRIBUTE_TYPE_PROPERTY

static final String FULLY_QUALIFIED_ATTRIBUTE_TYPE_PROPERTY
See Also:
Constant Field Values

SPECIFIED_ATTRIBUTE_TYPE_PROPERTY

static final String SPECIFIED_ATTRIBUTE_TYPE_PROPERTY
See Also:
Constant Field Values

DEFAULT_ATTRIBUTE_TYPE_PROPERTY

static final String DEFAULT_ATTRIBUTE_TYPE_PROPERTY
See Also:
Constant Field Values
Method Detail

getParent

OrmPersistentAttribute getParent()
Description copied from interface: JpaNode
Return the JPA node's parent. The JPA project will not have a parent.

Specified by:
getParent in interface JpaContextNode
Specified by:
getParent in interface JpaNode

getPersistentAttribute

OrmPersistentAttribute getPersistentAttribute()
Description copied from interface: AttributeMapping
Return the mapping's attribute (typically its parent node in the containment hierarchy).

Specified by:
getPersistentAttribute in interface AttributeMapping

getXmlAttributeMapping

org.eclipse.jpt.jpa.core.resource.orm.XmlAttributeMapping getXmlAttributeMapping()

getTypeMapping

OrmTypeMapping getTypeMapping()
Description copied from interface: AttributeMapping
Return the mapping for the type that contains the mapping's attribute.

Specified by:
getTypeMapping in interface AttributeMapping

setName

void setName(String name)

getAttributeType

String getAttributeType()
Return either the (possibly unqualified) type specified here or, if unspecified, the (qualified) default type.


getFullyQualifiedAttributeType

String getFullyQualifiedAttributeType()

getSpecifiedAttributeType

String getSpecifiedAttributeType()

setSpecifiedAttributeType

void setSpecifiedAttributeType(String attributeType)

getDefaultAttributeType

String getDefaultAttributeType()

getXmlSequence

int getXmlSequence()
Attributes are a sequence in the 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.


addXmlAttributeMappingTo

void addXmlAttributeMappingTo(org.eclipse.jpt.jpa.core.resource.orm.Attributes resourceAttributes)

removeXmlAttributeMappingFrom

void removeXmlAttributeMappingFrom(org.eclipse.jpt.jpa.core.resource.orm.Attributes resourceAttributes)

getSelectionTextRange

TextRange getSelectionTextRange()

getNameTextRange

TextRange getNameTextRange()

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)

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.