Class JDOTypeConverter<X,​Y>

  • Type Parameters:
    X - Member type for this converter
    Y - Datastore type for storing this member with this converter
    All Implemented Interfaces:
    java.io.Serializable, org.datanucleus.store.types.converters.TypeConverter<X,​Y>

    public class JDOTypeConverter<X,​Y>
    extends java.lang.Object
    implements org.datanucleus.store.types.converters.TypeConverter<X,​Y>
    Wrapper for a JDO AttributeConverter for use internally to DataNucleus.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) javax.jdo.AttributeConverter<X,​Y> jdoConverter  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      JDOTypeConverter​(javax.jdo.AttributeConverter<X,​Y> conv)
      Constructor for a JDO type converter, wrapping a javax.jdo.AttributeConverter.
    • Field Detail

      • jdoConverter

        javax.jdo.AttributeConverter<X,​Y> jdoConverter
    • Constructor Detail

      • JDOTypeConverter

        public JDOTypeConverter​(javax.jdo.AttributeConverter<X,​Y> conv)
        Constructor for a JDO type converter, wrapping a javax.jdo.AttributeConverter.
        Parameters:
        conv - The JDO AttributeConverter
    • Method Detail

      • toDatastoreType

        public Y toDatastoreType​(X memberValue)
        Specified by:
        toDatastoreType in interface org.datanucleus.store.types.converters.TypeConverter<X,​Y>
      • toMemberType

        public X toMemberType​(Y datastoreValue)
        Specified by:
        toMemberType in interface org.datanucleus.store.types.converters.TypeConverter<X,​Y>
      • getAttributeConverter

        public javax.jdo.AttributeConverter<X,​Y> getAttributeConverter()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object