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 Object
convertToAttribute(Object datastoreValue)
Converts the given datastore value to its representation as a persistent attribute.Object
convertToDatastore(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:AttributeConverter
Converts the given persistent attribute value to its representation in the datastore.- Specified by:
convertToDatastore
in interfaceAttributeConverter<Object,Object>
- Parameters:
attributeValue
- Value of attribute- Returns:
- Value in datastore
-
convertToAttribute
public Object convertToAttribute(Object datastoreValue)
Description copied from interface:AttributeConverter
Converts the given datastore value to its representation as a persistent attribute.- Specified by:
convertToAttribute
in interfaceAttributeConverter<Object,Object>
- Parameters:
datastoreValue
- Value in datastore- Returns:
- Value in attribute
-
-