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
| 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 |
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
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)
Copyright (c) 2012 Oracle. All rights reserved.