Class TimestampTranslatorFactory
java.lang.Object
com.googlecode.objectify.impl.translate.ValueTranslatorFactory<P,D>
com.googlecode.objectify.impl.translate.SimpleTranslatorFactory<com.google.cloud.Timestamp,com.google.cloud.Timestamp>
com.googlecode.objectify.impl.translate.TimestampTranslatorFactory
- All Implemented Interfaces:
TranslatorFactory<com.google.cloud.Timestamp,
com.google.cloud.Timestamp>
public class TimestampTranslatorFactory
extends SimpleTranslatorFactory<com.google.cloud.Timestamp,com.google.cloud.Timestamp>
Handle the native datastore Timestamp
- Author:
- Jeff Schnitzer invalid input: '<'[email protected]>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.cloud.datastore.Value<com.google.cloud.Timestamp>
toDatastore
(com.google.cloud.Timestamp value) protected com.google.cloud.Timestamp
toPojo
(com.google.cloud.datastore.Value<com.google.cloud.Timestamp> value) Methods inherited from class com.googlecode.objectify.impl.translate.SimpleTranslatorFactory
createValueTranslator
Methods inherited from class com.googlecode.objectify.impl.translate.ValueTranslatorFactory
create
-
Constructor Details
-
TimestampTranslatorFactory
public TimestampTranslatorFactory()
-
-
Method Details
-
toPojo
protected com.google.cloud.Timestamp toPojo(com.google.cloud.datastore.Value<com.google.cloud.Timestamp> value) - Specified by:
toPojo
in classSimpleTranslatorFactory<com.google.cloud.Timestamp,
com.google.cloud.Timestamp>
-
toDatastore
protected com.google.cloud.datastore.Value<com.google.cloud.Timestamp> toDatastore(com.google.cloud.Timestamp value) - Specified by:
toDatastore
in classSimpleTranslatorFactory<com.google.cloud.Timestamp,
com.google.cloud.Timestamp>
-