Package javax.jdo
Class AttributeConverter.UseDefault
- java.lang.Object
-
- javax.jdo.AttributeConverter.UseDefault
-
- All Implemented Interfaces:
AttributeConverter<Object,Object>
- Enclosing interface:
- AttributeConverter<A,D>
public static class AttributeConverter.UseDefault extends Object implements AttributeConverter<Object,Object>
Dummy converter to represent "use the implementation default for this type" when using annotations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.jdo.AttributeConverter
AttributeConverter.UseDefault
-
-
Constructor Summary
Constructors Constructor Description UseDefault()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectconvertToAttribute(Object datastoreValue)Converts the given datastore value to its representation as a persistent attribute.ObjectconvertToDatastore(Object attributeValue)Converts the given persistent attribute value to its representation in the datastore.
-
-
-
Method Detail
-
convertToDatastore
public Object convertToDatastore(Object attributeValue)
Description copied from interface:AttributeConverterConverts the given persistent attribute value to its representation in the datastore.- Specified by:
convertToDatastorein interfaceAttributeConverter<Object,Object>- Parameters:
attributeValue- Value of attribute- Returns:
- Value in datastore
-
convertToAttribute
public Object convertToAttribute(Object datastoreValue)
Description copied from interface:AttributeConverterConverts the given datastore value to its representation as a persistent attribute.- Specified by:
convertToAttributein interfaceAttributeConverter<Object,Object>- Parameters:
datastoreValue- Value in datastore- Returns:
- Value in attribute
-
-