Package javax.jdo

Class AttributeConverter.UseDefault

  • All Implemented Interfaces:
    AttributeConverter<java.lang.Object,​java.lang.Object>
    Enclosing interface:
    AttributeConverter<A,​D>

    public static class AttributeConverter.UseDefault
    extends java.lang.Object
    implements AttributeConverter<java.lang.Object,​java.lang.Object>
    Dummy converter to represent "use the implementation default for this type" when using annotations.
    • Constructor Summary

      Constructors 
      Constructor Description
      UseDefault()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object convertToAttribute​(java.lang.Object datastoreValue)
      Converts the given datastore value to its representation as a persistent attribute.
      java.lang.Object convertToDatastore​(java.lang.Object attributeValue)
      Converts the given persistent attribute value to its representation in the datastore.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UseDefault

        public UseDefault()
    • Method Detail

      • convertToDatastore

        public java.lang.Object convertToDatastore​(java.lang.Object attributeValue)
        Description copied from interface: AttributeConverter
        Converts the given persistent attribute value to its representation in the datastore.
        Specified by:
        convertToDatastore in interface AttributeConverter<java.lang.Object,​java.lang.Object>
        Parameters:
        attributeValue - Value of attribute
        Returns:
        Value in datastore
      • convertToAttribute

        public java.lang.Object convertToAttribute​(java.lang.Object datastoreValue)
        Description copied from interface: AttributeConverter
        Converts the given datastore value to its representation as a persistent attribute.
        Specified by:
        convertToAttribute in interface AttributeConverter<java.lang.Object,​java.lang.Object>
        Parameters:
        datastoreValue - Value in datastore
        Returns:
        Value in attribute