Class DateTimeZoneTranslatorFactory
java.lang.Object
com.googlecode.objectify.impl.translate.ValueTranslatorFactory<org.joda.time.DateTimeZone,String>
com.googlecode.objectify.impl.translate.opt.joda.DateTimeZoneTranslatorFactory
- All Implemented Interfaces:
TranslatorFactory<org.joda.time.DateTimeZone,String>
public class DateTimeZoneTranslatorFactory extends ValueTranslatorFactory<org.joda.time.DateTimeZone,String>
Stores a joda DateTimeZone as its String id.
All custom translators must be registered *before* entity classes are registered.
- Author:
- Jeff Schnitzer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ValueTranslator<org.joda.time.DateTimeZone,String>
createValueTranslator(TypeKey<org.joda.time.DateTimeZone> tk, CreateContext ctx, Path path)
Create a translator, knowing that we have the appropriate type.Methods inherited from class com.googlecode.objectify.impl.translate.ValueTranslatorFactory
create
-
Constructor Details
-
DateTimeZoneTranslatorFactory
public DateTimeZoneTranslatorFactory()
-
-
Method Details
-
createValueTranslator
protected ValueTranslator<org.joda.time.DateTimeZone,String> createValueTranslator(TypeKey<org.joda.time.DateTimeZone> tk, CreateContext ctx, Path path)Description copied from class:ValueTranslatorFactory
Create a translator, knowing that we have the appropriate type. You don't need to check for type matching.- Specified by:
createValueTranslator
in classValueTranslatorFactory<org.joda.time.DateTimeZone,String>
- Parameters:
tk
- type is guaranteed to erase to something assignable to Class
-