|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) public @interface ObjectTypeConverter
The ObjectTypeConverter annotation is used to specify a TopLink org.eclipse.persistence.mappings.converters.ObjectTypeConverter that converts a fixed number of database data value(s) to Java object value(s) during the reading and writing of a mapped attribute An ObjectTypeConverter must be be uniquely identified by name and can be defined at the class, field and property level and can be specified within an Entity, MappedSuperclass and Embeddable class. The usage of an ObjectTypeConverter is specified via the Convert annotation and is supported on a Basic, BasicMap or BasicCollection mapping.
Convert
Required Element Summary | |
---|---|
ConversionValue[] |
conversionValues
(Required) Specify the conversion values to be used with the object converter. |
java.lang.String |
name
(Required) Name this converter. |
Optional Element Summary | |
---|---|
java.lang.Class |
dataType
(Optional) Specify the type stored on the database. |
java.lang.String |
defaultObjectValue
(Optional) Specify a default object value. |
java.lang.Class |
objectType
(Optional) Specify the type stored on the entity. |
Element Detail |
---|
public abstract java.lang.String name
public abstract ConversionValue[] conversionValues
public abstract java.lang.Class dataType
public abstract java.lang.Class objectType
public abstract java.lang.String defaultObjectValue
|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |