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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTranslator<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.
-
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:TranslatorFactoryCreate a translator for a type.- Specified by:
createin 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.
-