Class KeyTranslatorFactory
- java.lang.Object
-
- com.googlecode.objectify.impl.translate.ValueTranslatorFactory<P,D>
-
- com.googlecode.objectify.impl.translate.SimpleTranslatorFactory<Key<?>,com.google.cloud.datastore.Key>
-
- com.googlecode.objectify.impl.translate.KeyTranslatorFactory
-
- All Implemented Interfaces:
TranslatorFactory<Key<?>,com.google.cloud.datastore.Key>
public class KeyTranslatorFactory extends SimpleTranslatorFactory<Key<?>,com.google.cloud.datastore.Key>
Knows how to convert Key> objects to datastore-native Key objects and vice-versa.- Author:
- Jeff Schnitzer
-
-
Constructor Summary
Constructors Constructor Description KeyTranslatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.cloud.datastore.Value<com.google.cloud.datastore.Key>
toDatastore(Key<?> value)
protected Key<?>
toPojo(com.google.cloud.datastore.Value<com.google.cloud.datastore.Key> value)
-
Methods inherited from class com.googlecode.objectify.impl.translate.SimpleTranslatorFactory
createValueTranslator
-
Methods inherited from class com.googlecode.objectify.impl.translate.ValueTranslatorFactory
create
-
-
-
-
Method Detail
-
toPojo
protected Key<?> toPojo(com.google.cloud.datastore.Value<com.google.cloud.datastore.Key> value)
- Specified by:
toPojo
in classSimpleTranslatorFactory<Key<?>,com.google.cloud.datastore.Key>
-
toDatastore
protected com.google.cloud.datastore.Value<com.google.cloud.datastore.Key> toDatastore(Key<?> value)
- Specified by:
toDatastore
in classSimpleTranslatorFactory<Key<?>,com.google.cloud.datastore.Key>
-
-