org.eclipse.jpt.core.context
Interface ConvertibleMapping

All Known Subinterfaces:
BasicMapping, IdMapping, JavaBasicMapping, JavaIdMapping, JavaVersionMapping, OrmBasicMapping, OrmIdMapping, OrmVersionMapping, VersionMapping

public interface ConvertibleMapping

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.1

Field Summary
static java.lang.String DEFAULT_CONVERTER_PROPERTY
           
static java.lang.String SPECIFIED_CONVERTER_PROPERTY
           
 
Method Summary
 Converter getConverter()
          Return the specified converter if it is not null and the default converter otherwise.
 Converter getDefaultConverter()
          Return the default converter, NO_CONVERTER except in instances where an underlying model has a converter set (an xml mapping could return a default converter if one is set in java)
 Converter getSpecifiedConverter()
          Return the specified converter or null, if none is specified in the underlying resource model
 void setSpecifiedConverter(java.lang.String converterType)
          Set the specified converter type, adding the converter to the resource model and removing the old converter, if any, from the resource model.
 

Field Detail

DEFAULT_CONVERTER_PROPERTY

static final java.lang.String DEFAULT_CONVERTER_PROPERTY
See Also:
Constant Field Values

SPECIFIED_CONVERTER_PROPERTY

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

getConverter

Converter getConverter()
Return the specified converter if it is not null and the default converter otherwise.


getDefaultConverter

Converter getDefaultConverter()
Return the default converter, NO_CONVERTER except in instances where an underlying model has a converter set (an xml mapping could return a default converter if one is set in java)


getSpecifiedConverter

Converter getSpecifiedConverter()
Return the specified converter or null, if none is specified in the underlying resource model


setSpecifiedConverter

void setSpecifiedConverter(java.lang.String converterType)
Set the specified converter type, adding the converter to the resource model and removing the old converter, if any, from the resource model. JPA 1.0 support Enumerated, Lob, and Temporal as converter types for basic mapppings. Converter.ENUMERATED_CONVERTER Converter.LOB_CONVERTER Converter.TEMPORAL_CONVERTER Converter.NO_CONVERTER