Dali Provisional API
Release 3.2

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

All Superinterfaces:
IAdaptable, JpaContextModel, JpaModel, JptResourceTypeReference, Model, TypeMapping
All Known Subinterfaces:
EclipseLinkJavaEmbeddable, EclipseLinkJavaEntity, EclipseLinkJavaMappedSuperclass, EclipseLinkJavaNonEmbeddableTypeMapping, EclipseLinkJavaTypeMapping, JavaEmbeddable, JavaEntity, JavaEntity2_0, JavaIdTypeMapping, JavaMappedSuperclass

public interface JavaTypeMapping
extends TypeMapping

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.TypeMapping
TypeMapping.GeneratorsTransformer, TypeMapping.MappingIsIdMapping, TypeMapping.PersistentTypeTransformer, TypeMapping.QueriesTransformer
 
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
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.TypeMapping
GENERATORS_TRANSFORMER, ID_ATTRIBUTE_MAPPING_KEYS, PERSISTENT_TYPE_TRANSFORMER, QUERIES_TRANSFORMER, SUPER_TYPE_MAPPING_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
TRANSFORMER
 
Method Summary
 Iterable<JavaAttributeMapping> getAttributeMappings()
          A convenience method for getting the attribute mappings from PersistentType.attributes()
 Iterable<JavaAttributeMapping> getAttributeMappings(String mappingKey)
          Return attribute mappings of a particular mapping type that are declared on this type mapping
 Annotation getMappingAnnotation()
           
 JavaPersistentType getPersistentType()
           
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.TypeMapping
attributeIsDerivedId, attributeMappingKeyAllowed, getAllAssociatedTableNames, getAllAssociatedTables, getAllAttributeMappings, getAllAttributeMappings, getAllOverridableAssociationNames, getAllOverridableAttributeNames, getAncestors, getAssociatedTables, getDbSchema, getGenerators, getIdAttributeMapping, getIdAttributeMappings, getInheritanceHierarchy, getJavaResourceType, getKey, getName, getNonTransientAttributeMappings, getOverridableAssociationNames, getOverridableAttributeNames, getPrimaryDbTable, getPrimaryTableName, getQueries, getSuperTypeMapping, isMapped, resolveDbTable, resolveOverriddenColumn, resolveOverriddenRelationship, tableNameIsInvalid, validatesAgainstDatabase
 
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
 

Method Detail

getMappingAnnotation

Annotation getMappingAnnotation()

getPersistentType

JavaPersistentType getPersistentType()
Specified by:
getPersistentType in interface TypeMapping

getAttributeMappings

Iterable<JavaAttributeMapping> getAttributeMappings()
Description copied from interface: TypeMapping
A convenience method for getting the attribute mappings from PersistentType.attributes()

Specified by:
getAttributeMappings in interface TypeMapping

getAttributeMappings

Iterable<JavaAttributeMapping> getAttributeMappings(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

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.