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 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 class SimpleTranslatorFactory<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 class SimpleTranslatorFactory<com.google.cloud.Timestamp,com.google.cloud.Timestamp>