Class RawValueTranslatorFactory

  • All Implemented Interfaces:
    TranslatorFactory<com.google.cloud.datastore.Value<Object>,​Object>

    public class RawValueTranslatorFactory
    extends Object
    implements TranslatorFactory<com.google.cloud.datastore.Value<Object>,​Object>

    Just in case anyone has a Value<?> field. Just store it as-is.

    Author:
    Jeff Schnitzer
    • Constructor Detail

      • RawValueTranslatorFactory

        public RawValueTranslatorFactory()
    • Method Detail

      • create

        public Translator<com.google.cloud.datastore.Value<Object>,​Object> create​(TypeKey<com.google.cloud.datastore.Value<Object>> tk,
                                                                                        CreateContext ctx,
                                                                                        Path path)
        Description copied from interface: TranslatorFactory
        Create a translator for a type.
        Specified by:
        create in interface TranslatorFactory<com.google.cloud.datastore.Value<Object>,​Object>
        Parameters:
        tk - defines the type which is to be translated
        path - is where this type was discovered, important for logging and exceptions
        Returns:
        null if this factory does not know how to deal with that situation.