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
-
-
Constructor Summary
Constructors Constructor Description RawValueTranslatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Translator<com.google.cloud.datastore.Value<Object>,Object>
create(TypeKey<com.google.cloud.datastore.Value<Object>> tk, CreateContext ctx, Path path)
Create a translator for a type.
-
-
-
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 interfaceTranslatorFactory<com.google.cloud.datastore.Value<Object>,Object>
- Parameters:
tk
- defines the type which is to be translatedpath
- 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.
-
-