org.eclipse.jpt.jpa.core.context
Interface ConvertibleMapping
- All Superinterfaces:
- AttributeMapping, IAdaptable, JpaContextModel, JpaModel, JptResourceTypeReference, Model
- All Known Subinterfaces:
- BasicMapping, EclipseLinkArrayMapping2_3, EclipseLinkBasicMapping, EclipseLinkElementCollectionMapping2_0, EclipseLinkIdMapping, EclipseLinkIdMapping2_0, 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
|
Method Summary |
Converter |
getConverter()
Return the mapping's converter. |
void |
setConverter(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 |
getAllMappingNames, getAllOverridableAssociationMappingNames, getAllOverridableAttributeMappingNames, getGenerators, getKey, getName, getPersistentAttribute, getPrimaryKeyColumnName, getTypeMapping, isDefault, isOverridableAssociationMapping, isOverridableAttributeMapping, isOwnedBy, isRelationshipOwner, resolveAttributeMapping, resolveOverriddenColumn, resolveOverriddenRelationship, validatesAgainstDatabase |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextModel |
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getParent, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate |
CONVERTER_PROPERTY
static final String CONVERTER_PROPERTY
- See Also:
- Constant Field Values
getConverter
Converter getConverter()
- Return the mapping's converter. Never
null.
setConverter
void setConverter(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.
Copyright (c) 2012 Oracle. All rights reserved.