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:
    Serializable, org.datanucleus.store.types.converters.TypeConverter<X,​Y>

    public class JDOTypeConverter<X,​Y>
    extends Object
    implements org.datanucleus.store.types.converters.TypeConverter<X,​Y>
    Wrapper for a JDO AttributeConverter for use internally to DataNucleus.
    See Also:
    Serialized Form
    • 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()