Class RawValueTranslatorFactory

java.lang.Object
com.googlecode.objectify.impl.translate.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 invalid input: '<'[email protected]>
  • Constructor Details

    • RawValueTranslatorFactory

      public RawValueTranslatorFactory()
  • Method Details

    • 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.