Class ReadablePartialTranslatorFactory
java.lang.Object
com.googlecode.objectify.impl.translate.ValueTranslatorFactory<org.joda.time.ReadablePartial,String>
com.googlecode.objectify.impl.translate.opt.joda.ReadablePartialTranslatorFactory
- All Implemented Interfaces:
TranslatorFactory<org.joda.time.ReadablePartial,
String>
public class ReadablePartialTranslatorFactory
extends ValueTranslatorFactory<org.joda.time.ReadablePartial,String>
Converts Joda ReadablePartials (LocalDate, LocalDateTime, YearMonth, etc) into String (ISO-8601) representation
All custom translators must be registered *before* entity classes are registered.
- Author:
- Jeff Schnitzer invalid input: '<'[email protected]>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ValueTranslator<org.joda.time.ReadablePartial,
String> createValueTranslator
(TypeKey<org.joda.time.ReadablePartial> 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
-
ReadablePartialTranslatorFactory
public ReadablePartialTranslatorFactory()
-
-
Method Details
-
createValueTranslator
protected ValueTranslator<org.joda.time.ReadablePartial,String> createValueTranslator(TypeKey<org.joda.time.ReadablePartial> 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.ReadablePartial,
String> - Parameters:
tk
- type is guaranteed to erase to something assignable to Class
-