|
||||||||||
| 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.
| Method Summary | |
|---|---|
java.util.Iterator<java.lang.String> |
allMappingNames()
This is used for mappedBy choices in a relationship mapping. |
java.util.Iterator<java.lang.String> |
allOverrideableAssociationMappingNames()
This is used to determine the virtual association overrides for an embedded mapping or an entity. |
java.util.Iterator<java.lang.String> |
allOverrideableAttributeMappingNames()
This is used to determine the virtual attribute overrides for an embedded mapping or an entity. |
java.lang.String |
getKey()
Return a unique key for the attribute mapping. |
java.lang.String |
getName()
|
PersistentAttribute |
getPersistentAttribute()
|
java.lang.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 attribute mapping's attribute's type. |
boolean |
isDefault()
|
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 given mapping manages a relationship with this mapping |
boolean |
isRelationshipOwner()
Return whether this mapping is the owning side of the relationship. |
AttributeMapping |
resolveAttributeMapping(java.lang.String name)
Returns this attribute mapping if its name matches the name. |
Column |
resolveOverriddenColumn(java.lang.String attributeName)
Returns the Column of the overridable attribute mapping with the given attribute name. |
RelationshipReference |
resolveRelationshipReference(java.lang.String attributeName)
|
boolean |
shouldValidateAgainstDatabase()
Return whether any database metadata specific validation should occur. |
| Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode |
|---|
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, postUpdate |
| Methods inherited from interface org.eclipse.jpt.core.JpaNode |
|---|
getJpaProject, getParent |
| Methods inherited from interface org.eclipse.jpt.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.core.IResourcePart |
|---|
getResource |
| Method Detail |
|---|
PersistentAttribute getPersistentAttribute()
java.lang.String getName()
boolean isDefault()
java.lang.String getKey()
boolean isOverridableAttributeMapping()
ColumnMapping
boolean isOverridableAssociationMapping()
RelationshipMapping
TypeMapping getTypeMapping()
java.lang.String getPrimaryKeyColumnName()
boolean isRelationshipOwner()
boolean isOwnedBy(AttributeMapping mapping)
boolean shouldValidateAgainstDatabase()
java.util.Iterator<java.lang.String> allMappingNames()
java.util.Iterator<java.lang.String> allOverrideableAttributeMappingNames()
isOverridableAttributeMapping()java.util.Iterator<java.lang.String> allOverrideableAssociationMappingNames()
isOverridableAssociationMapping()AttributeMapping resolveAttributeMapping(java.lang.String name)
Column resolveOverriddenColumn(java.lang.String attributeName)
RelationshipReference resolveRelationshipReference(java.lang.String attributeName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||