org.eclipse.jpt.jpa.core.context
Interface ConvertibleMapping

All Superinterfaces:
AttributeMapping, org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, Model
All Known Subinterfaces:
BasicMapping, EclipseLinkBasicMapping, EclipseLinkElementCollectionMapping2_0, EclipseLinkIdMapping, EclipseLinkVersionMapping, ElementCollectionMapping2_0, IdMapping, IdMapping2_0, JavaBasicMapping, JavaConvertibleMapping, JavaElementCollectionMapping2_0, JavaIdMapping, JavaVersionMapping, OrmBasicMapping, OrmConvertibleMapping, OrmElementCollectionMapping2_0, OrmIdMapping, OrmVersionMapping, VersionMapping

public interface ConvertibleMapping
extends AttributeMapping

JPA attribute mapping that has a converter (e.g. basic, ID, version).

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.1
Version:
2.3

Field Summary
static java.lang.String CONVERTER_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.AttributeMapping
DEFAULT_PROPERTY
 
Method Summary
 Converter getConverter()
          Return the mapping's converter.
 void setConverter(java.lang.Class<? extends Converter> converterType)
          Set the converter type, adding the appropriate converter to the resource model and removing any other converters.
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.AttributeMapping
allMappingNames, allOverridableAssociationMappingNames, allOverridableAttributeMappingNames, getKey, getName, getPersistentAttribute, getPrimaryKeyColumnName, getTypeMapping, isDefault, isOverridableAssociationMapping, isOverridableAttributeMapping, isOwnedBy, isRelationshipOwner, resolveAttributeMapping, resolveOverriddenColumn, resolveOverriddenRelationship, validatesAgainstDatabase
 
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
 

Field Detail

CONVERTER_PROPERTY

static final java.lang.String CONVERTER_PROPERTY
See Also:
Constant Field Values
Method Detail

getConverter

Converter getConverter()
Return the mapping's converter. Never null.


setConverter

void setConverter(java.lang.Class<? extends Converter> converterType)
Set the converter type, adding the appropriate converter to the resource model and removing any other converters. Clear all converters if the specified type is null.