|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface AttributeMapping
JPA 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.
| Nested Class Summary | |
|---|---|
static class |
AttributeMapping.AllMappingNamesTransformer
|
static class |
AttributeMapping.AllOverridableAssociationMappingNamesTransformer
|
static class |
AttributeMapping.AllOverridableAttributeMappingNamesTransformer
|
static class |
AttributeMapping.GeneratorsTransformer
|
static class |
AttributeMapping.IsNotTransient
|
static class |
AttributeMapping.IsOverridableAssociationMapping
|
static class |
AttributeMapping.KeyEquals
|
static class |
AttributeMapping.NameTransformer
|
| Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.JpaModel |
|---|
JpaModel.JpaVersionIsCompatibleWith |
| Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference |
|---|
JptResourceTypeReference.ResourceTypeIsKindOf, JptResourceTypeReference.ResourceTypeTransformer |
| Field Summary | |
|---|---|
static org.eclipse.jpt.common.utility.transformer.Transformer<AttributeMapping,Iterable<String>> |
ALL_MAPPING_NAMES_TRANSFORMER
|
static org.eclipse.jpt.common.utility.transformer.Transformer<AttributeMapping,Iterable<String>> |
ALL_OVERRIDABLE_ASSOCIATION_MAPPING_NAMES_TRANSFORMER
|
static org.eclipse.jpt.common.utility.transformer.Transformer<AttributeMapping,Iterable<String>> |
ALL_OVERRIDABLE_ATTRIBUTE_MAPPING_NAMES_TRANSFORMER
|
static String |
DEFAULT_PROPERTY
|
static org.eclipse.jpt.common.utility.transformer.Transformer<AttributeMapping,Iterable<Generator>> |
GENERATORS_TRANSFORMER
|
static org.eclipse.jpt.common.utility.predicate.Predicate<AttributeMapping> |
IS_NOT_TRANSIENT
|
static org.eclipse.jpt.common.utility.predicate.Predicate<AttributeMapping> |
IS_OVERRIDABLE_ASSOCIATION_MAPPING
|
static org.eclipse.jpt.common.utility.transformer.Transformer<AttributeMapping,String> |
NAME_TRANSFORMER
|
| Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference |
|---|
TRANSFORMER |
| Method Summary | |
|---|---|
Iterable<String> |
getAllMappingNames()
This is used for "mapped by" choices in a relationship mapping. |
Iterable<String> |
getAllOverridableAssociationMappingNames()
This is used to determine the virtual association overrides for an embedded mapping or entity. |
Iterable<String> |
getAllOverridableAttributeMappingNames()
This is used to determine the virtual attribute overrides for an embedded mapping or entity. |
Iterable<Generator> |
getGenerators()
Typically only ID mappings have generators. |
String |
getKey()
Return a unique key for the attribute mapping. |
String |
getName()
Return the mapping's name, which corresponds to the name of the associated attribute. |
SpecifiedPersistentAttribute |
getPersistentAttribute()
Return the mapping's attribute (typically its parent node in the containment hierarchy). |
String |
getPrimaryKeyColumnName()
If the mapping is for a primary key column, return the column's name, otherwise return null. |
TypeMapping |
getTypeMapping()
Return the mapping for the type that contains the mapping's attribute. |
boolean |
isDefault()
Return whether the mapping is its attribute's default mapping (as opposed to its specified mapping). |
boolean |
isOverridableAssociationMapping()
Return whether the "association" mapping can be overridden. |
boolean |
isOverridableAttributeMapping()
Return whether the "attribute" mapping can be overridden. |
boolean |
isOwnedBy(AttributeMapping mapping)
Return whether the specified mapping manages a relationship with the mapping. |
boolean |
isRelationshipOwner()
Return whether this mapping is the owning side of a relationship. |
AttributeMapping |
resolveAttributeMapping(String name)
Return the mapping itself if its name matches the specified name. |
SpecifiedColumn |
resolveOverriddenColumn(String attributeName)
Return the column of the overridable attribute mapping (or attribute override) with the specified attribute name. |
SpecifiedRelationship |
resolveOverriddenRelationship(String attributeName)
Return the relationship for the specified attribute. |
boolean |
validatesAgainstDatabase()
Return whether any database metadata specific validation should occur. |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextModel |
|---|
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getParent, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate |
| Methods inherited from interface org.eclipse.jpt.jpa.core.JpaModel |
|---|
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 |
| Field Detail |
|---|
static final org.eclipse.jpt.common.utility.transformer.Transformer<AttributeMapping,String> NAME_TRANSFORMER
static final String DEFAULT_PROPERTY
static final org.eclipse.jpt.common.utility.predicate.Predicate<AttributeMapping> IS_NOT_TRANSIENT
static final org.eclipse.jpt.common.utility.predicate.Predicate<AttributeMapping> IS_OVERRIDABLE_ASSOCIATION_MAPPING
static final org.eclipse.jpt.common.utility.transformer.Transformer<AttributeMapping,Iterable<Generator>> GENERATORS_TRANSFORMER
static final org.eclipse.jpt.common.utility.transformer.Transformer<AttributeMapping,Iterable<String>> ALL_MAPPING_NAMES_TRANSFORMER
static final org.eclipse.jpt.common.utility.transformer.Transformer<AttributeMapping,Iterable<String>> ALL_OVERRIDABLE_ATTRIBUTE_MAPPING_NAMES_TRANSFORMER
static final org.eclipse.jpt.common.utility.transformer.Transformer<AttributeMapping,Iterable<String>> ALL_OVERRIDABLE_ASSOCIATION_MAPPING_NAMES_TRANSFORMER
| Method Detail |
|---|
SpecifiedPersistentAttribute getPersistentAttribute()
String getName()
boolean isDefault()
String getKey()
boolean isOverridableAttributeMapping()
ColumnMapping.
boolean isOverridableAssociationMapping()
RelationshipMapping.
TypeMapping getTypeMapping()
String getPrimaryKeyColumnName()
null.
boolean isRelationshipOwner()
true the mapping will be a
RelationshipMapping.
boolean isOwnedBy(AttributeMapping mapping)
boolean validatesAgainstDatabase()
SpecifiedRelationship resolveOverriddenRelationship(String attributeName)
Iterable<Generator> getGenerators()
Iterable<String> getAllMappingNames()
In a JPA 2.0 project, an embedded mapping should return its own name as well as the name of its target embeddable's mappings with the embedded mapping name prepended, e.g.:
"embedded"
"embedded.foo"
"embedded.bar"
Iterable<String> getAllOverridableAttributeMappingNames()
In a JPA 2.0 project this will include overridable nested attributes.
isOverridableAttributeMapping()Iterable<String> getAllOverridableAssociationMappingNames()
In a JPA 2.0 project this will include overridable nested associations.
isOverridableAssociationMapping()AttributeMapping resolveAttributeMapping(String name)
In JPA 2.0 this name could use dot-notation for nested mappings. JPA 2.0 embedded mappings will have to parse this name and return the appropriate nested mapping.
SpecifiedColumn resolveOverriddenColumn(String attributeName)
In JPA 2.0 this name can use dot-notation to designate nested attributes in embedded attribute mapping's embeddable type mapping.
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||