public class JodaMoneyEmbeddedEntityTranslatorFactory extends Object implements com.googlecode.objectify.impl.translate.TranslatorFactory<org.joda.money.BigMoneyProvider,com.google.appengine.api.datastore.EmbeddedEntity>
JodaMoneyTranslator which can store component properties of a BigMoneyProvider as a "value" and a "currencyUnit" (both of which are Strings), similar to how an
Embedded class would be stored. The value is an encoded-String version of a BigDecimal that
supports lexicographical sorting and large-digit number sets. For more details, read this blog entry: "http://softwareblog.sappenin.com/2014/05/best-practices-for-storing-joda-money.html"
| Constructor and Description |
|---|
JodaMoneyEmbeddedEntityTranslatorFactory() |
| Modifier and Type | Method and Description |
|---|---|
com.googlecode.objectify.impl.translate.Translator |
create(com.googlecode.objectify.impl.translate.TypeKey tk,
com.googlecode.objectify.impl.translate.CreateContext ctx,
com.googlecode.objectify.impl.Path path) |
public JodaMoneyEmbeddedEntityTranslatorFactory()
public com.googlecode.objectify.impl.translate.Translator create(com.googlecode.objectify.impl.translate.TypeKey tk,
com.googlecode.objectify.impl.translate.CreateContext ctx,
com.googlecode.objectify.impl.Path path)
create in interface com.googlecode.objectify.impl.translate.TranslatorFactory<org.joda.money.BigMoneyProvider,com.google.appengine.api.datastore.EmbeddedEntity>Copyright © 2013-2014–2015 Sappenin Inc.. All rights reserved.