org.eclipse.jpt.jpa.core.context.java
Interface JavaTypeMapping

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JavaJpaContextNode, JpaContextNode, JpaNode, Model, TypeMapping
All Known Subinterfaces:
EclipseLinkJavaTypeMapping, JavaEclipseLinkEmbeddable, JavaEclipseLinkEntity, JavaEclipseLinkMappedSuperclass, JavaEclipseLinkNonEmbeddableTypeMapping, JavaEmbeddable, JavaEntity, JavaMappedSuperclass

public interface JavaTypeMapping
extends TypeMapping, JavaJpaContextNode

Java type 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.0
Version:
2.3

Method Summary
 java.util.Iterator<JavaAttributeMapping> attributeMappings()
          A convenience method for getting the attribute mappings from PersistentType.attributes()
 java.lang.Iterable<JavaAttributeMapping> getAttributeMappings(java.lang.String mappingKey)
          Return attribute mappings of a particular mapping type that are declared on this type mapping
 Annotation getMappingAnnotation()
           
 JavaPersistentType getPersistentType()
           
 JavaResourcePersistentType getResourcePersistentType()
           
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.TypeMapping
allAssociatedTableNames, allAssociatedTables, allAttributeMappings, allOverridableAssociationNames, allOverridableAttributeNames, associatedTables, attributeMappingKeyAllowed, getAllAttributeMappings, getDbSchema, getIdClass, getKey, getName, getPrimaryDbTable, getPrimaryTableName, getSuperTypeMapping, inheritanceHierarchy, isMapped, overridableAssociationNames, overridableAttributeNames, resolveDbTable, resolveOverriddenColumn, resolveOverriddenRelationship, tableNameIsInvalid, validatesAgainstDatabase
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.java.JavaJpaContextNode
getValidationTextRange, javaCompletionProposals, validate
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, synchronizeWithResourceModel, update
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode
getJpaProject, getParent, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.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.common.core.IResourcePart
getResource
 

Method Detail

getResourcePersistentType

JavaResourcePersistentType getResourcePersistentType()

getMappingAnnotation

Annotation getMappingAnnotation()

getPersistentType

JavaPersistentType getPersistentType()
Specified by:
getPersistentType in interface TypeMapping

attributeMappings

java.util.Iterator<JavaAttributeMapping> attributeMappings()
Description copied from interface: TypeMapping
A convenience method for getting the attribute mappings from PersistentType.attributes()

Specified by:
attributeMappings in interface TypeMapping

getAttributeMappings

java.lang.Iterable<JavaAttributeMapping> getAttributeMappings(java.lang.String mappingKey)
Description copied from interface: TypeMapping
Return attribute mappings of a particular mapping type that are declared on this type mapping

Specified by:
getAttributeMappings in interface TypeMapping